Disable sundays

  

Hi Guys,


i m new in Outsystems....i just want to disable all my past and future sundays.....and i m using rich widget calendar.

Tanya Dubey wrote:

Hi Guys,


i m new in Outsystems....i just want to disable all my past and future sundays.....and i m using rich widget calendar.

Hello Tanya,


From what I have analysed you will have to create a clone of rich_widget calendar and change it as per your requirement as disabling a particular date is not been provided under the hood.


I look deep in the javascript code for calendar and found this parameter [disableFunc] in  RichWidgets_Calendar.setup function.


disableFunc   | function that receives a JS Date object and should return true if that date has to be disabled in the calendar


So you would have to pass this parameter explicitly in your cloned version. Give it a try.


Hope this helps :)

Thanks and Regards,
Atul Patel

Hello Tanya,


Above solution worked for me. Try from your side once.


Have a look at it here: 

https://atul8255.outsystemscloud.com/LocalListPagination/Home.aspx


Hope this helps :)

Thanks and Regards,
Atul Patel

Hi Tanya,

I think below link will be helpful for you

https://www.outsystems.com/forums/discussion/9190/richwidgets-input-calendar-disable-all-sundays/


Regards,

Rajat Agrawal

Atul Patel wrote:

Hello Tanya,


Above solution worked for me. Try from your side once.


Have a look at it here: 

https://atul8255.outsystemscloud.com/LocalListPagination/Home.aspx


Hope this helps :)

Thanks and Regards,
Atul Patel

Hi Atul,


Can you send me the OML file...


Solution

Hi Tanya,

You can also use calender from silk UI which has builtin functionality for disbaled sundays.


Regards,

Rajat  

Solution

Hello Tanya,


Rajat is right, If we already have a calendar with inhouse functionality to disable Sundays why to break existing design.


Go for SIlkUI Calendar. If that won't work I will share oml.


Hope this helps :)

Thanks and Regards,
Atul Patel

Hi Tanya,

As Rajat suggested you can use below SilkUI calendar to disable particular day:


Please find the attached sample OML.

Regards

-SK-

Hi all,

Thank you for the support.

@Rajat....I have implemented the Silk UI calendar and its working fine here.

@sasikant..Thanks but i already implemented.