Portlet Factory, Version 6.1.2
Inheriting data definitions from a base definition file
In the Rich Data Definition builder, the base attribute can be used to inherit properties from other data definitions. The inherited data definition can be in the same XML file, or it can be in the Base Data Definition File specified in the Rich Data Definition builder. Data definition properties are inherited at the individual property level, and any properties can be overridden in the derived data definition.
For example, here are two of the definitions for typical data fields (QUANTITY and DATE_ORDERED ):
<DataDefinitionElement name="QUANTITY"> <Label>Quantity</Label> <Required>false</Required> <ValidateExpr>Optional integer</ValidateExpr> </DataDefinitionElement> <DataDefinitionElement name="DATE_ORDERED" base="base_SAPDate"> <Label>Date Ordered</Label> </DataDefinitionElement>The base SAPDate definition used for DATE_ORDERED might look something like the following:
<DataDefinitionElement name="base_SAPDate"> <DataEntryControl>com.bowstreet.solutions.wfm.builders.CalendarPickerBuilder</DataEntryControl> <DataEntryInputs> <Inputs> <Input name = "Format">MM/dd/yyyy</Input> </Inputs> </DataEntryInputs> <FormatExpr>Format(yyyy-MM-dd$MM/dd/yyyy)</FormatExpr> <TranslateExpr>Translate(yyyy-MM-dd$MM/dd/yyyy)</TranslateExpr> <ValidateExpr>Optional Date(yyyy-MM-dd)</ValidateExpr> </DataDefinitionElement>Parent topic: Working with data definitions
Library | Support |