Try OpenEdge Now
skip to main content
Updating Data with ProDataSets : Processing changes : MARK-NEW method

MARK-NEW method

If a ProDataSet temp-table is known to contain only new data, the MARK-NEW method of the buffer handle can be used to create a before-table record for those buffer records that do not have one, as shown with this syntax:


Using this method is easier than using MARK-ROW-STATE(ROW-CREATED) because you do not have to manually loop through all the records in the table. ROW-STATE is set to ROW-CREATED. MARK-NEW does not support record deletes or updates.
If buffer-handle points to a static temp-table that was defined without a BEFORE-TABLE option, MARK-NEW causes the AVM to raise ERROR. If buffer-handle is for a dynamic temp-table that has no before-table, one is automatically created.