Data-entry form

0
I would like to open a form to add a new entity directly from the menu. However, Mendix sais that the data-view form needs an object, but of-course there is no object yet because it still has to be added. How to steer this from the menu, or how to define the data-entry form?
asked
2 answers
3

Your menu should run a microflow rather than opening the form directly. In the microflow first create a new entry (do not commit it) and then perform a Show form action where you pass the newly created record to the form.

answered
0

What menu exactly are you referring to?

You can explicitly create a new entity and pass it to a form, as David has suggested.

Or, if you are creating the entity from a data grid, the default 'New' button will create the entity for you and pass that newly created object to a form. At that point, the Save/Cancel buttons on the form's control bar dictate whether the object is actually committed to the database.

Also thought I'd throw out there that there is an inline object creator widget as well.

answered