cancel
Showing results for 
Search instead for 
Did you mean: 

Getting selected week from Date Navigator

Former Member
0 Kudos

Hi,

I want to get the selected week from the Date navigator. In the onWeekSelect event handler, i added the parameters Week(integer) and year(integer), but I am not getting the values in the code.

Can anyone tell me how to get the selected week and year?

Thanks,

Venkat

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

try this code

public void onActionWeekSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, int week, int year )

{

//@@begin onActionWeekSelect(ServerEvent)

Integer weekNum = new Integer(week);

Integer yearNum = new Integer(year);

wdContext.currentContextElement().setWeekNumber(weekNum.toString());

wdContext.currentContextElement().setYear(yearNum.toString());

//@@end

}

Regards,

Sunaina Reddy t

Former Member
0 Kudos

Hi,

I have the same code with me, but its not working for me. Do i need to do any more configurations for this to work?

Thanks,

Venkat

ravindra_bollapalli2
Active Contributor
0 Kudos

hi,

refer this link for week selection

thanks and regards

bvr

Former Member
0 Kudos

Hi Venkatraman

Please check this link.

Hope it is useful for you

http://help.sap.com/saphelp_nwce10/helpdata/en/4a/05ad3e1d1edc61e10000000a114084/content.htm

Also check this forum link

Regards

Ruturaj

Edited by: Ruturaj Inamdar on Apr 29, 2009 9:55 AM