QuickStart Checkbox

LANSA WAM

QuickStart - Checkbox

It is common to use a checkbox with a column in a list to indicate a data item or selection state. To do so you would need to create a webroutine that specifies the list in its WEB_MAP. When you open the generated XSL in the LANSA Editor, you can change a column of the list to function as a checkbox as follows:

Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Checkbox weblet.

Drag the Checkbox weblet over the column in your list and release the left-mouse button. The column's appearance changes to show that it is now a checkbox. Click on an item in the column and then click on the Details tab. You should see that the name and value properties for the checkbox weblet have already been set according to the field upon which it was dropped.

Set the caption property as required. When used in a list you may not wish to use a caption – to remove the caption, specify an empty string by specifying two quote marks with no contained text.

You may need to set the oncode and offcode properties according to the values used in your application to represent the on and off or selected and unselected states.