Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

setting a table record as Updated record thru, tab maintenance generator

Former Member
0 Kudos

HI all,

I have created a table and implemented table maitenance generator (TMG). Through TMG, im doing some validations whenever a record is modified/updated through table maintenance generator. <ACTION> is the field symbol which is set as 'U' for every modifed record.

Now my scenario is that the user will click on a button (DELETE) to clear the value of one table field when maintaining table entries. The value get cleared when DELETE button is clicked. Now, while I save the blank record, the system is not considering this record as modified record, since the value got cleared only through coding and not cleared by the user explicitely.

Since the value got cleared only through coding and not cleared by the user explicitely, <ACTION> is not as 'U' and hence the system is not considering this record as modified record and hence the blank value is not getting saved.

Can someone tell me how to make the record as modifed record?

Edited by: Jessica Rose on Jan 25, 2011 8:54 PM

1 REPLY 1

Former Member
0 Kudos

Jessica,

You may need to put some code in a different event, possibly the following.

09 After getting the original of an entry

You will have to find a way to compare the original record to the changed record. You may have to save some value in memory, and use that value in one of the other events.

Perhaps you will have to change the <ACTION> to 'U' in the event where you believe that it should be 'U'.

Bruce