cancel
Showing results for 
Search instead for 
Did you mean: 

How to display Current Week as a Default value

Former Member
0 Kudos

HI,

My requirment is to include a dropdown list of week number from 1 to 52...so that user can select the week no of his choice.

I created a dropdown static list..and is working

My requirment is to this drop down the default value should be current week

how can i achive this

please update

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi dude,

Just like in java use getter method for calendar instance and assign that value for the drop down as default value.

first declare Calendar instance.then calendarInstance.get(Calender.WEEK_OF_YEAR)

Assign above value to that drop down.

Above util class should be found in java.util.Calendar.

Just iclude above code in terms of WdThis.......etc.....as webdynpro code.

Thanks,

Murthy.

Answers (0)