Record views are interfaces designed for displaying record information and they're created the same as any other interface.
This article describes how to create and configure a read-only record view for a record type.
To create a read-only view for a record type, we'll need to do two things:
We will start by creating a read-only interface for displaying the data of each record.
To create the interface:
From the list of templates on the right, select One Column Page.
In the example shown, we titled our input Order and set the type to the custom data type for the order entity.
We are using the record data type for our rule input. Record data types are unique data types that are automatically created for each record type and can be used to pass record data into an interface as a rule input.
In the example below, we titled our input purchaseOrder and selected the Purchase Order record data type as the type.
Now you can add components to your interface. To connect your components to your record type rule input:
Once your view is added to your record type, each component connected to your record type via rule input will display the record data for the associated field.
Here's what our simple interface preview looks like with some test data:
To learn more about creating interfaces, see Interface Recipe.
Using record data types as rule inputs will only return the field values that are referenced in the interface. If you are going to use a start process link or the write to data store entity smart service function, you should use a CDT as a rule input and create a query for your data. See the Records Tutorial for examples of using CDTs as rule inputs and querying record data.
Now that we have our interface created, it's time to add the interface as a view to the record type.
To add a view:
On the left navigation menu, click Views then click New View.
Here's how we referenced our interface PurchaseOrderView. Notice that we added a parameter name for the rule input.
For more information on
rv!record, see Domain prefixes and Reference a record type and its properties.
You can now save your changes and preview your record view. There's a shortcut to your record list at the top of the record type in the Properties section. Look for a link under Record List URL.
On This Page