Demonstrate Net.data built-in reporting functions

DTW_TB_DUMPV

This built-in function relies on the data in a Net.data %TABLE variable which are closely related to SQL result sets.
The Net.Data %TABLE variable used in this example is generated by populating it from the result of an SQL SQLECT statement.
Click here to show an explanation of this mechanism.

The DTW_TB_DUMPV function renders a Net.data %TABLE variable one COLUMN at a time within a <PRE> tag

The complete source for this example can be viewed at dtw_tb_dumpv.

This example first runs a DTW_SQL function named @list() which selects a SINGLE ROW from the file QIWS/QCUSTCDT.
Function @list() does nothing other than return a %TABLE variable named mytable.
Notice that in this case the @list function is also passed the surname which identifies the row to be selected.
The built-in function DTW_TB_DUMPV is then passed %TABLE mytable.
So there are just 2 lines within the %HTML block as follows -

@list("Doe",mytable) 
@dtw_tb_dumpv(mytable)
This generates the HTML for a <PRE> block.
The columns of the selected row from the file QIWS/QCUSTCDT are dumped into the block as a single column of plain text values.
When requested as a Net.data page the response should be -
475938
Doe
J W
59 Archer Rd
Sutter

Back to Tutorial