on 09-14-2010 12:50 PM
Hi Experts,
In my WDABAP application I have a Date input field. I have used dictionary search help into this field to display calender searc help.
Now on select of the date from the calender I want to trigger one event which will enable some other fields in the application.
Can you please tell me how to implement this on select event of the date.
Thanks
Sonia.
Hi,
Since you are using an Input Field , only event possible is "On Enter" event.This event is triggered when "enter" key is pressed by the user after selecting a value in the input field.So may be you can use this and proceed further.
Although it may not serve you the actual requirement that you have to achieve , because input field does not have any event for "On select".
[On Enter|http://help.sap.com/erp2005_ehp_04/helpdata/EN/14/0ce74114a1da6fe10000000a1550b0/frameset.htm] this link might help
Cheers,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The calendar search help is all client side. There isn't even a server side event triggered. If you need an event upon selection consider using the DateNavigator UI element instead of an inputField with Calendard search help.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/81/ab884118aa1709e10000000a155106/frameset.htm
The DateNavigator has events for when a new date selection occurs.
Hi Thomus,
Thanks for the help. If I use DateNavigator it will be displayed as a calender on the application.
But my requirement is I will be having a input field with a calender search help so that one can select the date from the calender and on select of date certain other field will be enabled.
Thanks,
Sonia.
>But my requirement is I will be having a input field with a calender search help so that one can select the date from the calender and on select of date certain other field will be enabled.
Then you have requirements that are in conflict and you will need some compromise. The inputField will not give you the event you need to populate or enable other fields upon date selection. You only have the onEnter event. The DateNavigator on the other hand will provide you with the onDay selection event that you need.
Hi,
To achieve this one way is to created a freely programmed value help containing the date navigator UI element and handel the event in the main componenet where you need to make the fields enabled or disabled on selecting the value from the calander.
I have done this and its working for me.
Thanks
Pradeep
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.