Stadium
  • Home
  • Academy
  • How it works
    • Designer
    • Application Manager
    • Application users and roles
    • Designing applications
    • User API
  • Features
    • Application
    • Create a Form
    • Embedded Files
    • Events
    • Expression Editor
    • Pages
    • Preview
    • Publish
    • Scripts and Event Handlers
    • Session Variables
    • Settings
    • Styles
    • StyleSheet
    • Templates
    • Types
    • Validations Cheat Sheet
  • Connectors
    • Database Connector
    • File System Connector
    • Web Service Connector
  • Controls
    • Button
    • Chart
    • Checkbox
    • Checkbox List
    • Container
    • Data Grid
    • Date Picker
    • Drop Down
    • Flexbox
    • Grid
    • Image
    • Label
    • Link
    • Menu
    • Panel
    • Radio Button List
    • Repeater
    • Table
    • Text Box
    • Upload File
  • Actions
    • Async
    • Call Web Service
    • Decision (If/Else)
    • Display Message Box
    • Download File
    • For Each
    • Java Script
    • Navigate To Page
    • Notification
    • Set Value
    • Variable
    • While
  • Release Notes
    • 6.12.3272
    • 6.12.3270
    • 6.12.3268
    • 6.12.3264
    • 6.11.3223
    • 6.11.3221
    • 6.11.3220
    • 6.11.3218
    • 6.11.3210
    • 6.10.3155
    • 6.10.3151
    • 6.9.3102
    • 6.8.3100
    • 6.7.3096
    • 6.6.3082
    • 6.6.3081
    • 6.6.3080
    • 6.6.3075
    • 6.5.3055
    • 6.4.3036
    • 6.4.3034
    • 6.4.3033
    • 6.3.3019
    • 6.2.2999
    • 6.2.3001
    • 6.1.2990
    • 6.0.2972
    • 6.0.2970
    • 6.0.2969
Powered by GitBook
On this page
  • Why use Types?
  • Defining Types
  • How to use Types

Was this helpful?

  1. Features

Types

Types can be used to create variables of different types that can be used in your application's processing of data.


Why use Types?

Using Types can make your application development more efficient in the following ways:

  • Reusability A Type is created once, but instances of the Type can be used multiple times.

  • Maintainability Maintaining a Type is made easy by allowing you to update the details of a Type in one place, rather than in all instances of the Type.

  • Validations When creating a Type you associate it with a specific data structure, like a List or Object, which helps in validating the data that can be used in any instance of the Type.


Defining Types

When creating a Type, the following are available:

  1. Any Can be created for strings, integers, decimals, dates and booleans.

  2. List Can be created for a list of items. The items can be of any Type.

  3. Object Can be created for JSON objects.

  4. Existing Types Can be created as a Type of a Type.


How to use Types

  1. Click on the Types icon on the top menu bar.

  2. Provide a name for your Type.

  3. Select what type you are creating, e.g. List or Object.

How to assign values to a Type by using an expression

Set the initial values of the object by setting the Value property to a JavaScript object containing the properties you want to set.

In the example below, name, email and phone properties are set. Then the name property is initialized to another object which contains the title, first and last properties.

{ name : { title : 'Mr', first : 'James', last : 'Pace' }, email : 'james.pace@gmail.com', phone : '555-1234' }


PreviousTemplatesNextValidations Cheat Sheet

Last updated 8 months ago

Was this helpful?

Drag your Type to an , e.g. a page load. At this point you are creating a variable of that Type.

Add the required actions to your to interact with your variable, e.g. to store values to it or to assign its value to other variables, Actions or Controls.

Event
Event