Configuring Sun Master Indexes (Repository)

Adding Fields to the EDM

You can define new fields for an object in the Enterprise Data Manager file, but the field must correspond with a field defined for that object in the Object Definition file. Only the fields defined in the Enterprise Data Manager file appear on the EDM windows. If you add a field to the object structure using the Configuration Editor, it is automatically added to the Enterprise Data Manager file.

ProcedureTo Define New Fields

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click the Enterprise Data Manager file.

    The file opens in the NetBeans XML editor.

  2. Scroll to the node element that defines the object to which you want to add a field.

  3. In the node element, create a new element named field-, where field_name is the name of the field as it appears in the Object Definition file.

    For example:


    <node-Person>
       <field-LastName>
       </field-LastName>
    </node>
  4. Define and configure the elements listed inEDM Field Configuration Elements for the new field-field_name element.

    For example:


    <field-LastName>
       <display-name>LastName</display-name>
       <display-order>2</display-order>
       <max-length>40</max-length>
       <gui-type>TextBox</gui-type>
       <value-type>string</value-type>
       <is-sensitive>false</is-sensitive> 
       <key-type>false</key-type>
    </field-LastName>
  5. If necessary, renumber any existing fields to keep the numbering sequential.

  6. Save and close the file.