Announcements
I have used two temporary tables in my form. One is for all the controls and the other is for a grid. I am trying to obtain the values before update for on of the grid fields using orig but it does not seem to be working. The same if applied on the other temp table is working fine, therefore, I am a little confused as to what to do? Could you give me a few suggestions?
//modified method on the formdatasource field public void modified() { real oldVal = TempTable2.orig() ///using the name of the table as is because it has the same meaning as using cursor./// real newVal = TempTable2.Value; //New value, after update }
Existing record
You would just put a pre-event handler on the table update method, then use Orig method.
Hi ShravyaD,
Do you modify field for new record or existing one?
I do not get any value. It always returns null.
Regards,
Shravya
Hi ShravyaD,
What do you mean by "not working"?
Can you get any value or not?
I tried that too but it is still not working
Hi ShravyaD,
Try to add your field after the method:
TempTable2.orig().yourfield;
Hey Will,
Yes, I did
Shravya
Hi ShravyaD,
Did you put the method before super()?
I am trying to compare buffers as well. To find the difference in value for one field. I am using it in the form in the modified method of the datafield
André Arnaud de Cal...
294,069
Super User 2025 Season 1
Martin Dráb
232,858
Most Valuable Professional
nmaenpaa
101,158
Moderator