Real Time Information Director User Documentation
    RTID Metadata Language 
Hewlett-Packard Company  45  529618-002   
new FieldElement("GLTRI", "ACTUAL_FINISH_DT", IDOC.DASHED_DATE), 
new FieldElement("GLTRP", "BASIC_FINISH_DT", IDOC.DASHED_DATE), 
new FieldElement("GLTRS", "SCHEDULED_FINISH_DT", IDOC.DASHED_DATE), 
new FieldElement("GLUZP", "BASIC_FINISH_TM", IDOC.TIME), 
new FieldElement("GLUZS", "SCHEDULED_FINISH_TM", IDOC.TIME), 
new FieldElement("GMEIN", "COMMON_UNIT_OF_MEASURE_CD"), 
new FieldElement("GSTRI", "ACTUAL_START_DT", IDOC.DASHED_DATE), 
new FieldElement("GSTRP", "BASIC_START_DT", IDOC.DASHED_DATE), 
new FieldElement("GSTRS", "SCHEDULED_START_DT", IDOC.DASHED_DATE), 
new FieldElement("GSUZP", "BASIC_START_TM", IDOC.TIME), 
new FieldElement("GSUZS", "SCHEDULED_START_TM", IDOC.TIME), 
The following excerpt from the IDoc class shows several, commonly used formatters.  
Because the date and time formatters do not take parameters, each is constructed only 
once. 
The STRIP_BLANKS formatter is created by constructing the RemoveCharFormatter 
with a space character as the parameter. 
The PRODUCT_BASE_NO formatter combines the STRIP_BLANKS formatter with a 
SubStringFormatter. It strips out blanks and everything following the pound sign (#) on 
the inbound document. 
The ITEM_NO formatter reflects the fact that item numbers in IDocs are usually 
represented as a 6-digit zero-padded numbers. Similarly, the LINE_NO format reflects 
that detail line numbers in IDocs are almost always represented as four-digit zero-padded 
numbers. 
public final static Formatter TIME = new ColonTime(); 
public final static Formatter DASHED_DATE = new DashedDate(); 
public final static Formatter STRIP_BLANKS = 
new RemoveCharFormatter(' '); 
public final static Formatter PRODUCT_BASE_NO = 
new CompoundFormatter(new Formatter[] { 
  new SubStringFormatter("#"), 
 STRIP_BLANKS 
}); 
public final static Formatter ITEM_NO = new LeadingZeros(6); 
public final static Formatter LINE_NO = new LeadingZeros(4); 
Some formatters are applied automatically to IDoc elements on the basis of the data type 
of the corresponding SQL field. For example: 
•  Minus signs (-) in IDocs are on the right side. A formatter moves the minus sign 
to the left side for a numeric SQL field. 










