Refresh hidden screen variable

 1 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
JoshuaBr
New Member
Posts: 3
New Member
    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
    New Member
    Posts: 3
    New Member
      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.