Once a field is defined for an object in midm.xml, you can change the number of characters that can be entered for the field in the MIDM. You can also specify whether to automatically enter punctuation into a field on the MIDM, but remove the punctuation in the database. If you modify the field's length and format in the object structure using the Configuration Editor, midm.xml is automatically updated as well.
Field length here is constrained by the length of the database column containing the field and the length defined in object.xml.
In the Projects window, expand the Configuration node in the project you want to modify, and then double-click midm.xml.
The file opens in the NetBeans XML editor.
Scroll to the node element that defines the object containing the field you want to modify.
Scroll to the field element you want to modify.
To modify the length of a field, change the value of the max-length element.
For example:
<max-length>100</max-length> |
To modify the format of the field, change the value of the input-mask and value-mask elements.
If these element do not exist for the field, create new input-mask and value-mask elements. For example:
<input-mask>(DDD)DDD-DDDD</input-mask> <value-mask>xDDDxDDDxDDDD</value-mask> |
If an input mask is defined, in most cases a value mask must also be defined. For information about input and value masks, see MIDM Field Configuration Elements.
Save and close the file.