is_selected_if_also

LANSA WAM

is_selected_if_also

By default, a menu item assumes the selected-state appearance if the values for its on_click_wamname and on_click_wrname properties match the WAM and webroutine name of the current page (note that this comparison is case-sensitive).

This property allows you to extend this behavior by specifying a further condition that must apply for the menu item to assume the selected-state.

Default value

true() (that is, no further condition applies)

Valid values

Any valid XPath expression that returns a Boolean value.

Example

This example specifies that, in addition to the default tests specified above, the weblet will test if the field #STD_FLAG is equal to 'X'. The expression should be entered in this form:

When the property loses focus, the expression is shown as follows: