Add and edit attribute nodes and their properties
- Last Updated: September 8, 2021
- 2 minute read
- Corticon.js
- Documentation
- Select the Entity node in the Vocabulary tree view where you want to add an attribute.
-
Right-click, choose Add Attribute, and then
use its submenu to specify the datatype of the attribute, as illustrated for a
Datetime attribute:

(You could instead choose the menu command Vocabulary > Add Attribute.) Note that the toolbar button
always creates a String
attribute.
-
After creating the new attribute, the editor cursor lets you modify
the default name from
Attributento your preferred name. -
If your preferred data type is a Custom Data Type, click on the
dropdown menu for the data type:

-
Select the defined Custom Data Type you want to use for this
attribute:

- Assign the other property values as described in the following table.
Note:
The following table lists the basic properties common to every Attribute.
| Property | Value |
| Attribute Name | Assigns a name to the new Attribute. As with Domain and Entity nodes, double-clicking the node in the tree view will also open an editing box. Name changes made in either the node or the property will update in both places; however, you should choose to refactor the name instead to insure that it perpetuates throughout the project. |
| Data Type | The default value is String. Other available data types: Boolean, Decimal, DateTime, Integer. You can also have a custom data type. |
| Mandatory | A mandatory attribute cannot have a value of
null. This setting affects the members of the values sets shown in
Rulesheet drop-downs. For example, an attribute whose Mandatory value is
No will always include a null value selection in its Rulesheet
drop-downs. |
| Mode | Choose the attribute's Mode from the drop-down list.
Note: If you export tests that use transients, the
transients are included.
|
| Property | Value |
| JSON Element name | Blank for manually created Vocabularies. See JSON payloads and results in Corticon.js for more information. |