on 06-22-2011 7:51 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.