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.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |