While I was working on Incremental Sync EIP’s, I saw this interesting piece of code,referred from Message Class Methods.
CopyRowset
Syntax : CopyRowset(source_rowset [, record_list]);
Description
The CopyRowset method copies data from the source rowset to the like-named fields in the message object executing the method. This is an easy way to populate a message with data from a component.
CopyRowsetDelta
Syntax : CopyRowsetDelta(source_rowset [, record_list]);
Description
The CopyRowsetDelta method copies rows of data that have changed from the source rowset to the like-named records and like-named fields in the message object executing the method.
CopyRowsetDeltaOriginal
Syntax : CopyRowsetDeltaOriginal(source_rowset [, record_list]);
Description
The CopyRowsetDeltaOriginal method copies rows of data that have changed from the source rowset to the like-named records and like-named fields in the message. It also copies the original value of the changed rows.

Example:
   Local Message &MSG;

   &MSG = CreateMessage(Message.DEPT_SYNC);
   &MSG.CopyRowsetDelta(GetLevel0()(1).GetRowset(Scroll.DEPT_TBL), Record.DEPT_TBL, Record.XXX_DEPT_TBL_WK);
   Or
   &MSG = CreateMessage(Message.DEPT_SYNC);
   &MSG.CopyRowsetDeltaOriginal(GetLevel0()(1).GetRowset(Scroll.DEPT_TBL), Record.DEPT_TBL, Record.XXX_DEPT_TBL_WK);

Advertisements