75
Views
2
Comments
Custom Calender
Question

Hi Everyone,


I want to insert dynamic data coming from rest api into the calendar. So, Is there any component to achieve this?


Regards,

Virat

2018-10-29 08-31-03
João Marques
 
MVP

Hi Virat,


Do you mean a date picker? If you do, you can take a look at the options of Date Picker widget from OutSystems UI:



There are quite some options which you can configure by calling your API and then using the API data to fill the attributes like MinDate, MaxDate, DisableDaysList (and so on) according to your use case.


Hope it helps.


Cheers,

João

2023-03-09 07-10-59
Vipasha Sharma

Hi Virat,

If you want to bind the date value that you are getting from API to the calendar then you have to consider some of the points:

- Data type of date that you are getting from API(if it is text then covert to date first)

-Format of date that you are getting from API(Ideally it should be in YYYY-MM-DD format depend on what format you are using in your service center) 

After doing all the conversions, 

-create a variable of date type and assign the value (after doing the above step)

-Use that variable only to bind your input field (for which you use calendar)


**You can use "Date Picker" widget to open the calender.


Hope this will help you

Regards,

Vipasha

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