cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter mapping is not working on button

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for quick reply , I changed parameter command to Command. an it worked

Regards

Abhay

Former Member
0 Kudos

Hi,

Write c in small for Command,

theButton.mappingOfOnAction().addParameter("command","Save");

Regards,

Murtuza