cancel
Showing results for 
Search instead for 
Did you mean: 

DateNavigator

former_member211905
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

former_member211905
Participant
0 Kudos

Thank you for your fast answer!

Kind regards

Øyvind Isaksen

(Borrowed the user account from my colleague sitting next to me )