saving the dropdown selections to an entirely different grid

Hello,  I have a data view of component.A that has one to many relation with component’B’, component’c’,component’D’……… component’H’. I have 8 dropdown widgets on this dataview that lets you choose the attributes of all these components. What i am trying to do is when you select all these attributes, and save you should be able to populate it in a new grid on a new page with this data with a column that has auto increment index. All the examples i have seen is only about how to make a default save button using commit. This is the default feature of save on the dataview that saves only when i am entering new data not when i am choosing the existing data from all these components through the dropdowns. please help i am just a 3 days old Mendix user. 
1 answers


In your custom save action (the microflow) you’ll have the object as the input parameter. This includes all the fields and the references, so the values that you selected in the dropdowns.

Let’s say the object that you are saving is called Order. This will be your input parameter for the microflow. Then based on this input create the a new object (containing the auto increment attribute) by adding a create object activity and map the data from the input object to the attributes or references of this object. For example you have a reference between the Order object and entity H and the new object created has the same type of reference then in the mapping map the association to $Order/Order_H. If the new object has attributes to hold the data you’ll need a retrieve action for the object H. So then the microflow would first have a retrieve action, getting the H object by association from the Order object. The next action would be the create object action in which you map the attribute of the new object to $H/fieldname.

Hope this helps in finding a solution.