SourceForge.net Logo

The <inPlace> Attribute

To facilitate quick entry of objects openCRX supports editable grids. You can designate a grid as editable by setting the value of the <inPlace>-tag to true. This brings up the respective edit button in the header of the grid table:.

Figure 4-7. Effect of setting inPlace to true

The following example shows the customization of the grid "Positions" of an opportunity:

Example 4-14. Example with inPlace - Editable Grid

  .
<org.openmdx.ui1.ElementDefinition name="org:opencrx:kernel:contract1:Opportunity:position">
  <_object>
    <active>true</active>
    <inPlace>true</inPlace>  
    <toolTip>
      <_item>Opportunity Positions</_item>
    </toolTip>
    <label>
      <_item>Positions</_item>
    </label>
    <order>
      <_item>0</_item>
      <_item>0</_item>
      <_item>3</_item>
    </order>
    <maxMember>17</maxMember>
    <showMaxMember>11</showMaxMember>
  </_object>
  <_content/>
</org.openmdx.ui1.ElementDefinition>
.

The following figures shows the grid table "Positions" in edit mode:

Figure 4-8. Grid in Edit Mode

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