cancel
Showing results for 
Search instead for 
Did you mean: 

Select non-consecutive days in Calendar input

former_member197475
Active Contributor
0 Kudos

Hi Experts,

I designed a form in WD and have a requirement, where I need to show up a calendar display of months in which an user should be allowed to select only non-consecutive days from it.

Also I need to get all those selected days at run-time.

Is it possible?? I know that calendar is a standard input of date UI element and totally confused as how I can restrict an user to select only non-consecutive days.

Please clarify and help me in this.

BR,

RAM.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Use DateNavigator UI element. You cannot disable the consecutive days, but you  can use the event onDaySelect and display an error if the selected dates are consecutive.

hope this helps,

Regards,

Kiran

former_member197475
Active Contributor
0 Kudos

Hi Kiran,

Thanks for your idea.

I have checked the DateNavigator UI Element and the said event onDaySelect.

But how can I capture the selected dates from the screen on the event.

Can I go ahead for get_lead_selection method?

BR,

RAM.

former_member184578
Active Contributor
0 Kudos

Hi,

in onDaySelect action handler, create an importing parameter DAY with type D. this parameter will hold the value for the selected day.

Regards,

Kiran

ramakrishnappa
Active Contributor
0 Kudos

Hi RAM,

I don't think there is provision to select the multiple different dates except the dates in range. The ui element date navigator has only option to have start date and end date for selection type: RANGE.

Even onDaySelect event, gives you the selected date and you can raise error message saying:"Please select only non consecutive dates", but you can not set the different dates as selected in the DATE NAVIGATOR ui element.

i.e. User is having either to choose a date or dates in a range.

Regards,

Rama

former_member197475
Active Contributor
0 Kudos

Hi Rama,

Yes you are exactly right. I can't able to select multiple dates in Date Navigator UI element, just I can pick up a single date alone.

Is there any possibility to select multiple dates?

Please clarify me.

BR,

RAM.

ramakrishnappa
Active Contributor
0 Kudos

Hi RAM,

Unfortunately, with the date navigator ui element, we cannot select multiple dates except the date ranges.

Work around solution:

I suggest you to go for row repeater, in which you can place date navigator ui element and user can add multiple rows: also you he can input dates by selecting single dates.

Here you can also restrict the user to select only non-consecutive dates.

Pls refer the wiki for an example:

steps to create row repeater ui element - Web Dynpro ABAP - SCN Wiki

Try to convince the user with this or you can also for a table with single row.

Hope this helps you.

Regards,

Rama

former_member197475
Active Contributor
0 Kudos

Hi Rama,

Thanks for your suggestion. I'll check for a walk through.

BR,

RAM.

Answers (0)