207
Views
2
Comments
[Datepicker] How to implement multi select Data picker in Ousystem10 web?
Datepicker
Web icon
Forge asset by Hugo Pinheiro

Hello Folks,

Is there a way to implement multi select data picker in outsystems web as you can see below?

Thanks,

Viru



2021-08-30 15-28-09
Leandro Correa

Hi Viru 7,

You can use the EventsList on DatePicker AdvancedFormat properties.


And in the OnSelect handler action to Append the selectedDate on the list.

DatePickerMultiSelect.oml
2021-08-30 15-28-09
Leandro Correa

In the Silk UI DatePicker (OutSystems 10), the EventList is a string and there isn't OnSelect event handler, so you'll need to use the OnChange event from the Input to concatenate the selected dates to this EventList string, like this:

Assign: 

SyntaxEditor Code Snippet

EventList = if(EventList = NullTextIdentifier(), Date,EventList + "," + Date)

I hope this help you!


Best Regards,

Leandro.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.