on 06-26-2007 10:36 AM
Hi everyone...
I have the CalendarMonthView and want to some functionality to it.
the problem is that I dont know how to get the selected Date from the view...
The CalendarMonthView doesn't have any other Date properties besides firstVisibleDate and it's not working?
Can anyone help?!
Thanks.
George.
Hi George,
Do the Steps to get the Selected Date.
Create an <b>Action</b> for the <b>OnDaySelect</b> of the <b>DateNavigator</b>(Say <b>Sel_Date</b>)
Create a <b>paramete</b>r for the action handler of type <b>java.sql.date</b>(Say <b>Date_Temp</b>)
In the DoModify View
Place the coding...
if(firstTime)
{
IWDDateNavigator obj = (IWDDateNavigator)view.getElement("<id of the DateNavigator>");
obj.mappingOfOnDaySelect().addSourceMapping("day","Date_Temp");
}
In the action handler(Sel_Date), Place the follwing coding,
Date dt = Date_Temp;
wdComponentAPI.getMessageManager().reportSuccess(dt.toString());
This will display the the date selected.
Regards,
Mathan MP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi George..
Have u Set the Date Type in the context attribute value....
URs GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.