on 01-25-2008 6:10 AM
Hi experts ,
I am dynamically creating a button ,an action and then attaching dynamic action to button
in WDDoModify view . I have following code .
IWDButton theButton = (IWDButton) view.createElement(IWDButton.class, "btn");
theButton.setText("Save");
Then I have created action and attched statically created Eventhandler select
IWDAction theAction =
wdThis.wdCreateAction(IPrivateStartView.WDActionEventHandler.SELECT, "");
theButton.setOnAction(theAction);
then I did parameter mapping on button as follows
theButton.mappingOfOnAction().addParameter("Command","Save");
When I am trying to display added parameter on button in event handler its getting null , which means parameter is not being added properly. Please tell me where i am making mistake .
Regards
Abhay
Thanks for quick reply , I changed parameter command to Command. an it worked
Regards
Abhay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Write c in small for Command,
theButton.mappingOfOnAction().addParameter("command","Save");
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.