Page.getControlsByModifier

Returns an array of controls that have the named modifier.

Modifiers provide a way of flagging one or more controls so they can be found programatically, e.g. a group of Field Controls might be changed from enterable to display only. Modifiers are assigned to controls at design time using the Modifiers property. Any number of modifiers can be assigned - modifiers are entered as a comma delimited list.

Javascript example:

 var page = pages.PAGE_1;
 for each (var ctrl in page.getControlsByModifier("FINANCE"))
 {
   if (!system.securityManager.hasRole("FINANCE_CONTROLLER"))
   {
      ctrl.hide();
   }
 }
 

returns UNKNOWNcom.ebasetech.xi.api.controls.Control[]

Parameters

java.lang.String  modifier,