Learn how to capture user input directly from your Mendix Native mobile app. This guide covers creating input fields, binding them to your domain model, validating data, and saving it to the database for later use.
Go to MX Studio Pro -> Create a Native Page name it IssueNative_NewEdit & Inside layout select NativePhone_PopOver(Atlas_Core).

.
Go to IssueNative_NewEdit page & take a dataview -> Double click on dataview & Select nanoflow as DataSource & create a new nanoflow DS_Issue.

Open DS_Issue nanoflow -> Take a create object activity -> select Issue entity & return the object.


Now create a new Native page IssueNative

Go to IssueNative page & take a listview -> Double click on listview -> go to DataSource tab & select Issue entity from database.


Now, place a button(Add Issue) outside the ListView on the IssueNative page.
Double-click the button, set the on-click action to “Show Page,” and select the IssueNative_NewEdit page.

Lastly, go to Navigation -> Native mobile (tablet & phone) -> Add New Item -> Issue & select IssueNative Page.


Now run the application & test it.


Important: Here’s a catch — if you fully close(remove from background) and restart the app, the Issue entity data will be lost. This happens because when you add data from a native page, you must synchronize the data to ensure it’s saved permanently.
Solution:
Go to the IssueNative page → double-click on the List View → under the General tab, set Synchronize as the Pull-down action.

Now, save the changes, run the application, and add some fresh data.
After adding the data pull down the listview to synchronize it & then again fully close & restart the app you’ll still see your previously added data.

Conclusion:
I hope this article has helped you understand How to take Input and Saving Data to the Database from a Native Page in Mendix.
Thanks for reading this! See you in the next blog post.
