cancel
Showing results for 
Search instead for 
Did you mean: 

open&close tray

Former Member
0 Kudos

Hi!

Is there a command existing to open or close any tray after appearing

of initial screen or clicking a button like expand.tray_Xyz()...

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a context attribute of type boolean.

set the initial value to true.

bind this property to

<b>expanded</b>

Regards

Ayyapparaj

Answers (2)

Answers (2)

former_member485701
Active Participant
0 Kudos

Hi,

(1)The Tray UI element is a container that may be collapsed and expanded.

(2)A Tray may be collapsed by setting the property expanded to false.

(3)bind the expanded parameter of Tray to a context variable of boolean type (expanded).

(3)On expanding or collapsing the tray, the action assigned to the onToggle event is executed.

in this action set the value of context variable as true /false.

wdContext.currentContextElement().setExpanded(false);

Regards,

Praveen

former_member335005
Participant
0 Kudos

Hi,

You can bind the property "expanded" of UI Element Tray to a context attribute of type boolean. And then in the button handler set the attribute to true if you want the tray to be expanded and false otherwise.

http://help.sap.com/saphelp_nw70/helpdata/en/83/68a2f988ee744388268802b80752e5/frameset.htm

Best regards,

sangeeta