Data Modelling

Data Modelling on the platform makes use of the Class Designer allowing a user to manage classes, fields, actions and links. It is closely related to the database as well.

Introduction

The Class Designer is the central unit to build a new application. It is used to define the classes that model data in an application. A class typically consists of fields, actions and links - each of which can be thoroughly configured using the class designer.

Class designer window

Manage Classes

You can edit (by selecting details), delete, clone or export existing classes for use in another application easily from the dropdown menu for your class. More options are available in the toolbar as well.

Editing a class

The class editor can be opened by selecting Details from its dropdown menu.

Class designer: Edit a class

The class editor allows you to modify the configurations of your class. More details about the different sections and attributes that help you customize you class can be found here.

Deleting a class

A class can be deleted simply by selecting the Delete option from its dropdown menu.

Class designer: Deleting a class

Cloning a class

A class can be cloned by selecting the Clone option from its dropdown menu. A new class with the same properties as the original class is created in your application.

The - Copy suffix is added to the class name to prevent conflicts with the original class.

Class designer: Cloning a class

Class Diagram

A class diagram can easily be generated and viewed in the class designer itself by selecting your classes from the left panel. Alternately, you can select Show All Classes (from the toolbar) to generate a diagram with all the classes in your application.

Class designer: Creating class diagrams

Alignments

By selecting the Align Elements option, you can select to display your class diagram in different layouts. The options include Circle, Square and Columns.

Class designer: Elements aligned in circular layout

Import and Export

Individual classes can be exported by selecting Export from their dropdown menus.

Alternately, you can choose to click on the general Export option in the toolbar and select all the classes you wish to export. Click on Execute to complete the operation.

Both methods result in a your class definitions compiled to JSON files being downloaded as a ZIP file. The default file name is classes.zip.

The generated ZIP file may be password-protected.

Class designer: Exporting classes

Similarly, classes can be imported in an application by selecting Import from the toolbar and selecting your class definition JSON files. Click on Execute to complete the operation.

Validate and Save

You can also check the validity of your classes by selecting the Validate option or save your current classes by selecting Save from the bottom menu.

Class designer: Validate and save class

All validation errors are displayed in the collapsible log at the bottom.

Last updated

Was this helpful?