cancel
Showing results for 
Search instead for 
Did you mean: 

InputField fire event problem in webDynpro

Former Member
0 Kudos

I have one validation or Fire Event problem with respect to Inputfield in web Dynpro.

I have one Input filed and created the context varible for that, then i mapped the context varible to the InputField, and i changed the context varible type as date.So , when i run the view , it will show the calender near to the text box to select the perticular date. On select of the perticular date. It will populate selected date in to the inputField.

On selection of the perticular date. Based on the date i want to generate the next 12 months date at runtime in different text boxes. But the only event available for the InputField is only "onEnter". This is not useful in my case, bcz on selection of the Date , the user may not use the Enter key. so , how can use the other events like onSelection or onChange events in the InputFields to reach my needs.

Any one give me the idea to solve this problem.

Vijay

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member286976
Active Participant
0 Kudos

Hello Vishal,

You may also refer the sample code in the below link

<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8</a>

Regards,

Sudeep.

former_member286976
Active Participant
0 Kudos

Hello Vishal,

The same can be achieved using 'Calculated Attributes'. Kindly refer the link for more details.

Regards,

Sudeep.

Former Member
0 Kudos

There is no event triggered after selecting a date from the date picker, so your only choice is to use the onEnter event or an explicit button.

Armin