Write back data with Actions

You may want to configure your Slate application so that user work in the interactive application is "written back" to the underlying data asset in Foundry. The recommended way to perform writeback in Slate is via Ontology Actions and the Action widget. Alternatively, you can directly write data back to Phonograph via queries.

In addition to reading from the Ontology layer through the platform tab, Slate supports writing back to the Ontology via Actions using the Action widget.

Slate's writeback to the Ontology is configured through a widget, rather than through the Platform tab, to allow the developer to optionally take advantage of the automatically generated Action Form. This allows developers to avoid recreating all of the form elements from Slate widgets.

In this setup, it's common to place the Action widget within a Dialog container and trigger the container to open with a Slate Event when the form should be shown.

Alternatively, the form display can be toggled off, in which case the widget configuration serves as a template to collect the values to submit based on user interactions and inputs in other widgets within the app. Submission is then triggered with an event, most often from a Button widget.

The Action widget also provides hooks for Slate Events to broadcast the validation state of the Action as well as its successful or failed submission.

Review the documentation on Actions for more details of how to structure and configure Actions, and the documentation on the Action Widget for details on widget configuration in Slate.