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

Edit Combo Box - Selections

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

    Edit Combo Box - Selections

    Can anyone suggest where I would start if I wanted to import multiple rows based on something like an edit combo lookup

    SO I start with a grid linked to one table
    I want to look up the values in another table , select multiple rows and import the selected rows in to the original table.
    so for each row create a new row.

    Using the Edit-Combo Builder puts multiple selections in the same row, I want to allow a user to make multiple record selections and import them from one table to the other.

    The reason is I have a master table with 42k records, I want a user to select for their own use, more than one record at a time.
    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

    #2
    Re: Edit Combo Box - Selections

    Sounds to me like you'd have to take the selections from the Edit-Combo (which will give you the keys) and then use XBasic to copy each record to the other table. You don't say if you're using a Grid or UX... and if you're using SQL or something else. And... are the table structures exactly the same? That's important to know.

    Comment


      #3
      Re: Edit Combo Box - Selections

      Yes, using MySQL, both grids and table structure match in all aspects - (so easy to forget to provide relevant info for new guys like me, sorry!)
      (which will give you the keys)
      Not sure what that means, so if you could elaborate that would be great!

      The tables reference all US City, State, Zipcode, County, Parish and Burough

      I want users to pull records from this base reference table just what they need, and not have all users call all 42k records even if they're indexed and dynamically being filtered by each user.
      Seems like it will save resources later on when theres a bunch of users.

      So I want a user to be able to pull just his own "few" records to another table that is referenced throughout the app to include his uuid (this is multi tenant)
      that way I have my users calling 18-20 records filtered rather than users filtering all of the records for a local address lookup.

      I don't really know if my idea makes sense and there's probably a better more efficient way to do it, however I am doing it the best way I know how.
      NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

      Comment


        #4
        Re: Edit Combo Box - Selections

        Is there more than one grid? ("both grids and table structures...").

        Is your existing Edit-Combo showing filtered records? Filtered based on the User?

        What's going to happen to the "User" table, with the few records in it. Is this a read-only process? If that user goes to get more records... what happens to the existing records... do they get wiped... or stick around?

        Comment


          #5
          Re: Edit Combo Box - Selections

          David, your starting to sound like I might have thought this through, lol
          I have to leave for the night to take my wife out, so I will get back with you tomorrow -
          Thanks for taking your time, talk to you then.
          NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

          Comment


            #6
            Re: Edit Combo Box - Selections

            I understand your premise... but I'm not sure about it. You have 42k records in a SQL table... which.. isn't a lot. Your users are going after a few records. So if your grid was filtered to show those few records... you'd only be bringing back those few records from the server. So what about making the selection from the Edit-Combo and then filtering the grid with those selections. The Grid, although based on the 42k row table, would not show any records when first opened... so no data from the server.
            Last edited by Davidk; 12-07-2013, 09:03 PM.

            Comment


              #7
              Re: Edit Combo Box - Selections

              hello

              I am curious. say for example, you visit a real estate site and look around and select few or more properties you like and add those to your select list and then when you visit the site again, you have an option of seeing all the listing or just your listing. is this something like this you want to do?
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              [email protected]
              Skype:[email protected]
              1 914 924 5171

              Comment


                #8
                Re: Edit Combo Box - Selections

                I just did a test with a table of 121,000 records... table size is about 22Mb, so it's not a bad size for testing.

                The grid, showing about 10 fields opens instantly. I have a button that filters the grid to 100 records and that happens instantly.

                So... I wouldn't worry about copying records... if speed and record count is the concern...it's not worth it. Open the grid empty, then use something else... a UX... to present the user with record choices. Make the selection and then set a filter on the grid.

                Comment


                  #9
                  Re: Edit Combo Box - Selections

                  I have a similar type of situation. In my case I have a list of about 3500 questions (think locations) that can be applied to each project (think person), but projects usually only require about 200 - 300 of the questions. The user selects questions from a "master list" to be added. Looks like this:
                  Capture1.PNG
                  When they click the "Copy lines from Master List" button, it pops up a grid with a list of sections ( think States ). Clicking the + opens questions in that section (think cities ). They click the checkboxes and click the "Add" button. The Xbasic callback adds the checked items and can do some nice things like checking for duplicates.
                  Capture2.PNG
                  You may want to do something similar.
                  Pat Bremkamp
                  MindKicks Consulting

                  Comment


                    #10
                    Re: Edit Combo Box - Selections

                    Well, the reason is also related to lookups in other grids.
                    So If I want to create a record in my phone log I want to just enter the address line 1 then lookup and automatically fill in lets say the city, state and zip code with just a click in an edit combo. I am populating that lookup from the the users "selected items from the base table.
                    So a user sets up an average of 18-20 zip codes that they would normally receive calls from, then when the secretary receives a call and starts entering info she can just select from the companies much smaller list which at that point does not need to be filtered in anyway as the address table is populated by the user with duplicate info except for two additional fields, userid and company id

                    I guess its kinda like putting in a 3rd part reference table in the same table.
                    like lets say record one has
                    kenner,LA, 70062 (this is the base table information)
                    the third record would say
                    userid,company_id Kenner,LA70062
                    a fourth if another different user selected the same record might say
                    different userid, different company_id, Kenner, LA, 70062

                    so if a user looks at his own address table
                    he would just see
                    Kenner,LA, 70062
                    because the records are filtered from the table by the company_id

                    so there you have my idea of how I did it and although I am certain theres some serious normalization that could be done - this was one novices idea of how to do it. Bear in mind I am NOT a programmer and although I grasp concepts I am still learning how to actually use and create variables, and xbasic is out of the question for me mentally, at least for now - but I am learning...

                    Thank you guys much for your thought and input - even if I do not get it today perhaps one day I will have a moment of clarity.
                    NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                    Comment


                      #11
                      Re: Edit Combo Box - Selections

                      Pat thats exactly what I wanted to do - I just dunno how
                      NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                      Comment

                      Working...
                      X