Just create an enumeration for each month and do not use any date time function. Then create the twelve objects where you set each object with the right enum value. Then show those twelve objects.
Can you explain in detail to get clarity. If possible share some screenshots too
To help clarify, I have an app where an user will completes a maintenance check via a form. Within that form/entity, it uses a log date attribute that references the current system date/time.
I am needing to try and report on this, so through a datagrid I want to list every month of the year so that when a user completes a form for this date the April month on the datagrid gets checked as completed, so if I went in next month to do another check as the same user, the May month would get checked as completed.
That’s why I am trying to look into the non-persistable entity to use the attributes within that as the months of the year but am struggling to find the logic to do this.
Hope this helps?
Create a entity with Month name (String) and IsCompleted (Boolean).
Create 12 objects for all months and display them in a datagrid.
When user completes the maintenance form, get the month value from log date and Retrieve the respective month from the new entity and mark the IsCompleted to true.
Get Month Value from date attribute, use following expression. Create a String value and put the following expression
You can also create a small generic microflow with a string variable as input, and a DateTime variable as output. In the microflow you create the DateTime variable with the parseDateTime function with the input string variable.