cancel
Showing results for 
Search instead for 
Did you mean: 

wddomodifyview() captures change in inputfield value?

Former Member
0 Kudos

Hello all,

Will the WDDOMODIFYVIIEW() executed when a change in value of a input field in the view?

if not any ideas regarding the possibility of tracking a individual key pressed in a input field at runtime.

Thanks

Salini

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks for the replies.

Former Member
0 Kudos

You cannot handle keypress events in an input field except the "onEnter" event which is triggered by pressing the Enter key.

Armin

Former Member
0 Kudos

Hi,

In the inputfield property you will find a property onAction, there you can write code for your requirement. Like Check the value as u enter it will test the value.

Regards,

H.V.Swathi

Former Member
0 Kudos

Hi Swati,

Thanks for the reply.

We are using NWDS 2.0. The OnAction property is not shown for Inputfield.

Can you say the version of the NWDS in which this OnAction property is available, for information please.

Thanks,

Salini

Former Member
0 Kudos

Hi..

You can change the input value at time of any evet fired to any action method.if you can enterkey on input field.it will call the wdDoModify().at time of you can set anather value in input field.

wdcontext.curent<node>element().setInput("sss");

but this cant be be set at first time..mean when page loaded unless until page session out of scope.

thanks

jati

pravesh_verma
Active Contributor
0 Kudos

Hi Satya,

wdDoModify() is not called automatically by just changing the values of the input field. However you can do one thing. There is even associated with inputfield. That is onEnter(). You can create an even and bind that event with the onEnter of the inputfield.

So what happenes is, as soon as you enter any value in the input field and press enter you will be able to call that particular event. If you want to do any handling of the data from input field you can do in this event.

Please note that after this event is called wdDomodify() will be called. After every event wdDoModify() is automatically called by the framework.

I hope this solves you issue. Please revert back in case you have any further doubts!

Thanks and Regards,

Pravesh

Former Member
0 Kudos

Hi Salini,

If you do any changes in the View then automatically doModifyView() method will be called. You can obtain the updated value of the input field using wdContext.currentXXXElement().getXXX().

Regards,

Gayathri.