PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01/14/2014 1:31 PM by  JoshuaBr
Refresh hidden screen variable
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
JoshuaBr
Systems Analyst
South East ERP
New Member
(5 points)
New Member
Posts:3


Send Message:

--
01/13/2014 3:46 PM
    I'm having an issue where after adding a record to a custom table, a hidden screen variable is not populating without the user doing a manual inquire.
     
    I need this field to refresh immediately after the record(s) are written because it's value is being used to populate an index field (PAC-LN-NBR for PACOMMENTS). I realize that as a last ditch effort I could do a DME for the value, but I would prefer not to incur the overhead involved in doing so if the client wishes to add numerous comments, especially when I believe this value should be sent to the screen (and it is, after a manual inquiry).

    At the moment I am using lawformDoFunction("C") to drive the submission of the records when the submit button is clicked, and have tried to use a lawformDoFunction("I") to refresh the screen shortly after calling the lawformDoFunction("C") . Unfortunately, this did not seem to have any effect that I could discern.
     
    Is anyone aware of a method to force this value to refresh without having to do a manual inquire?

    Thanks ahead of time.
    JoshuaBr
    Systems Analyst
    South East ERP
    New Member
    (5 points)
    New Member
    Posts:3


    Send Message:

    --
    01/14/2014 1:31 PM
    FYI, I found at least part of the issue, the lawformDoFunction("C") did not actually submit the new records to the DB at the point it was called, it did so much later in the code (I believe it did not do it until after the calling 'Button_onclick' function was finished). Therefore, my efforts to get the updated field value were ineffective since there was nothing to get. Unfortunately, the value is still not being displayed on the screen after the transaction, and I have placed a DME call in the 'OnAfterTransaction' function which works to retrieve the value from the DB.
    You are not authorized to post a reply.