Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

How to save multiple selections from a embedded browse

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to save multiple selections from a embedded browse

    I have a table with customer information and a table with components for a letter. The components for the letter are chosen in a embedded browse and these components are multi selectable. I would like to know what's the best approach for storing the multi selected fields. Each field (letter component) has a length of 100 to 240 characters.

    #2
    Re: How to save multiple selections from a embedded browse

    Werder,
    Because I have been following your threads, I can help with this a bit.

    If you took MikeC's approach to using and embedded browse to display the multi selections, then you have marked the records in the table. You have then the ability to filter the table for the marked records and generate a variable for each choice. You can open the table filtered, then fetch through the table and create a variable for each choice. It will require you to use a for-next loop and use the eval(), functions. I appended an example for you. hope this helps.
    Last edited by Mike Wilson; 12-10-2008, 12:27 AM.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    Comment


      #3
      Re: How to save multiple selections from a embedded browse

      Thanks for the example Mike. Do you also now if it possible to store the selected components for each customer and how this is done. Should I store the selected components (item_ID's) or should the text field (text1) be stored all together.

      Comment


        #4
        Re: How to save multiple selections from a embedded browse

        Werder,
        Are you saying that the choices lists will be specific to a given customer or set of customers? If so, the item table would have another field with values somehow related to each customer so the table can be sorted such that the items presented would be customer specific. Is that what you are asking?
        Mike W
        __________________________
        "I rebel in at least small things to express to the world that I have not completely surrendered"

        Comment


          #5
          Re: How to save multiple selections from a embedded browse

          I believe you understand me correct. The choices list will be specific to a given customer. It's like a customer who orders different products only in my case for each customer there are different letter components. Is this easy to accomplish or is it actually quit difficult?

          Comment


            #6
            Re: How to save multiple selections from a embedded browse

            Werder,
            Not difficult.

            1. Added a customer table with customer ID.
            2. Added a customer_assign field to the items table
            3. Made customer assignments (cust_id) to the items.
            4. Made a customer select function to filter the items table for the chosen customer, clear the table and display the chosen customer.

            hope his helps
            Mike W
            __________________________
            "I rebel in at least small things to express to the world that I have not completely surrendered"

            Comment


              #7
              Re: How to save multiple selections from a embedded browse

              Mike, I'm glad it can be done and thank you for taking the time to build an example. I will try to implement your concept within my database. Thanks!

              Comment


                #8
                Re: How to save multiple selections from a embedded browse

                Mike, I like your example. However, have you considered what might happen if two workstations are trying to assemble different letters to the same customer at the same time? You might want to set an edit flag that gets raised by the first workstation, then lower it after the letter is finished. Your script could then alert the second user that someone else on the network is using the table. Otherwise, couldn't the text selected by both workstations show up in both letters? Or am I missing something?

                The select customer button clears all the selections in all the records. This, too, is problematic in a networked environment. Right?

                -- tom

                Comment


                  #9
                  Re: How to save multiple selections from a embedded browse

                  Tom,
                  Thanks very much for the network perspective. As you can guess, I wasn't of a network mindset when I crafted this example. So, with a network mindset, I'd have to craft a different strategy. Thanks for the bump.
                  Mike W
                  __________________________
                  "I rebel in at least small things to express to the world that I have not completely surrendered"

                  Comment


                    #10
                    Re: How to save multiple selections from a embedded browse

                    Mike W, a solution that works well in a networked environment would be a good addition to the Code Archive forum. Let me know if I can help. -- tom

                    Comment


                      #11
                      Re: How to save multiple selections from a embedded browse

                      Tom,
                      Scout this update out and see what you think. It is changed by:

                      1. The form is opened with selection of the customer up front and clearing check boxes as part of the current session (probably unncessary- see below).

                      2. I created a second form to mimick networking against one table.

                      3. The script that collects the currently checked items for the letter collects the items cycling through the browse records directly from the form Browse object and not by filtering the table and at the table level. I left the table level script and button in place so one could see the difference that you were referring to, and with opening the two forms and playing with the two methods.

                      4. So there are no true values generated in the table, the script that generates the letter runs a UDF that clears the boxes and this UDF also runs in the CanExit form event.

                      I added a script on the main menu button when opening the form to check whether the table is open as you suggested. I am not really seeing the need to have access limited with the new method. But I could be wrong. There is probably something missing for a network environment. See what you think, and thanks again for the bump to "think networked".
                      Mike W
                      __________________________
                      "I rebel in at least small things to express to the world that I have not completely surrendered"

                      Comment


                        #12
                        Re: How to save multiple selections from a embedded browse

                        The way I have done this in a network is create a separate table w. user_id & record_id (of the 1st table). After records have been selected, I auto-delete that user's records (in the separate table).
                        Peter
                        AlphaBase Solutions, LLC

                        [email protected]
                        https://www.alphabasesolutions.com


                        Comment


                          #13
                          Re: How to save multiple selections from a embedded browse

                          Peter, that's very good. Hadn't thought of that. Tell us more about the sequence you use. Does the separate table get a new record after each "selection" is made? or do you wait until they've all been selected? How are selections made? What events trigger the new record(s) in the separate table? Thanks.

                          Comment


                            #14
                            Re: How to save multiple selections from a embedded browse

                            Originally posted by Tom Cone Jr View Post
                            Does the separate table get a new record after each "selection" is made?
                            Yes


                            How are selections made? What events trigger the new record(s) in the separate table?
                            I use doubleclick on the browse.
                            Peter
                            AlphaBase Solutions, LLC

                            [email protected]
                            https://www.alphabasesolutions.com


                            Comment

                            Working...
                            X