Master Data Form Design
Remember the Computer Inspection form we deisgned? If you recall we added an Equipment Select/DropDown to the form and had entered the values to display in the form itself. While this is quick and easy when a new equipment has to be added the form has to be modified and published again. This is a cumbersome process. Additionally we cannot automate the Master Data updating process which we will learn later while designing flows.
We will now go on to design a Master Data form. For our example, the Equipment Master Data form has just two fields:
- Equipment Id
- Equipment Name
Master Data Design
Section titled “Master Data Design”- Login to Turbo Apps and click on Forms in the sidebar
- Click on the
Createbutton and chooseMaster Data - In the Form Designer do the following
- From Basic, drag and drop
Textfieldcomponent into the form- Enter the
Labelas Equipment ID - In the Display tab, also select the
Table Viewoption. This will enable this column to be shown in the Data view described later. - Click on Validation and select the
UniqueandRequiredfields. This indicates that this is the key field for this Master Data entity - Click on API and confirm API name is
equipmentId - Click on Save
- Enter the
- From Basic, drag and drop another
Textfieldcomponent below the Equipment Id- Enter the
Labelas Equipment Name - In the Display tab, also select the
Table Viewoption. This will enable this column to be shown in the Data view described later. - Click on Validation and select the
Requiredfield - Click on API and confirm API name is
equipmentName - Click on Save
- Enter the
- From Basic, drag and drop
That’s it. We are now done with the Master Data design. Click on Save and enter the details:
- Icon - Click on the icon and select a suitable icon of choice (optional)
- Title - Equipments
- Description - Equipment Master Data
The newly created Master Data form is now saved.
Publish it
Section titled “Publish it”While you can preview the form, its not important as the Master Data form will never be displayed to user. It will only be used by Administrator and Developer to maintain the Master Data design and the data.
Now click on the Publish button, enter a comment and publish it, else this form cannot be filled in by Inspectors.
Maintaining Data Manually
Section titled “Maintaining Data Manually”For this tutorial we will only be maintaining the data manually. When we go to the Master Data Flow development we will learn how to automate it.
In the Forms list, click on the Data icon in the Equipments row. The list of Master Data entities already created will be displayed here. For now you will see an empty list as we have not added any data. You will also see only the columns that you have selected the option Table View for.
Recall that our Equipment list was of the form:
| Equipment ID | Equipment Name |
|---|---|
| computer | Computer |
| monitor | Monitor |
| mouse | Mouse |
| keyboard | Keyboard |
| cpu | CPU |
- Click on the
Addbutton and add the first equipment from the table - Repeat the step to add all the other master data
- Once all are added you will see a list with 5 items as seen in the table above
That’s it. We are done designing and maintaining the Master Data. Now lets put it to good use.
Including the Equipment Master Data in the Computer Inspection form
Section titled “Including the Equipment Master Data in the Computer Inspection form”From the Forms list, click on the Inspection Form to display the Form Designer
- Click on the
EquipmentSelect / Dropdown component in the form and open its properties- Click on Data and click on the
Data Sourcedropdown. - A list of data sources in the system are shown. Choose Master Data option
- Deselect the
Lazy Load Datacheckbox. Since there are ony 5 rows its ok to load it all at once. If the number of rows of master data is large, then enable lazy loading so that data is loaded on demand only - Under
Master Dataselect the Equipments Master Data entity that we just created - For
Label Propertychoose Equipment Name as that is what we want to display to Inspectors - For
Value Propertychoose Equipment Id as that is the value we want to send to the server on form submission - Leave all other values unchanged and press
Save - Click on Save
- Click on Data and click on the
Preview the form and Publish it
Section titled “Preview the form and Publish it”Click on Preview to view form. Click on the Equipment Dropdown and view the Equipment Master Data now.
- Leave the Preview form tab and switch back to the Turbo Apps tab.
- Navigate to the Forms list and click on the
Dataicon in the Equipments row to display the five equipments added so far - Click the
AddMaster Data button - Enter a new equipment as below and Save it
- Equipment ID: watercooler
- Equipment Name: Water Cooler
- Now switch back to the Preview tab and Refresh the page in the browser
- Click on the Equipment dropdown now and notice that the newly added master data “Water Cooler” appears without any changes to the form!
Remember to go back to Form Design screen for the Computer Inspection formand click on the Publish button, enter a comment and publish it, else this version of the form with Master Data will not be available for Inspectors.
Login to Turbo Forms App
Section titled “Login to Turbo Forms App”Now login to the Turbo Forms App on web or mobile as the same user and click on the + button to create a new form to fill and choose the Computer Inspection form. You should now be able to see all the size equipments in the newly created form.
Note: If you open the old form which is tied to the older version of the form, you will still see the earlier list of 5 equipments only.
Assignments
Section titled “Assignments”For working with the Flow Development tutorials later, you will need to design a couple of more Master Data entities. Here are the details for you to create:
1. Inventory Master Data
Section titled “1. Inventory Master Data”Complexity: Easy Add another Master Data called Equipment Inventory and add the following fields:
| Field Label | API Property Name | Type | Table View | Mandatory | Unique |
|---|---|---|---|---|---|
| Equipment ID | equipmentId | Textfield | Yes | Yes | Yes |
| Inventory | inventory | Number | Yes | Yes | No |
Add data manually for all the equipments you added in the Equipment Master Data earlier as below:
| Equipment ID | Inventory |
|---|---|
| computer | 10 |
| monitor | 20 |
| mouse | 30 |
| keyboard | 40 |
| cpu | 0 |
Note that we are not adding inventory for watercooler. This is to simulate an error later!
2. Personnel Master Data
Section titled “2. Personnel Master Data”Complexity: Easy Add another Master Data called Personnal and add the following fields:
| Field Label | API Property Name | Type | Table View | Mandatory | Unique |
|---|---|---|---|---|---|
| Personnel Number | personnelNumber | Textfield | Yes | Yes | Yes |
| Name | name | Textfield | Yes | Yes | No |
| Phone | phone | Textfield | Yes | No | No |
| Designation | designation | Textfield | No | Yes | No |
| Organization | organization | Textfield | No | Yes | No |
We will not add any data manually now as we will be downloading personnel information from SAP and saving using a flow
3. Dependent Master Data for Equipment and Location
Section titled “3. Dependent Master Data for Equipment and Location”Complexity: Advanced Add location master data and set it in the form automatically when an equipment is selected.
- Modify Equipment Master Data and add another mandatory field called Location to store the equipment’s location.
- In the
Computer Inspectionform changeEquipmentfield to this Master Data. AddLocationto a disabled textfield. - se the
Refresh Onfield and set the value ofLocationbased on the selectedEquipment.
Check the solution for this assignment: Assignment Solution
Topics Covered
Section titled “Topics Covered”- Designing a Master Data form with a key field and a label
- Adding Master Data manually
- Changing the form design to load data dynamically from the Master Data
- Add additional Master Data and view the new data in the form automatically