Online documentation - Websydian v6.1 |
A Deck Generator function based on the GridDeck pattern may be extended by a Grid Event Handler or a Jump function and one or more additional Card Generator functions.
Example:
MyGridDeck | is a FNC | GridDeck |
replaces VW ...by VW |
UIBasic.Grid MyEntity.Fetch |
|
MyGridDeck.GridCard | name NME | List MyEntities |
local view VW ...for VAR ...omit FLD |
MyEntity.Fetch OmitGridFields FieldA |
In the example above, all fields but FieldA are omitted from being displayed in the Grid. This is because most WAP devices only provides limited space for the displayment of data.
The GridDeck pattern receives the key fields of the UIBasic.Grid view as input parameters. This input determines the start position of the data fetch on the view specified for the Grid function.