How to use Native Calendar?

0
Hello everyone! I’m trying to do a native app and I need to use the Native Calendar. Documentation is not clear,  has anyone used it and could explain to me how to do it?   Thanks you!
asked
2 answers
1

Hi,

First create your domain model 


Then create a page and place the Native calendar widget inside data view


In the Dataview → Create a nanoflow (Create_Calendar_State_NF)→ create CalendarState object and commit & return it

 

On click of Calendar widget → call a nanoflow (On_Date_Press_NF) => 





In On_Press_Date_Create page :


On click of save button, do validations as per your requirement & save the changes.

 

Hope it helps!

answered
0

Hello again!

I have followed all the steps, when I start the application, the calendar is displayed correctly, but the moment I press a date, the window to add an event opens and from there the calendar breaks.

 

Open the project:

image.png

 

Clicking in a Date:

image.png

 

Event Added:

image.png

 

In Mendix Studio:

image.png

image.png

 

My steps to use Native Calendar:

 

- Calendar Widget inside a Data View:

 

image.png

 

image.png

 

image.png

 

- Create_Calendar_State_NF:

image.png

image.png

 

- On_Date_Press_NF:

image.png

 

image.png

 

image.png

 

- On_Press_Date_Create Page:

 

image.png

 

I don't find more information, I don't know if it is possible to use it in Mendix 10.8 or this widget is deprecated.

Thanks you so much!

answered