QuickStart Clickable Image

LANSA WAM

QuickStart - Clickable Image

To use a clickable image with a column in a list, you would need to create a webroutine that specifies the list in its WEB_MAP as *BOTH or *OUTPUT. When you open the generated XSL in the LANSA Editor, you can change a column of the list to function as a clickable image as follows:

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

Drag and drop it onto the column in your list you want to be clickable. The column's appearance changes to show that it is now an image. 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 anchor weblet have already been set according to the field upon which it was dropped.

Set the currentrowhfield and currentrownumval properties as described in the property descriptions.

Set the on_click_wrname property to the name of the webroutine to be invoked when the hyperlink is clicked. If the webroutine is in a different WAM to the current webroutine then you will need to set the on_click_wamname property as well.