refresh_block

refresh_block function has 2 variants:

Declaration

void refresh_block(char blockName);

Description

refresh_block function does sequentially:

  1. Needs datablock tag in form file.

  2. Prepares and executes data block's query.

  3. Executes "post_query" trigger for each row.

  4. Sends the new content of the data block to the client.

Parameters

char blockName

Return Value

Example

Reads all rows from database and shows them in data block.

refresh_block('emps');

Last updated