Websydian v6.1 online documentationOnline documentation - Websydian v6.1

WebGridPage Function

The WebGridPage pattern implements retrieval of records from a database table and subsequently generating an HTML page showing these data in a Grid.  In this way, the WebGridPage Page Generator pattern controls the reading of blocks of data calling the BlockFetch library function.

The WebGridPage pattern scopes the Position and Next Event Handler functions.

In order to apply the WebGridPage pattern, it is necessary to replace the UIBasic.Grid view by the application view containing the BlockFetch function to be called.

Example:

MyGridPage is a FNC WebGridPage
replaces VW
...by VW
UIBasic.Grid
MyEntity.Fetch

The number of records shown in the Grid is determined by the WsyGrid<GridCount> field.  The field is by default set to the block size of the returned data rows of the BlockFetch function, but this value can be overwritten in the action diagram (in the 0 Before loop in grid edit point).