DataOption insertTableIds

This option adds id’s to the table of the target data-element. The value should contain all fields that should be included in the id and should be defined as:

<field0>(_<fieldi>)*

Row id

Each row of the data element will receive an id that is based on the element and fields as defined in the option’s value.

Id’s have the form:

<component>-<element>-<field0:value>(-<fieldi:value>)*-row

E.g. a row of an instance of Invoice with name ‘Invoice 1’ will look like:

<tr id="tutorialComp-invoice-invoice-1-row" data-bind="...">
    ...
</tr>

Note that the name is tranformed to fit the id. The transformation being applied is:

  • alphanumeric and ‘_’ => lowercase
  • other characters => ‘-‘

Table cell id

Each cell in the table similarly receives an id, with the added information of the field name:

<component>-<element>-<field0:value>(-<fieldi:value>)*-<fieldn:name>-cell

E.g. for a field named createdOn:

<td id="tutorialComp-invoice-invoice-1-createdon-cell" class="..." data-bind="...">
    ...
</td>

Known issues

For version 3.2.1.4, this option only works with info fields with the type String.

Version

Release Expander version Change
201803 3.2.1.4 implemented

References