cancel
Showing results for 
Search instead for 
Did you mean: 

how to set onEnter property to an input field through hot code

Former Member
0 Kudos

hai all

while using code

IWDInputField ifld =(IWDInputField) myview.getElement("inputfeld1");

ifld.setOnEnter(----


);

i dont know which parameter is to pass here.

can any body suggest me how to pass arguments.

Accepted Solutions (1)

Accepted Solutions (1)

pravesh_verma
Active Contributor
0 Kudos

Hi,

Just create a action in the action tab and bind that to onEnter of the input field. use this code:


IWDInputField ifld =(IWDInputField) view.getElement("inputfeld1");
	 ifld.setOnEnter(wdThis.wdGet<ACTION_NAME>Action());

I hope this solves the issue. Please revert back in case yuo need some clarification on this.

Thanks and Regards,

Pravesh

Former Member
0 Kudos

i need sample code how to pass the action name through the hot code what i mentioned above

Former Member
0 Kudos

thanks pravesh my problem got solved

Answers (1)

Answers (1)

Former Member
0 Kudos

you need to pass the ActionName created in the Actions Tab..Add the code in the newl created action