Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Accessing form data before change

  1. #11
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,186
    Hi Cory,

    assuming you know the field names, let's say there is a cName field:

    ? getmember("oDifferences","cName","XXXXXXXXXXX")

    If cName is indeed a field, it's value will be returned. If not, the last parameter ("XXX...." here) will be returned.

    So if you are interested in 3 fields out of 50, you can just test for those 3 fieldnames.

    hth,

    Hank

  2. #12
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Hi Hank,

    Thanks for the information.
    It's always good to learn about difference functions.

    Cory

  3. #13
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    It appears that I am now receiving an unexpected error.

    When I clear the form, I am now receiving the error:
    Failed to update the record.
    Record may have been changed by another user.
    Do you want to overwrite those changes?
    Regardless if I select yes or no, the changes to the data are cancelled.

    I commented out a few things, including the foreach loop.
    Once I commented out the following, the error no longer occurs and the field does get updated.

    scatter name currentvalues

    Any idea why I am getting this error?

    Cory

  4. #14
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Here is more information.

    The error seems to occur only if the user presses the enter key after editing a form field, which fires the section changed event.
    Clicking the green save check mark does not produce this error, saves the change although doesn't fire the section changed event.

    Cory
    Last edited by CGibson; 2015-04-29 at 13:00.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us