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 Populate The Grid Part of a Grid

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

    How to Populate The Grid Part of a Grid

    The Grid consists of Grid section and the Detail section. The Grid section contains 2 fields, Service and Svcdescrip. Currently, the user will choose the service via a lookup. However, I would like all the services to populate the grid part rather than have the user select via lookup. The user will simply click on the service (1-5) and then complete the detail section. How can the grid part populate automatically?
    Attached Files
    Last edited by forskare; 07-06-2015, 02:13 PM.
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    #2
    Re: How to Populate The Grid Part of a Grid

    Grids are based upon tables (or views). You are asking the grid to display data from two different tables - one a lookup, the other a data entry table. Strictly speaking, that's not possible (although I suppose some clever person might figure out a way using a view).

    If it were me, I would just use a dialog. But that would require xbasic (at least the way i would do it).
    Peter
    AlphaBase Solutions, LLC

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


    Comment


      #3
      Re: How to Populate The Grid Part of a Grid

      instead of using textbox then lookup, you change the field to radio button then in the choices definition you define dynamic and fill in all the detail.
      all the choices will show up and the user can click one then add the description. lookup is gone. choices remain.
      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


        #4
        Re: How to Populate The Grid Part of a Grid

        http://screencast.com/t/TrWwfdV1GcGE
        here is the result,
        you can modify to fit your need.
        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


          #5
          Re: How to Populate The Grid Part of a Grid

          Peter, in the long run, your way is no doubt quicker to get working. Gandhi's way very easy and quick to set up, if it would only work. Currently, it shows the choices as well as the value previously entered. The toggle selected to show the detail is for the user to double click the row. Clicking on any part of a choice, including the radio button does nothing. Perhaps, as long as the previous value is showing as a separate list item, the choices are not activated. That's using only the grid by itself.

          hen I use the parent grid, things are bit different. The radio button for the previous value is still there but it is unchecked and the correct choice is selected, as it should be. However, the radio button is not activated as I cannot make a different choice.

          Going one step further by opening the grandparent grid, I see the same view. however, if I click on the row in focus and the double click another row, the popup message says I must first save or cancel the changes. Interesting, I never clicked in the detail part only the drid part and no changes were made.

          Hopefully, this makes some sense.
          Attached Files
          Last edited by forskare; 07-06-2015, 06:43 PM.
          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.

          Comment


            #6
            Re: How to Populate The Grid Part of a Grid

            Originally posted by forskare View Post
            Peter, in the long run, your way is no doubt quicker to get working. Gandhi's way very easy and quick to set up, if it would only work. Currently, it shows the choices as well as the value previously entered. The toggle selected to show the detail is for the user to double click the row. Clicking on any part of a choice, including the radio button does nothing. Perhaps, as long as the previous value is showing as a separate list item, the choices are not activated. That's using only the grid by itself.

            hen I use the parent grid, things are bit different. The radio button for the previous value is still there but it is unchecked and the correct choice is selected, as it should be. However, the radio button is not activated as I cannot make a different choice.

            Going one step further by opening the grandparent grid, I see the same view. however, if I click on the row in focus and the double click another row, the popup message says I must first save or cancel the changes. Interesting, I never clicked in the detail part only the drid part and no changes were made.

            Hopefully, this makes some sense.
            the whole stuff is confusing. what is grandparent grid?
            would you describe what is on your mind in simple steps.
            usually grid and detail parts work when grid is read only and detail is editable.
            if you show what you want may be i can play around and show what can be done with grid system you seem to like.
            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


              #7
              Re: How to Populate The Grid Part of a Grid

              gandhi,

              Thanks for responding.

              Parent Grid->Child Grid-> Grandchild Grid
              Parent Grid = Customer
              Child Grid = Work Sites
              Grandchild Grid = Services This grid has only 2 parts, the grid part and the Detail part. As shown in the pic, the Service radio button is located in the grid part. Perhaps, radio buttons will not work in the grid part. Just thought of another way to use the radio button for this. Time to give it a try.
              TYVM :) kenn

              Knowing what you can achieve will not become reality until you imagine and explore.

              Comment


                #8
                Re: How to Populate The Grid Part of a Grid

                i will try to put a sample later today. but want to point out to you that
                in a grid with detail view (grandchild) the grid part needs to be read only then it works.
                also the radio buttons will take a lot of real estate. it is my feeling that you want to imitate the paper form the tech has with the grid.
                can be done sometime later, i will post a screencast.
                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


                  #9
                  Re: How to Populate The Grid Part of a Grid

                  http://screencast.com/t/MS2XzsOvSMZ

                  take a look at this screencast, it is done to satisfy two of your needs,(1) grid->child->grandchild grids, (2) tech to just select a service type and enter detail in the description.
                  for me I would like a dialog. much better control, pleasing layout.
                  you choose what is best for you.
                  if you like I will fashion a dialog to do what is done in the grid.

                  making of the grids:
                  http://screencast.com/t/tsj9HmOQl4A
                  Last edited by GGandhi; 07-07-2015, 08:26 AM.
                  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


                    #10
                    Re: How to Populate The Grid Part of a Grid

                    Hello gandhi,

                    Thank you for the videos. You put the radio button list in the detail section. What I need is a to use the radio button list in the grid part. AS to why, this whole thing came about because the customer uses pre-printed contract which lists the services. The customer wants the contract to show the amount of the sale/service, sales tax and the and the total. Most of my customer's customers, do not use all services. Thus it should show $0 for the services not used. Using the report shows ONLY the services used. So, if a customer purchases service 3, it would actually print on the Service 1 row. In order to get it to print on the correct row, I need to either, enter a record for each service showing the amount as $0 if the service wasn't purchased.

                    If I set it up to print each service (rather than pre-printed) it will only show the services used. What my customer desires, is that all the services are listed whether purchased or not because often, their customer decides to add a service. If the service is not listed, the opportunity to remind the customer of other services is lost.

                    As I think about this, ideally, the best way to accomplish this is that when a new customer is added, the 5 services are added, and the amount of $0 is entered into the sale field. Any service amount and the accompanying info can be changed at any time. What's not changed will show on the contract as $0 for the sale amount. The attached might be of help.
                    Attached Files
                    TYVM :) kenn

                    Knowing what you can achieve will not become reality until you imagine and explore.

                    Comment


                      #11
                      Re: How to Populate The Grid Part of a Grid

                      can you fax the blank pre printed contract form to
                      347 725 4571
                      you can remove any sensitive part.
                      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


                        #12
                        Re: How to Populate The Grid Part of a Grid

                        I emailed it to you.
                        TYVM :) kenn

                        Knowing what you can achieve will not become reality until you imagine and explore.

                        Comment


                          #13
                          Re: How to Populate The Grid Part of a Grid

                          Progress. I created a form based on my Sales table, putting several fields on it along with a button with the following code which I generated from action scripting. The code won't work in a grid but I should be able to do the same thing with javascript. This is the xBasic code which works great:

                          'Enter new record in current form.
                          topparent.new_record()
                          'Set 'Value' property of multiple objects in Form 'testing' .
                          parentform:Sale.value = 0
                          parentform:Svcdescrip.value = "Spring"
                          parentform:Service.value = "1"
                          'Save record in current form.
                          topparent.commit()
                          'Enter new record in current form.
                          topparent.new_record()
                          'Set 'Value' property of multiple objects in Form 'testing' .
                          parentform:Sale.value = 0
                          parentform:Svcdescrip.value = "Early Summer"
                          parentform:Service.value = "2"
                          'Save record in current form.
                          topparent.commit()
                          'Enter new record in current form.
                          topparent.new_record()
                          'Set 'Value' property of multiple objects in Form 'testing' .
                          parentform:Sale.value = 0
                          parentform:Svcdescrip.value = "Summer"
                          parentform:Service.value = "3"
                          'Save record in current form.
                          topparent.commit()
                          'Enter new record in current form.
                          topparent.new_record()
                          'Set 'Value' property of multiple objects in Form 'testing' .
                          parentform:Sale.value = 0
                          parentform:Svcdescrip.value = "Fall"
                          parentform:Service.value = "4"
                          'Save record in current form.
                          topparent.commit()
                          'Enter new record in current form.
                          topparent.new_record()
                          'Set 'Value' property of multiple objects in Form 'testing' .
                          parentform:Sale.value = 0
                          parentform:Svcdescrip.value = "Late Fall"
                          parentform:Service.value = "5"
                          'Save record in current form.
                          topparent.commit()
                          TYVM :) kenn

                          Knowing what you can achieve will not become reality until you imagine and explore.

                          Comment


                            #14
                            Re: How to Populate The Grid Part of a Grid

                            Well, almost. I changed the code to the javascript version and while it does insert a new record, it only adds the first one. I broke the code down to 5 buttons and tried it one at a time. If this is a new customer (no existing services) it will add the first service. However, the other buttons only change the service number. The do not enter a new record even though the first line of code is {grid.Object}.detailViewNewRecord();. The code on each button is the same except the service number is different as is the Svcdescrip.

                            {grid.Object}.detailViewNewRecord()
                            {grid.object}.setValue('D','SERVICE','2')
                            {grid.object}.setValue('D','SVCDESCRIP','Early Summer')
                            {grid.object}.setValue('D','SALE','0')
                            {grid.Object}.submitDetailView();

                            Is there other or different code which must be added/used?
                            TYVM :) kenn

                            Knowing what you can achieve will not become reality until you imagine and explore.

                            Comment

                            Working...
                            X