Place the new field in a cell.
A label or a field must always be placed in a cell in the XML structure. Cells are aligned vertically or horizontally by enclosing them in stacks. Complete stacks are placed in cells, allowing them to be placed either vertically or horizontally again. The size of the cell is also specified on the cell. If the cell is part of a horizontal stack, then the size specification determines the width of the cell. If the cell is part of a horizontal stack, then the size specification determines the height of the cell. When you add your cell to a stack, you must increase the size of the cell that contains that stack. Otherwise, your field might be hidden in the UI.
The cell for the field label of the Membership field is as follows:
<cell size="22">
<static id="lbl_stmembership" tab_order="14">
<text>#lbl_membership</text>
</static>
</cell>
The #lbl_membership
data is a reference to the string displayed in the UI that is set up in the package_res.xml file.
The cell with the field is similar to the following example:
<cell size="22">
<edit id="stMembership" tab_order="14">
<field value="string">stMembership</field>
</edit>
</cell>
This XML section specifies a text box that is linked to the new field. The field name must match the field created in the od_meta_info.xml file in Changing the XML Code in the od_meta_info.xml File.
NOTE: In the above cell examples, the values of the id and tab_order parameters must be unique. However, the tab_order parameter is optional, so you can remove it when testing the changes.