on 05-12-2005 8:18 AM
Hi
Is that possible to recognize which object is source of event? I have e.g. two buttons, everyone has specific action, but only one handler onClick and in this method i would like know who has this method invoked. The IWDCustomEvent interface has method getName but this method return the method name (not the action name:( ). I can't also use parameter because button has no parameter to mapping. Have anyone another idea?
Regards Bogdan
Message was edited by: Bogdan Rokosa
Hi,
you can use following approach:
1) In action add parameter (id:string)
2) In wdDoModifyView:
final IWDUIElement element = view.getElement("<NAME_OF_UI_ELEMENT>");
final String id = element.getId();
final IWDButton button = (IWDButton)element;
button.mappingOfOnAction().addParameter( "id", id );
3) Use id:string variable in your action handler.
Regards, Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maxim
Thanks a lot:)
Method addParametr solved problem:)
Your regards Bogdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.