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

Need help storing record id from xdialogue tree

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

    Need help storing record id from xdialogue tree

    I�m still new to alpha 5. I�m guessing there is an easy way to accomplish what I�m working on, but for the moment I�m stumped. I�m using an xdialogue to present a tree to my user. The data for the tree comes from a separate table. The xdialogue stores the choice from the tree (as character), but what I really want is to store the record�s id# (as numeric) from the tree�s table. Because I�m new, I�m still limited to doing everything by Action Scripting. Does anyone know of a way to do this?

    #2
    Re: Need help storing record id from xdialogue tree

    Hi Ray,

    It is not a good idea to have an Id field as numeric.

    The unwritten law is only have numeric fields which are going to be used in calculations.

    As you want to store the character value as a numeric then you should look at the VAL() function.

    I would recommend that you reconsider the use of your Record Id.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    Comment


      #3
      Re: Need help storing record id from xdialogue tree

      Thanks Keith. I didn�t know about the rule of thumb of using numeric primarily for calculation fields. I�ll make that edit in my tables.

      However, I�m still stumped in regards to the other part of my question: The xdialogue stores the choice from the tree into a variable, for example, �California.Sacramento.teacher�. I recently learned that I can easily save that variable to my record by using �Set Field Value.� However, what I�m trying to figure out is a little different. �California.Sacramento.teacher� comes from a separate table that has a field called �Source_Id� which is my key field for that table.

      Instead of saving �California.Sacramento.teacher� to my record, I�d like to save the value from �Source_Id�. Is there a way to do this?

      Comment


        #4
        Re: Need help storing record id from xdialogue tree

        Take a look at the {Data} command. You would get your Source_Id value at the time you you populate the tree and place it in the {Data} command. You would incorporate the command in the expression that you used in the action script genie.

        There is a sample database in your A5v9 program folder in the Learning Xdialog folder. There you can find an example related to the above help link. When it opens there will be a dialog of examples. Expand 'What's new in V8' (second from bottom) then expand the 'Tree Control' item then choose the second item.

        Holler if you are still stuck.
        Tim Kiebert
        Eagle Creek Citrus
        A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

        Comment


          #5
          Re: Need help storing record id from xdialogue tree

          Kieth, I vaguely recall reading that moving adbs to sql would require all key fields to be numeric. I remember when I read it thinking - oh boy, we are in for a lot of changes in existing adb's. Do you recall reading that anywhere. I may be incorrect.
          Cole Custom Programming - Terrell, Texas
          972 524 8714
          [email protected]

          ____________________
          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

          Comment


            #6
            Re: Need help storing record id from xdialogue tree

            Hi Martin,

            I have not heard that key fields in SQL should be numeric, I'm sure that Andrea can correct us on that.

            Tim, thanks for reminding me to go over the Leaning Xdialog, the {Data} command is great to know about. I should give myself a refresher course.

            In the example the OK button is greyed out until the user gets to the end of the tree. How do you do that when using the Genie? (without converting it to xbasic).
            Regards
            Keith Hubert
            Alpha Guild Member
            London.
            KHDB Management Systems
            Skype = keith.hubert


            For your day-to-day Needs, you Need an Alpha Database!

            Comment


              #7
              Re: Need help storing record id from xdialogue tree

              Originally posted by Keith Hubert View Post
              Hi Martin,

              I have not heard that key fields in SQL should be numeric, I'm sure that Andrea can correct us on that.

              Tim, thanks for reminding me to go over the Leaning Xdialog, the {Data} command is great to know about. I should give myself a refresher course.

              In the example the OK button is greyed out until the user gets to the end of the tree. How do you do that when using the Genie? (without converting it to xbasic).
              Re sql and char v num.
              I think the issue is that some sql flavours require numeric for auto increment. But then from recent reading on sql I think it handles compound primary keys better than Alpha does (or at least differently) so that often you don't need a seperate auto inc field.

              Re the xdialog.
              Hmmm. I took a look and it seems like you can't specify an enable condition for any of the buttons from with in the genie. Like you can when editing a toolbar. I haven't noticed cause I do them all in xbasic now a days. This might be some thing for the wish list.
              Tim Kiebert
              Eagle Creek Citrus
              A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

              Comment


                #8
                Re: Need help storing record id from xdialogue tree

                Hey everybody,
                Thanks! Tim, I used the {data} command and it works great. This capability is HUGE for me because my user has several complicated drop down trees that may change over time (uugh). I can now hook the drop down menu to a table, and maintenance will be MUCH easier. This may be small potatoes for you veterans, but for a newbie, this is like a small miracle. Thanks!!!

                I have one more question: When the user is navigating down the tree and wants to open a branch, the only way i can make that happen is by double-clicking on the menu item. My user is requesting a keystroke to substitute for the double-click. Is there a way to do that?

                Comment


                  #9
                  Re: Need help storing record id from xdialogue tree

                  Nevermind. I just stumbled onto the solution. It's the right arrow key. Thanks all.

                  Comment

                  Working...
                  X