Docs
  • Getting Started
  • Overview
    • Understanding
      • User-Interface
      • Shortcuts
    • Getting Started
      • Creating A New Application
      • Adding Basic Structure using Class Designer
      • Creating a link to the TIVITY File Class
      • Setting Rights
      • Creating Queries
      • Building The Layout
        • Creating an App Page
        • Creating an Object Page
        • Creating a List Item Layout
  • Building an Application
    • Application Setup
      • General
      • Documentation
      • License Management
      • Publishing the Application
      • Advanced Settings
        • Document-MailEditor
    • Data
      • Sources
      • Data Modelling
        • Class
        • Field
        • Action
        • Link
      • Query Data
        • Get Started with Query Designer
        • Common
        • Fields
        • Conditions
        • Default Values
        • Preview
      • Roles & Permissions
        • Rights Designer
      • Access Control Lists (ACL)
    • Views
      • Design UI
        • Page Types
        • Fields and Links
        • Layout Controls
          • Actions
          • Panels
          • Sections
          • Lists
          • Input
        • Layout Templates
      • Document Templates
        • Get started with Template Designer
        • Expressions in Templates
    • Execution
      • Functions
      • Workflows
        • Control Types
      • Trigger
      • Scripting
        • Accessing the Script Designer
        • Using the Script Designer
        • Commonly used Actions
        • Reference: Actions
          • Math
          • System
          • Date
          • Collection
          • LogicalOperators
          • Web
          • Structure
          • Constants
          • Converters
          • Commands
          • Text
          • PDF
          • Operators
          • PowerPoint
          • QR-/Barcode
          • Messaging
          • Cells
          • Xml
          • Admin
          • Integrations
    • Expressions
      • Expressions in Expressions
      • Expressions in Condition Values
  • Administration
    • Platform
    • Workspace
    • Security
    • Platform Setup
  • Extensibility and Integration
    • REST API
    • Source Adapter
      • Getting Started
      • Source Adapter Interface
      • RESTful Adapter Service
  • Adapter Portfolio
    • MongoDB Adapter
  • Platform Features
    • Enterprise Search
      • Integration into an App
      • General Settings
    • Templates
    • Tagging
      • Getting Started
      • Manage Tags
      • Settings
      • Usage
        • Tag filter
        • Tag panel
    • DMS Setup
Powered by GitBook
On this page
  • Getting Started
  • Common Attributes
  • Key
  • Name
  • Description
  • Icon
  • Color
  • Class Type
  • Mapping Attributes
  • Key
  • Advanced Attributes
  • Controller
  • Document Source
  • Default Sorting Field
  • Sorting Direction
  • Permissions

Was this helpful?

  1. Building an Application
  2. Data
  3. Data Modelling

Class

The class editor within the class designer allows the user to customize their classes and database structures. This section dives into how to properly set up your class in your application.

PreviousData ModellingNextField

Last updated 4 years ago

Was this helpful?

Getting Started

Navigate to your Workspace > Apps and click on the gear icon to activate the configuration mode of your applications. Next, click on the gear icon of the application you wish to configure. In the Data section you click on Classes to access the Class Designer.

Next, select New Class in the toolbar of the Class Designer and choose a Base Class for the new class.

A class contains Common, Mapping, Advanced and Permissions configurations. These properties are used to define how the class is stored and how it can be used in your application.

Common Attributes

The Common section contains general properties of a class. In this section, you can specify how the class is presented in your application by setting the name, description and icon. The class type can also be defined based on how the class will be used in the application.

Key

The Key field is compulsory when creating a class.

Name

The class name is a user-friendly name to help users easily identify a class. It can be defined in several languages by selecting the globe icon (on the right side of the text box).

The Name field is compulsory when creating a class.

Description

The class description provides additional information that can be used as help text.

Icon

An image can be assigned to the class to further customize it.

Color

This defines the color assigned to the class icon in the class designer.

Class Type

The class type specifies how the application should treat the class. The options available to customize the class type are Is Abstract, Is Independent and Autosave.

Is Abstract

An abstract class is one that cannot be instantiated. It can be used as a Base Class when during class creation, allowing the new class to inherit all its properties.

Example: An abstract class can be created for new classes to use as Base Class - inheriting preconfigured fields such as Created Date, Modified Date and Deleted Date.

Is Independent

An independent class can exist on its own without any dependency on other classes in the application. This is closely related to how links work on the platform.

Autosave

By activating autosave, objects of the class are automatically saved to the database by the application when created or edited.

In case a class is not defined as Autosave, the application layouts should include a button to manually ensure that data is being saved to the database.

Mapping Attributes

Classes are stored as tables in the database. The Mapping section defines how the class is identified on a database level by the platform and your application.

Key

The mapping key specifies the name of the table for your class in the database. The platform caters for two different scenarios when mapping a class.

Creating applications from scratch

In this scenario, a new application with new classes is being created. The tables are generated when the classes are defined and saved in the Class Designer.

Legacy systems

In this scenario, an application is using a class that reads data from an existing database. This approach allows you to model existing (legacy) systems on the platform.

Advanced Attributes

The Advanced section allows you to control how the platform and the application uses the class.

Controller

This field allows you to specify additional logic related to your class by linking it to a controller file that contains the required code.

Generally, the controller should be left as Default and only customized in unique circumstances.

Document Source

Classes can be initialized from a document on the platform by specifying a document source.

Default Sorting Field

This field defines which class field should be used to sort the elements of the class in a list.

Sorting Direction

The elements can be sorted in ascending or descending order based on this configuration.

Permissions

This section allows you to specify which users or user groups can access the elements of this class or its data fields for reading or manipulating.

Base classes allow your class to be preconfigured with some properties through inheritance. Custom base classes can be created by defining a class as an .

The class key acts as a unique identifier for the class in your application. This allows the class to be identified by other designers on the platform - e.g. the .

Query Designer
Abstract Class
Class designer: Accessing the class designer
Class designer: Creating a class
Common attributes for a class
Different class icon colors in class designer
Mapping attributes for a class
Advanced attributes for a class