Previous Topic: lsStartNext Topic: menubarItem


lsWrite

The lsWrite macro specifies JavaScript code executed for every row of a list. The text specified by lsWrite is inserted into the HTML form multiple times, once for each row of the list. You define the contents of a list form with the lsStart, lsCol, and lsEnd macros. You can optionally include lsWrite and lsExport macros. For example:

<PDM_MACRO name=lsStart. . .>
<PDM_MACRO name=lsCol . .>
<PDM_MACRO name=lsCol . .>
<PDM_MACRO name=lsWrite . .>
<PDM_MACRO name=lsCol . .>
. . . 
<PDM_MACRO name=lsEnd>

HTML for the entire list is output by the lsEnd macro. The other list macros save information used by lsEnd to generate the list.

This macro has the following properties:

both=yes|no

Specifies whether the JavaScript text defined by the macro is inserted before the list and for every row on the list.

text=script

Specifies the text to insert.