cancel
Showing results for 
Search instead for 
Did you mean: 

onselect action for input field?

former_member199125
Active Contributor
0 Kudos

hi guys,

In my screen i have 3 fields, start date end-date and number of days .once i fill the start date and end date values by using calendar help,

number of days should be filled automatically. ( i can use FM to calculate days between dates ).

but where shld i write that code to fetch automatically. I dont want to write in on enter action, because enduser doesn't press enter button,

so any ideas in this ? apart from onenter action?

Regards

srinivas

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member184578
Active Contributor
0 Kudos

Hi.,

As suggested code in WDDOMODIFYVEIW Method.,

if lv_frm_dt is not initial and lv_to_dt is not initial.

call FM to cal calculate difference between dates.

endif.

Else while saving In OnAction Save you calculate the difference between dates and Save.

hope this helps u.,

Thanks & Regards,

Kiran

Former Member
0 Kudos

Hi Srinivas,

You can write your code in WDDOMODIFYVEIW method also.

You have only two options, write your code in on_enter of second input field. OR

Create any button,link or something else to write your code. WD is executing from browser, so without any event

you can't execute any actions. You have to convieance your enduser like that.

Cheers,

Kris.

Former Member
0 Kudos

This topic is much discussed and the answer is that you cannot capture the event from selection. Work around would be to code in wddomodifyview to control the data for the date fields and calculate the difference.