QuickStart Anchor

LANSA WAM

QuickStart - Anchor

To use an anchor 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 an anchor as follows:

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

2.  Drag the Anchor weblet over the column in your list and release the left-mouse button. The column's appearance changes to show that it is now an anchor 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.

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

4.  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.