SourceForge.net Logo

The <sortable> Attribute

You can customize away those UI elements that enable users to sort objects by setting the value of the <sortable>-tag to false. This customizes away the respective sort buttons/indicators in the header of the grid table (see Figure 4-4).

The following example shows how to customize away the sort button/indicator for the Usage attribute of Addressables, i.e. the code removes the attribute sort button/indicator crossed out in Figure 4-4

Example 4-10. Example with sortable - Attribute Sort Buttons/Indicators

  .
  <org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:address1:Addressable:usage">
    <_object>
      <active>true</active>
      <sortable>false</sortable>  
      <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>
  .

Figure 4-4. Effect of setting sortable to false

http://www.crixp.com/ http://www.openmdx.org/