on 07-13-2006 11:58 AM
Hi,
I have made an UI element called Date_From of type DateNavigator. In properties I have set it to trigger a method called onActionSetDateFrom on event onDaySelect.
In the method onActionSetDateFrom I try to fetch the chosen day (or even the Date instance), but I can't find out how to do it. I have tried things like
wdEvent.getInt("day"); or
Date d = (Date) wdEvent.getObject("day") but it seems like it is totally wrong.
Someone who knows?
Kind regards
Øyvind Isaksen
Jørn Thomassen or Øyvind Isaksen?
Bind firstSelectedDate (and lastSelectedDate) propertie(s) of DateNavigator to context attribute(s) of type "date".
Now in event handler just access this attributes:
wdContext.currentContextElement().getMyFirstSelectedDateAttr();
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your fast answer!
Kind regards
Øyvind Isaksen
(Borrowed the user account from my colleague sitting next to me )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.