You are here: User interface > Controls > Creating a custom control

Creating a custom control

Records can be created in various ways. You can add a new record to your application or copy an existing one. You can specialize existing rules by creating a copy in a specific ruleset, against a different class or (in some cases) with a set of circumstance definitions. You can copy data instances but they do not support specialization because they are not versioned.

Based on your use case, you use the Create, Save As, or Specialization form to create the record. The number of fields and available options varies by record type. Start by familiarizing yourself with the generic layout of these forms and their common fields:

This information identifies the key parts and options that apply to the record type that you are creating.

If no predefined control meets the needs of your application, you can create one.

  1. Click +Create > User Interface > Control.

  2. In the Label field, enter a name for the control. Begin the name with a letter and follow the rules for a Java identifier.

  3. Optional: In the Context section, set the application, ruleset, and ruleset version.
  4. Click Create and open.

After you create a control, complete the following tasks:

  1. Select the control mode.
  2. Select the type of UI element and property value.
  3. Set size and appearance format.
  4. Format the text.
  5. Add interactive behaviors (Actions).

You can also add an icon to a control.