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

Repeating Section dropdowns after 'Refresh Controls' call

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

  • Repeating Section dropdowns after 'Refresh Controls' call

    I have repeating sections that link users to a visit. I have a link that says 'Add New User'. When clicking this link a popup comes up and I add new users.

    I use the following code to refresh the dropdown in the repeating section:
    {dialog.Object}.refreshDropdownBoxChoices('DDUSER');

    This works fine, however, when clicking Add New Row in the repeating section - the dropdowns do not have my new user.
    Is there a way to tell Alpha that when refreshing the control it should store this list as the new list when Adding New rows?

    Any help is appreciated
    Scott Moniz - Computer Programmer/Analyst
    REA Inc.
    http://reainc.net
    (416)-533-3777
    [email protected]

    REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
    If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
    contact us to discuss options.

  • #2
    Re: Repeating Section dropdowns after 'Refresh Controls' call

    I do not where you are using that code, however would you mind testing the same
    {dialog.Object}.refreshDropdownBoxChoices('DDUSER');
    in the dduser control onFocus event and see if it works.

    secondly, is this a desktop question? it is in desktop section.
    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


    • #3
      Re: Repeating Section dropdowns after 'Refresh Controls' call

      Hi Ggandhi,
      It is technically a web quesiton, I must have put it in the wrong section.

      Using on focus might be a good bandaid fix but will introduce a number of redudant ajax callbacks. I suppose with the caching it may not be so bad and it is better than it not working.
      I was using the refreshDropdownBoxChoices call on the OnHide event of the dialog window that actually adds users.
      So when the popup window is closed - the choices get refreshed. This works for existing dropdowns but when I add new records, it uses a cached list.

      Thanks for your input
      Scott Moniz - Computer Programmer/Analyst
      REA Inc.
      http://reainc.net
      (416)-533-3777
      [email protected]

      REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
      If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
      contact us to discuss options.

      Comment


      • #4
        Re: Repeating Section dropdowns after 'Refresh Controls' call

        I had similar situation where I had one button to add the name to list another to refresh the dropdown, now you made me think
        and now I am testing new method, so far so good.
        when you click on the link to add the new user you are using the dialog right? when you save the dialog on the afterDialogValidate event the variable that is exposed can be used to refresh the list.

        here is the code I used and seems to work.

        Code:
        if rtc.flagRecordWasSaved = .t. then
        	
        	e.javascript = e.javascript+ crlf()+"var po = {dialog.object}.getParentObject();"
        	e.javascript = e.javascript + "if (po) {po.refreshDropdownBoxChoices('NAME');}"
        
        end if
        edit: added if (po)
        in your case change to DDUSER
        Last edited by GGandhi; 11-19-2014, 07:54 PM.
        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: Repeating Section dropdowns after 'Refresh Controls' call

          Hi Ggandhi,
          I have similar code, but does the following work with your example:

          Click the Add New User button
          Add a User
          Names refresh - Okay
          What happens if you click the 'Add New Row' in the repeat section? Does the NEW dropdown contain your new entry?

          Would appreciate it if you let me know

          Thanks very much for your time
          Scott Moniz - Computer Programmer/Analyst
          REA Inc.
          http://reainc.net
          (416)-533-3777
          [email protected]

          REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
          If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
          contact us to discuss options.

          Comment


          • #6
            Re: Repeating Section dropdowns after 'Refresh Controls' call

            http://screencast.com/t/kvtgq7Z1ZCJ

            http://screencast.com/t/lFdbAdVgO

            this is two part series, one showing in real life I did not add data not to mess up my database,
            the second one mock up shows what is happening.
            hope this is what you are looking for..
            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: Repeating Section dropdowns after 'Refresh Controls' call

              Hi Ggandhi,
              Thank you for making the screencasts.
              I took a look at them but here is the issue I have:

              1) Click the Add Vendor
              2) Add 'peacock'
              3) Peacock will show in any dropdowns
              4) Add New Row to the repeating section
              5) Without doing anything else, see if 'peacock' exists in the New Row

              In our tests over here, the newly added row does not contain the refreshed list.
              Can you see if this bug happens in your version as well?

              Someone had suggested I move the refresh code to onFocus of the dropdown, but this might introduce a lot of redundant ajax calls.
              Just trying to see if there is a better solution.

              Thank you for your time / patience / assistance
              Scott Moniz - Computer Programmer/Analyst
              REA Inc.
              http://reainc.net
              (416)-533-3777
              [email protected]

              REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
              If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
              contact us to discuss options.

              Comment


              • #8
                Re: Repeating Section dropdowns after 'Refresh Controls' call

                did i not show with mozart? the next one?
                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: Repeating Section dropdowns after 'Refresh Controls' call

                  i just added new row and all of the newly added items exist
                  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: Repeating Section dropdowns after 'Refresh Controls' call

                    http://screencast.com/t/kty41rmq
                    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


                    • #11
                      Re: Repeating Section dropdowns after 'Refresh Controls' call

                      Hi GGandhi your last example is correct (the one with belafonte) - and everything seems to work in your system.
                      What Alpha Version are you using (V11? V12?) and Build#?
                      Maybe this is specific to Alpha Version V12.2 Build 1826.

                      Thank you for taking time out of your day.
                      Scott Moniz - Computer Programmer/Analyst
                      REA Inc.
                      http://reainc.net
                      (416)-533-3777
                      [email protected]

                      REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
                      If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
                      contact us to discuss options.

                      Comment


                      • #12
                        Re: Repeating Section dropdowns after 'Refresh Controls' call

                        look down to my signature
                        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


                        • #13
                          Re: Repeating Section dropdowns after 'Refresh Controls' call

                          Gotcha - Wasn't sure if that was the only version you used.
                          Maybe this is something related to the specific version Im using.

                          Thank you for all your help.
                          Scott Moniz - Computer Programmer/Analyst
                          REA Inc.
                          http://reainc.net
                          (416)-533-3777
                          [email protected]

                          REA INC offers consulting services, programming services, systems design, database design, third party payment gateway integration (CHASE, PAYPAL, AUTHORIZE.NET) and developer support.
                          If you need custom code, or 1-to-1 mentoring in any facet of your database/web application design,
                          contact us to discuss options.

                          Comment

                          Working...
                          X