Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
/** * NOTE: Starting with Servoy 8.4 you no longer need to use this method; see @deprecated * comment. * * The purpose of this method is to aggregate after-the-fact granular updates with indexes * that are relevant only when applying updates 1-by-1 into indexes that are * related to the new/final state of the viewport. It only calculates new indexes * for updates of type $foundsetTypeConstants.ROWS_CHANGED. (taking into account * any insert/delete along the way) * * @param viewportRowUpdates what a foundset/component property type (viewport) change listener * would receive in changeEvent[$foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES_RECEIVED] * [$foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES] * * @param oldViewportSize what a foundset/component property type (viewport) change listener * would receive in changeEvent[$foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES_RECEIVED] * [$foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES_OLD_VIEWPORTSIZE] * * @deprecated starting with 8.4 this is no longer needed as foundset/component/foundsetlinked * property change listeners guarantee that the rows in inserts and updates have their indexes * relative to the already changed viewport (data in the viewport at those indexes at the * moment these listeners trigger does match correctly). So basically calling this method would * not alter any update operations - they would remain the same. * * @returns an array of $foundsetTypeConstants.ROWS_CHANGED updates with their indexes corrected * to reflect the indexes in the final state of the viewport (after all updates were applied). */ coalesceGranularRowChanges: function(viewportRowUpdates, oldViewportSize); |
operations THAT
Overview
Content Tools
Activity