on 12-11-2006 11:29 AM
Hi,
I've several UI tray elements in my view and all these elements are associated with the action onToggleTrays.
I want to capture the name of the Tray and state of tray(expanded/collapsed).
For this when I try to add parameters to this event handler method, through IWD ParameterPassing, I can add only the expanded property. I'm not able to add the UI element (tray name).
Can you please suggest how to add/pass tray name and tray state to the event handler method?
Regards
Sagar Nanda
create a parameter for the action OnToggle say "id".
In wdDoModifyView get the reference of tray element and map its id to this parameter.
IWDTray tray=(IWDTray)view.getElement("Tray1");
tray.mappingOfOnToggle().addParameter("id",tray.getId());
IWDTray tray2=(IWDTray)view.getElement("Tray2");
tray2.mappingOfOnToggle().addParameter("id",tray2.getId());
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you exactly want to achieve?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.