SetSide1OpenState method: PanelController class
Syntax
SetSide1OpenState(Open)
Description
Use the SetSide1OpenState method to set the state of the Side Page 1 panel to open when the Open parameter is true; otherwise, when Open is false, the panel state is set to closed.
Note:
The state of a panel is closed by default.
Important:
Whether a panel is open is a transient condition that depends on the panel's mode and prior state settings (such as, ForceOpen or PersistentOpen). Therefore, invocation of this method might be ignored.
Parameters
| Parameter | Description |
|---|---|
|
Open |
Specifies a Boolean value indicating whether the panel is open. |
Returns
None
Example
import PT_PAGE_UTILS:*;
Local PT_PAGE_UTILS:PanelController &oPC = create PT_PAGE_UTILS:PanelController();
/* Multiple operations to be performed – auto-update disabled */
&oPC.Initialize( False);
/* Set force mode so that the panel can be forced open in fixed or collapsed */
/* primary mode as well as secondary overlay mode. */
&oPC.UseForceOpenModeSide1( True);
/* Set panel open (even in secondary overlay mode) */
&oPC.SetSide1OpenState( True);
&oPC.UpdatePanel(); /* perform all updates to Side1/Side2 panels */