![]() |
|||||
|
The <filterable> AttributeYou can customize away those UI elements that enable users to filter objects by setting the value of the <filterable>-tag to false. Depending on the ElementDefinition at hand you either customize away the respective class filter button or the respective attribute filter buttons in the header of the grid table (see Figure 4-3). The following example shows how to customize away the class filter button for Postal Addresses (attached to Accounts), i.e. the code removes the class filter button crossed out in Figure 4-3 Example 4-8. Example with filterable - Class Filter Button .
<org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:account1:PostalAddress">
<_object>
<active>true</active>
<filterable>false</filterable>
<toolTip>
<_item>Postal Address</_item>
</toolTip>
<label>
<_item>Postal Address</_item>
</label>
<iconKey>PostalAddress</iconKey>
</_object>
<_content/>
</org.openmdx.ui1.ElementDefinition>
.The following example shows how to customize away the Usage attribute filter buttons of Addressables, i.e. the code removes/disables the attribute filter buttons crossed out in Figure 4-3 Example 4-9. Example with filterable - Attribute Filter Buttons .
<org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:address1:Addressable:usage">
<_object>
<active>true</active>
<filterable>false</filterable>
<toolTip>
<_item>Usage of address</_item>
</toolTip>
<label>
<_item>Usage</_item>
</label>
<orderFieldGroup>
<_item>0</_item>
<_item>10</_item>
<_item>10</_item>
</orderFieldGroup>
<orderObjectContainer>
<_item>0</_item>
<_item>0</_item>
<_item>4</_item>
</orderObjectContainer>
</_object>
<_content/>
</org.openmdx.ui1.ElementDefinition>
. |
||||