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

Initially Populating a List Box ???

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

    Initially Populating a List Box ???

    Greetings

    I have a sub-form that I am showing with the form.load(...) method from my Main Form.

    On the sub-form is a Combo Box populated from the properties choices tab with several line items.

    With the OnChange event for the ComboBox, I populate the List Box based on the contents of the ComboBox Variable.

    This all works just fine and I am happy .....

    I Pre Load the choice in the Combo Box with the most popular choice by setting its variable on the form's OnInit() event and that also shows just fine.

    My problem is that I cannot see what I am pre-loading in the list box.

    I populate the list box settings.dynamic_list in the OnInit()for the form, but it does not show in the list box.

    I have debugged and "Traced" the OnInit event and the contents that I want are, in fact, in the dynamic_list, but I cannot get them to show on the form.

    I have tried the .refresh() on the list box control, on the form and the refresh_Layout() on the form.

    How can I get the contents of the list box to initially show ???

    THANKS for your help

    Bob

    #2
    Have you tried using a variant of your 'OnChange' code in your 'OnInit' or 'OnActivate' event for the form?

    Comment


      #3
      Thanks Scott for your comments - but YES I have tried both of those events.

      I have copied the OnChange() code to both the OnActivate() and OnInit() and I can see that the settings.dynamic_list is being filled as I wish ... if I debug the code or trace.write the list, it is all there - but it just will not show in the list box of the form itself.

      I even put message boxes in the OnActivate, OnChange and OnInit events and I KNOW they are fireing ... it is just that the dynamic_list does not show in the list box,

      But if I change the contents of the combo box - "voila" there it is.

      I even put the code in the OnMouseFlyover event and the list showed just fine, but I have to mouseover the combo box and that is not a natural thing for the user to do ???

      I am really stumped with this one (after several hours of "playing")

      Thanks again
      Bob

      Comment


        #4
        Robert, I've never really understood the need for or used subforms. When you try to refresh() the list box in your subform are you using an "address" for the list box that takes into account it's position as child of the main form?

        Suggest you use the Object explorer to confirm that you're "addressing" the object correctly.

        -- tom

        Comment


          #5
          If the first choice will always be the same then you could do as I have done with Action Scripting.

          On the OnActivate event of the form I used the Action Script within the Objects Properties (Set and Get) category called Set 'Text' property of Object(s).

          Set the text property to the name of your variable object(mine is called Vcompany_type).

          Use the Specify the value now option and simply fill in whatever the choice is that the form is activated with.

          This only solves the problem if, of course, your first choice is a permanent one as whatever is named for the choice is not linked to the choices at all---there must be a way to have it so linked with an expression but that is beyond me at this point.
          Mike
          Mike
          __________________________________________
          It is only when we forget all our learning that we begin to know.
          It's not what you look at that matters, it's what you see.
          Henry David Thoreau
          __________________________________________



          Comment


            #6
            Mike

            My ComboBox is linked to a variable "frequency". In the OnInit for the form, I make "frequency" the value that I want the initial entry in the box to be and that seems to work for me.

            I put this in the "OnInit" event because it only fires once, whereas, my understanding is, that "OnActivate" will fire much more frequently and may actually change the choice that the user wants in the box.

            My OnInit simply says ...
            frequency = "weekly"

            And "weekly" is one of the choices already set up in the list of choices in properties for the ComboBox. This works for me and when the form shows, my ComboBox contains "weekly".

            MY PROBLEM
            and after days I still cannot get it to work is that a list box is dependant on the value in the ComboBox and even though I set the variable for the ComboBox to "weekly" and that shows as the choice in the ComboBox, I cannot get the contents in the list's settings.dynamic_list that corresponds to that choice to show in the list control.

            My OnInit really says ...
            frequency = "weekly"
            ChoiceList.settings.dynamic_list = Choices_For_Weekly

            Where ChoiceList is the name of the list box and
            Choices_for_Weekly is a crlf delimited list of choices.

            My ComboBox shows correctly but my choiceList is blank
            If I trace.writeln my ChoiceList.settings.dynamic_list
            It is populated correctly, it just doesn't show

            Mike, I hope this helps, if not ... keep asking ... and somebody will help
            (maybe even both of us)

            Best Regards
            Bob

            Comment


              #7
              "a list box is dependant on the value in the ComboBox and even though I set the variable for the ComboBox to "weekly" and that shows as the choice in the ComboBox, I cannot get the contents in the list's settings.dynamic_list that corresponds to that choice to show in the list control."

              And the scope of the variable in the combo box is...? Should be at least shared or if you are declaring it in the form editor "session".
              Bill Hanigsberg

              Comment


                #8
                Hi Bill

                Thanks for your reply ...

                The scope of the variables on both the ComboBox and the ListBox are GLOBAL.

                But, good suggestion, THANKS

                Bob

                Comment


                  #9
                  Bob, the method you should use to dynamically adjust the contents of the listbox depends upon which method you use initially to create it. I think the docs have been revised in the last few weeks to clarify this. Suggest you backtrack through the helps and see if you're using the correct method.

                  -- tom

                  Comment

                  Working...
                  X