- Updated on 05 Mar 2019
- 2 minutes to read
Learn how to create and use Data Forms in Decisions . Data Forms make it possible to design aForm*** in Decisions with data components like a Label or a Textbox , and from that Form an instance is auto-generated. The Form itself creates data that can be used without building Flows or Data structures in Decisions. This feature is meant for an inexperienced user or for a quick and simple way to generate a Data Structure, Configuration Folder, Form andMain Flow* all with simply designing a Form. The data will stay on the Form. The Data Form allows the user to create as many instances of thisData Form as desired.
Create a Data Form
Begin in a Designer Folder by selecting Create Form > Create Data Form Project [Autosaved] from the Folder Actions Panel
Name the Data Form and select Create Data Form
A new Data Form Folder will appear in the designer Folder under Data Form Project.
Select the Data Form Project to view the actions available on theData Form . Choose Edit Data Form, this action allows you to design theForm. As the Form is designed, data members for the Data Form are stored in the database. All fields added to the form will show up as data members of the data type.
Use the Step components to design the Form as desired. This example displaystwo Labels and two Textboxes and two buttons on the Form .Save and Close the Form.
Right click on the Folder inData From Project called, Data Form Test to view option. SelectEdit Data Structure to make any advanced changes to theData Structure created from theData Form.
In theEdit Data Structure menu, add the data members. When all Data Members are defined selectsave to save the Data member onto the Data Structure for theData Form.
In the designer Folder select the Data Form Project and click Open Data Form Project option to observe the auto-generated structure of the Project.
The Data Form Project has a Data Form Structure and Entity Configuration Folder, the Main Flow and a Form all intact. All of these can be edited in the same way as other structures except for the Data Form.
Inside of the Data Form Project, locate the four Elements: Data Form Structure, Entity Configuration, Flows andForms.
- Data Form Structure: Represents our Form Data structured as one Object .
- Entity Configuration: allows us to create additional Configurations for the Data Structure.
- Flow: Main Flow is the Flow that performs all work. It has our designed Form and a step to save Data in the database using Data Structure that we created for the Data Form .
- Form: represents the Data Form visual interface where the user should be able to input the date that he or she wants to save.