Display a date picker with Marked Dates from a Get Records
Last updated
Last updated
This tutorial displays a date picker component showing marked dates from a Get Records collection. This feature will help users quickly visualize important dates retrieved from the Get Records collection while interacting with the date picker.
In this example, we will use dates from the Task object as marked dates.
Create a Get Records collection to fetch all Tasks
Add the Avonni Action “SObject Collection to Marked Date”
Select the previously created source collect and add the field name associated with the date. Here, we are selecting the field “Due Date”.
Now, let's create the variable.
Expand the Advanced Accordion.
Check "Manually Assign variables
"
From the Output field, create a new resource
Select Variable
as a resource type
Enter an API Name
Select "Apex-Defined
" as Data Type
Check "Allow multiple values (collection)
"
In the Apex Class field, select "avcmpbuilder_CalendarMarkedDate"
Click "Done"
Drag the Date Picker component and open the Component Builder
Link the MarkedDate field to the Action “SObjectColleciton…” created in step 2.
And voila !