As part of completing work, a view is a component of the user interface that gathers information from a user or displays information to the user. Views display the fields necessary to complete the current assignment.
For example, a loan application might provide online views with fields for applicants to enter their personal information, loan details, and relevant financial information. The application might provide different views for an internal loan officer, who sees the applicant's information as read-only fields and enters the resulting approval or rejection decision and explanation into editable fields.
In applications that you build with the Constellation, views use predesigned workflows, patterns, and components to provide users with a cohesive, intuitive experience. You add relevant fields to the views, enabling users to input the necessary information. Pega Platform™ stores the name of the field and the value of the user input as a data element, which makes the information reusable. The application can make the stored data elements available for editing or present the data as read-only.
Views for specific tasks
Consider a process for making loans. In this example, there are two steps:
- The first step in the process requires customers to enter information for a loan application. The form contains fields for entering information such as the customer's name, the loan amount, and the loan type. After customers complete the form, the system sends the request to loan officers for review.
- In the second step of the process, loan officers have a Loan officer view that displays the data collected from the application. Loan officers can read but not update the customer information. The loan officer view also contains fields for officers to enter information such as loan insurance eligibility and whether the application is approved or rejected.
In the center of the following image, slide the vertical line to view the steps of the loan application process:
During view creation, you determine the information that users need to see or collect to perform specific tasks. For example, you create a loan application view in which users enter specific information.
In the following image of the loan application view, click the + icons to learn more about the items to consider and questions to ask when you create a view:
A field group is a cluster of individual fields that, together, present related data inside a view. The individual fields can come from the case type data model or from various data objects.
Field groups help to organize related fields together under a single header, and provide the tools to add instructions or temporarily hide fields in collapsible sections within a view.
You create field groups inside a view and they are specific to that view only.
Views versus forms
The view is a reusable configuration of UI elements that you can use to interact with a case. The form is an interface for collecting data from users and processing the work. A form can have one or more views. But the view is not always a form. For example, in an online shopping website, the customer needs to enter personal information and shipping information. Views can have UI elements such as the first name, last name, state, country. The form can have the submit and cancel buttons.
In the Constellation UI architecture, forms are preconfigured with buttons like, , , and .
In the following image, click the + icons to learn more about how forms, views, and fields work together to create an interactive web page for a case:
Check your knowledge with the following interaction:
This Topic is available in the following Module:
Want to help us improve this content?