Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ $foundsetTypeConstants.NOTIFY_VIEW_PORT_ROWS_COMPLETELY_CHANGED: { oldValue : ..., newValue : ... }, // if we received add/remove/change operations on a set of properties from modelViewport // corresponding to a record this key will be set; as seen below, it contains "updates" which // is an array that holds a sequence of granular update operations to the viewport; the array // will hold one or more granular add or remove or change operations; // all the "startIndex" and "endIndex" values below are relative to the viewport's state after all // previous updates in the array were already processed (so they are NOT relative to the initial // or final state); indexes are 0 based $foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES_RECEIVED: { // sometimes knowing the old viewport size helps calculate incomming granular updates easier $foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES_OLD_VIEWPORTSIZE: ..., $foundsetTypeConstants.NOTIFY_VIEW_PORT_ROW_UPDATES : [ { type : $foundsetTypeConstants.ROWS_CHANGED, startIndex : ..., endIndex : ... }, { // when an INSERT happened but viewport size remained the same, it is // possible that some of the rows that were previously at the end of the viewport // slided out of it; "removedFromVPEnd" gives the number of such rows that were removed // from the end of the viewport due to the insert operation; // NOTE: insert signifies an insert into the client viewport, not necessarily // an insert in the foundset itself; for example calling "loadExtraRecordsAsync" // on the foundset property // can result in an insert notification + bigger viewport size notification, // with removedFromVPEnd = 0 type : $foundsetTypeConstants.ROWS_INSERTED, startIndex : ..., endIndex : ..., removedFromVPEnd : ... }, { // when a DELETE happened inside the viewport but there were more rows available in the // foundset after current viewport, it is possible that some of those rows // slided into the viewport; "appendedToVPEnd " gives the number of such rows // that were appended to the end of the viewport due to the DELETE operation // NOTE: delete signifies a delete from the client viewport, not necessarily // a delete in the foundset itself; for example calling "loadLessRecordsAsync" // on the foundset property // can result in a delete notification + smaller viewport size notification, // with appendedToVPEnd = 0 type : $foundsetTypeConstants.ROWS_DELETED, startIndex : ..., endIndex : ..., appendedToVPEnd : ... } ] } } |
You might find what $foundsetTypeUtils provides useful depending on how you plan on using this listener.
Runtime property access
Since Servoy 8.0.3 , component type is scriptable. Type can be accessed like:
...
Overview
Content Tools
Activity