How to: Apply Data Models to a Case Management Application

Estimated Reading Time:  3 minutes

Overview

In this how-to guide, you'll learn how to bind a set of Data Models with schemas, provided by the ACME company, to a module. Once bound, Creators Also known as Unqork Users, or Designer Users; is anyone who is inside the Unqork platform. can configure components defined by the schemas in the Module Builder.

TIP  To learn more about creating Data Models, view our How to: Create Data Models for a Case Management Application article.

What You'll Learn

In this article, you’ll learn how to bind Data Models to a module. You'll also learn to add and configure predefined schema field components in the Module Builder.

What You Need

In this how-to guide, you need the following:

Associate the Data Models to a Module

To use a Data Model, you must assign it to a module in the Module Settings. This creates a new tab in the Module Builder called Data.

To assign a Data Model to a module:

1. In Workspaces view, navigate to and select the Workspace that contains the Data Model you want to apply.
2. From the  Applications tab of your workspace, select or create the module-type application where you want to apply your Data Model.
3. From the  Modules tab of your application, click the ··· (ellipsis) button.
4. Select   (Settings). The Settings modal A modal is a window that appears on top of the content you are currently viewing. displays.
5. From the Data Models drop-down, select application-model and product-model.
6. Click Save. The module refreshes and the Data tab displays above the component tray.

Adding Data Model Elements to a Module

Once a module has a Data Model, Creators can use the Data tab to drag and drop schema field components predefined by the Data Model’s schema. The schema’s predefined values ensure the data fields collect data the same way every time.

What You Need

  • 5 application-model schema field components

  • 3 product-model schema field components

  • 1 Button component

Add the Schema Field Components

Unlike regular components, schema field components are predefined by each Data Model's schema. You can customize how these fields are displayed on the canvas, but the Data Icon Data and Validation Icon Validation settings are locked in each components' configuration window.

To add schema field components to a module:

1. From the Module Builder, click the Data tab.
2. From the application-model panel, drag and drop the Application Id schema field component onto the canvas.

3. Repeat this process with the following schema field components: Application Name, Investor Type, Account Type, and Cases.
4. Expand the product-model panel.
5. Drag and drop the following schema field components onto the canvas: Product Id, Product Name, and Product Type.

6. Save your module.

Configure the Button Component

Now that the module has all the data fields our fictional ACME company needs to collect, you'll configure a Button component. In Express View Express View is how your end-user views you application. Express View also lets you preview your applications to test your configuration and view the styling. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View., end-users End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. use the button to save their applications.

To add a Button component to a module:

1. Drag and drop a Button component Icon Button component onto the canvas, placing it below the product-model schema field components.
2. In the Property ID A Property ID is the unique field ID used by Unqork to track and link components in your module. field, enter btnSubmit.
3. Set Restrict Single Click to (ON).

A static image displaying the Button configuration window, the Display section is selected, and the Restrict To Single Click setting is set to on.

4. To the left of the component's configuration window, click Actions Icon Actions.
5. In the Success Message field, enter Your Application Has Been Submitted.
6. Click Save & Close.
7. Save your module.

You now have a module containing schema fields from Data Models. When this module captures data, individual records save against the Data Model. You can find these records in the Record Collections Viewer.

Resources