Table
Overview
Use the Table control to display a data table. You can configure the table as a whole to display only items of a particular type and configure the columns to show the different properties of items displayed. You can additionally make the columns interactive by associating UI Events to them.
If you want to enable end users to use the table to create associations between instances, then you can include a referenced picker in it for adding and removing items.
You can additionally add tables to pickers in the metadata. These tables will then display when the picker is opened. For more information on incorporating tables into pickers, see Working with Pickers
Example
This example is taken from ServiceRequestTemplatesList.layout.
<Table head="true" name="tblServiceRequestTemplates" order="((currentLocalization caption) . #t)" permanent="2" rows="(@)">
<Toolbar name="toolbarMenu">
<Item caption="ids.record.add" event="sysAdd" icon="plus_grey" name="addItem"/>
</Toolbar>
<Menu name="mnuRightClick">
<Item caption="idsa.UIEvents.edit" event="sysProperties" icon="pencilRH" name="mitEdit"/>
<Separator/>
<Item caption="idsa.UIEvents.deactivateServiceRequestTemplate" event="deactivateServiceRequestTemplate" icon="deactivate" name="mitDeactivate" visible="`,(@ active) "/>
<Item caption="idsa.UIEvents.activateServiceRequestTemplate" event="activateServiceRequestTemplate" icon="activate" name="mitActivate" visible="`(not ,(@ active)) "/>
<Separator/>
<Item caption="ids.record.remove" event="sysRemove" icon="remove" name="mitRemove"/>
</Menu>
<Column caption="ids.icon" customizable="`#f" icons="icon" length="10" name="colType"/>
<Column caption="IDS_NAME" customizable="`#f" event="sysDetail" length="80" name="colName" values="currentLocalization caption"/>
<Column caption="IDS_STATUS" customizable="`#f" name="colStatus" sortable="false" values="activeStatus caption"/>
<Column caption="ids.ServiceRequestTemplate.targetEntityType" name="colTarget" values="targetEntityType caption"/>
<Column caption="IDS_SEVERITY" name="colSeverity" values="severity caption"/>
<Column caption="IDS_PRIORITY" name="colPriority" values="priority caption"/>
<Column caption="IDS_CHANNEL" name="colChannel" values="channel caption"/>
</Table>
More details
More information about specific properties for the Table Control can be found in the Model Description Language Reference.