Data Type Details
The data type details page allows you to manage all stuff related to a data type. It contains Views, Fields, Code Blocks, Properties, and Seed instances sections.
Create a new View
You can view type in different ways. For example, type Person can be shown as a character string (“John Smith”, “J. Smith – manager”) or as a table with fields: Birthdate, Name, Occupation. Type Person could also be viewed as a web page, Excel spreadsheet, or XML file.
To add a new view, you can click on the autogenerated one (inside the Views section) to start editing it:
Additionally, you can click on the plust button to unfold the View selection menu. Click on the view kind to create it.
Create a new action
An action is a code logic that is triggered after some event occurs, like the page is loaded or deleted.
To create an action, click on the plus beside the CODE BLOCKS section and select an Action from the dropdown list.
Then select the trigger event you need.
Read more about type action here.
Create a new function
A Function is a custom code block that contains a set of instructions. It can be called inside an action and helps to avoid repeating the code.
To create a function, click on the plus beside the CODE BLOCKS section and select a Function from the dropdown list.
Then specify the Name and select the Runs on option. Server functions are translated into Java code, while the Client will be translated into JS.
Read more about functions here.
Create a seed instance
A seed instance is a predefined data instance. It is created from the Builder and automatically seeds to the application during the deploy.
To create a Seed instance, click on the plust beside the SEED INSTANCES section from the data type details page.
After that, you will be redirected to the web pages view, where you can fill in all the values you need.
Read more about seed instances.
Fields are used to show up data on the web page and gather input from users. You can create regular/collection/dynamic and shared fields.
To create a field, click on the plus beside the FIELDS section and select the kind you need:
Regular and collection fields are the most frequently used:
A Dynamic field is a reference to document/directory/report instance. However, opposite to regular fields, dynamics are not strongly typed, i.e., the exact type of its content isn't known until runtime.
Shared fields are helpful when fields are semantically equivalent in different data types. Read about Shared fields.
How does a web page relate to data type?
Every time you create a web page, App Builder automatically creates a data type to hold the page's data. This data can be represented in many different ways - as text, table, pdf file, etc. These representations are called views. A web page view is just one of the possible representations of the data type.
I am looking for my web page?
Probably your page can be opened by clicking the first view from the Views group box. If you got the wrong data type, you could find your page by using the Navigate window.