on 01-25-2008 6:04 AM
Hi SDns,
My doubt is i have used a date navigator in my UI elemnys.
My Requirement is i have to gate date and month from the date navigator.
For that i know we have action methods for this both
i.e.,onDaySelect.
onMonthselect.
Please tell me the code to write in this actions.
To retrieve the date and insert it in the database,
Thanks & Rgards,
Ratna
Hi,
Here is what exactly you can do to solve the problem.
When you define an action for onDaySelect() for DateNavigator, include a parameter
say "day" of type java.sql.Date and the following line of code to this action method.
wdComponentAPI.getMessageManager().reportSuccess("DATE: "+day);
// Just to print the date, you can add any of your code
In wdModifyView(), add the following:
if(firstTime){
IWDDateNavigator dn = (IWDDateNavigator) viewObj.getElement("DateNavigator");
dn.mappingOfOnDaySelect().addSourceMapping(IWDDateNavigator.IWDOnDaySelect.DAY,"day");
}
// Here "day" is the same parameter that is added to the action as well.
Hope this will solve your problem.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please refer the following link:
http://help.sap.com/saphelp_nw70/helpdata/en/fb/e56e42802e9c60e10000000a1550b0/frameset.htm
Both the methods takes parameter through which you can do your required operation.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
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.