Hi, I have a form that creates new instances in a low code by using the "Save Current Changes" option in Events.
I've tried to figure out what "Create a new instance" and "Cancel current changes" do but all they seem to do is clear the form that I have. I've read the explanation for these two options on dataminer docs but I'm still not clear on their purpose. Would anyone be able to help explain and also give an example where they would be used?
- Create a new instance: This will create an empty form for the configured DOM definition even if a DOM instance is configured as data. This allows you to link DOM instance data to the component and at the same time make it possible to create a new DOM instance.
- Cancel current changes: If you execute this action after you executed the action to create a new instance, the previously shown form will be displayed again.
Thanks
Sion
Hi Sion,
Depending on the data that is linked to the form, these actions can do very similar things:
- Only DOM definition:
- Create & new instance will reset all form fields to their default.
- Cancel current changes will reset all form fields to their default.
- Only DOM instance:
- Create & new instance cannot be executed on this form.
- Cancel current changes will reset all form fields to be the currently saved fields of the instance. Changes by the user that have not been saved will be reverted.
- Both instance & definition:
- Create & new instance will make the definition active and make the form act as if only a definition is present. Feeding a new instance to the form will make the instance show again.
- Cancel current changes will reset the form fields back to either the currently saved fields if an instance is shown or to their default state if a definition is shown.
Feel free to let me know if something is still unclear.