Field Section Definition
FieldSectionDefinition ⇐ BaseSectionDefinition
This is the most important section for a decision table. This section is devided into 1..n sub sections. It is the section containing the relevant data.
Kind: global class
Extends: BaseSectionDefinition
- FieldSectionDefinition ⇐
BaseSectionDefinition- .subSections
- .tdgMandatory
- .mandatory
- .validate() ⇒
array - .createNewRow() ⇒
string - .createNewField(fieldName) ⇒
string
fieldSectionDefinition.subSections
{object} The subSections of this fieldSection. The section definitions stored by there id
Kind: instance property of FieldSectionDefinition
fieldSectionDefinition.tdgMandatory
Defines if the dataGenerator column is mandatory. Default=false.
Kind: instance property of FieldSectionDefinition
fieldSectionDefinition.mandatory
Defines if the section must have at least one value. Default=true
Kind: instance property of FieldSectionDefinition
fieldSectionDefinition.validate() ⇒ array
Validates this section definition. A fieldSection must have at least one subSection.
Kind: instance method of FieldSectionDefinition
Returns: array - issues An array of issues found
fieldSectionDefinition.createNewRow() ⇒ string
Creates a new row for this section. generates a new UUID and add it to the row array.
Kind: instance method of FieldSectionDefinition
Returns: string - id The new created row id
fieldSectionDefinition.createNewField(fieldName) ⇒ string
Adds a new empty field
Kind: instance method of FieldSectionDefinition
Returns: string - subSection The new created sub section
| Param | Type | Description |
|---|---|---|
| fieldName | string | The name of the new field |