Previous Topic: Examples

Next Topic: Examples

Macro buttons

A macro button allows the user to add a value to an existing field. Macro buttons in the Web Option are designed so they specify both the location of the (existing) command-line or input capable field, and the string to pass to the IBM i in that field. Macro buttons are not generated into any Web Option skeletons by default, but can be added to a skeleton post-generation.

Macro buttons are coded as follows:

<INPUT TYPE=”SUBMIT” VALUE=”button-text” NAME=”_Mnnnn:data-string” >
where button-text is the text that displays on the button itself and nnnn is the offset to the input field in which data-string is entered. The single colon separating the input field offsets the data-string.