How to configure a table or data grid to take input from user in UI for non-persistable entities

0
Hi Mendix Team, I am using Mendix version 10.6.8. I am using Teamcenter Extension Sample app for developing app from client requirement. I am trying to configure a table or Data grid to take input from user on Form page for non-persistable entities. First I need to take input from user in tabular form. Then able to save that data to back to Teamcenter. I am stuck on this issue. Please help me on this issue.   Thanks & Regards, Sanjay Kumar Yadav  
asked
1 answers
0

Hi Sanjay,

 

What you would need to do for this is the following:

 

I assume you show the data grid somewhere in your application of an entity, let's call it TestObject. You can create an action button on that page with a microflow which creates a new object in your non-persistant entity TestObjectNP, and opens a newEdit page.

 

This newEdit page has a data view of TestObjectNP, with inside this data view the attributes that you want the user to fill in (your TestObjectNP should have the same attributes as the the ones you want to save to TestObject)

 

On this newEdit page you place another button with a save microflow on it. In this microflow you do the following:

- start with doing validations on your non-persistant object TestObjectNP to make sure the data is valid.

- Once your validations succeeded, you have to create a new object of TestObject

- Fill TestObject attributes with the values of TestObjectNP,

- Commit TestObject (with refresh otherwise you won't see it the first time)

- Close the page. 

 

Hope this helps!

 

 

answered