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

ActionScript "Set Value Property of Fields" Error

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

    ActionScript "Set Value Property of Fields" Error

    To get around the issue Alpha 5 has with "auto increment" of a parent table of a set in a multi-user environment, I have added an OnInit to "Save" the parent upon enter, the open in change mode, then added a "Cancel" button that will fill a few fields that identify it as such. this way, there are no unexplained gaps in the sequence, but I don't have child rows "cross talking' either.

    The button uses a mix of inline xBasic and Action Scripting. I am setting three fields to values that will identify it as a cancelled Invoice. Using the genie, I select the "Set Value Properties of Fields()." I select the the fields from the object list that Alpha presents in the Action Scripting genie, so I know they're there, spelled correctly, etc.

    Two of the fields work fine. One doesn't. When activated (OnPush) the other values are modified, but the one in question returns an "On Push" error of "ParentForm:fieldname not found."

    The field in question and one of the others are "Lookups." One works, the other doesn't.

    My "Assumption" is, if the field is presented as an option from the Action Script genie, and its in the Object viewer, the genie should see it.

    Now, I was going to send this post from here, but decided to try one more thing. The field was in an area below the "footer" line, so I move it up in to the "detail" portion. Suddenly, the "set" now works! Confused, I moved it back again below the footer line and it stopped working again!

    Any ideas? The "footer" area contains totals and such. Is it "Off Limits" until it entry progress takes the user there?
    Last edited by sybs01; 04-13-2010, 02:04 AM.

    #2
    Re: ActionScript "Set Value Property of Fields" Error

    Bill,
    It seems like you are talking about 3 entirely separate issues/problems in this thread without even a thin "thread" binding them together (at least not an obvious one for me).....auto-increment work-around, fieldname not found, and report data from a set not present (implied) or data present but not showing linked records unless field is in detail (which makes sense in that the detail is the Minimum to have in a report....without it there are no records to show.....).

    So what is your question (notice the singularity of what I just asked!). :)
    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


      #3
      Re: ActionScript "Set Value Property of Fields" Error

      Originally posted by MikeC View Post
      Bill,
      It seems like you are talking about 3 entirely separate issues/problems in this thread without even a thin "thread" binding them together (at least not an obvious one for me).....auto-increment work-around, fieldname not found, and report data from a set not present (implied) or data present but not showing linked records unless field is in detail (which makes sense in that the detail is the Minimum to have in a report....without it there are no records to show.....).

      So what is your question (notice the singularity of what I just asked!). :)
      Just trying to put as much context into the question as I can - when I don't, I fear getting "where's the context?". Either that, or I get design revision suggestions totally unrelated to the problem, like "why a lookup and not a check box" or something akin to that.

      In this instance, the "Auto-increment" workaround verbiage was included as an explanation of my over all goal. The "set", was not an Alpha DB "set' but a value set - as in "set"ting a value (I used the term "Set Value Properties of Fields()", the full Action Script function name, then shortened that to "set" assuming that the "thread" could followed without repeating the rather lengthy phrase - sorry if that confused.) I included a note that the field was a lookup, just in the event, as is so often the case, that the answer might have been, "Oh, that feature works great, unless its a lookup" type of situation - I've seen threads like that before.

      The focus of the question is that a field that appears in a list for the "Set Value Properties of Fields()" function of the Action Script genie appears in the list, but if you select it, it says not found later when the user, by virtue of using the script, is setting it.

      What is obviously happening is that, although the list presents fields from all regions of a form, Alpha doesn't "make them be so" until the region that contains the field is "invoked" in some way. So, a field in the "footer" region (in a form with a header, detail and footer in it) is not "set-able" if the user hasn't tabbed into that region. This is an assumption based on behavior.

      My solution was to move the filed into the detail region and, voila, it works. So, it appears that A5 can't reference fields associated with other regions - or at least others that occur "later" in the process, as a footer is "down stream" from a header or detail.

      This makes a deal of sense, in that, even though a field appears somewhere in a form, the timing might dictate when its available for manipulation. The genie has no idea at what point the buttons it's attaching the function to is going to get pushed, so will present all fields, even though some may or may not be "available" depending on the timing.

      My original question dealt with why a field, which I know is there and the genie knows it there, cuz its offering it to me as an option, would return a "field not found' error. In the middle of writing my question, I had a brief flash of an idea to move it around the form to see how that affected the error, tested it out, and then completed my question (which at that point I probably should have just rewritten).

      What I was looking for was some confirmation that this is the case, but I just experimented with it until I confirmed that this is how it works.

      I'm throwing all this in now, because I also like to follow up with the solution - even I have to find it on my own - so that some other poor soul grappling with the same issue can benefit from the experience.

      Comment


        #4
        Re: ActionScript "Set Value Property of Fields" Error

        Thanks for the clarification Bill,

        Easily confused I admit I can be at times!! :) Such as I usually relate headers and footer with reports and not forms... v10 forms now have detail, header, and footer regions. I think that will have to be another requirement when using such terms to make certain that everyone realizes whether it involves a form or a report. In which case I haven't a clue as I have not yet used them.


        Maybe I should not have responded before as I now think I have just clouded/muddied what you were trying to convey........quite possibly the aforementioned "haven't a clue" is most appropriate! :)
        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


          #5
          Re: ActionScript "Set Value Property of Fields" Error

          Easily confused I admit I can be at times!!
          Yoda, you live!
          There can be only one.

          Comment

          Working...
          X