Try OpenEdge Now
skip to main content
ProDataSets
Advanced Events and Attributes : Successive loading of ProDataSet data : COPY-DATASET and COPY-TEMP-TABLE methods : Current-only argument
 
Current-only argument
The current-only argument also applies only to COPY-DATASET. If current-only is present and is true, it tells the AVM to copy only the current buffer contents of each source ProDataSet buffer to the target ProDataSet. This option can be useful in situations where the business logic needs to deal with a modified row and its parent (and possibly grand-parent, etc.) without using any other rows. The current-only option is a way of getting this minimal set of data to pass to such an operation. Note that you might need to execute the SYNCHRONIZE( ) method to ensure that the contents of each buffer are what is needed. Since the usefulness of the current-only option is that it automatically copies a single row at multiple levels at once, it is supported only for COPY-DATASET. For a temp-table, you can use a single BUFFER-COPY statement or method to copy a single row.