Skip to main content link. Accesskey S

XPages Wiki

Submit Search

YouAtNotes XPages Wiki


Home > UI > Work with Hide When on a XPage

Work with Hide When on a XPage

ShowTable of Contents

Each component on a XPage have the "visible" property which can be computed. If computed, your JS should return eithertrue orfalse or a empty string (same asfalse) or "1" (same astrue).

HideWhen based on a user role


Show the element if user has the role [role].

var v:Array = database.queryAccessRoles(session.getEffectiveUserName());
@IsMember("[role]", v)

Set visible for a component with JavaScript


var elem:javax.faces.component.UIComponent = getComponent("contentPopup");
elem.setRendered(true);
See what's possible with Xpages.
Have a look at our ServiceCommunicator website
and the YouAtNotes Support.
Use  searchlotus.com  for news in the Web related to Lotus Notes and Domino,
and to search those sites.
Check  youatnotes.com  for great Lotus Notes, Domino and XPages software.
Did this wiki help you?
Did this saved you time? Express your gratitude by making a donation:
PayPal - The safer, easier way to pay online!