View

Description

Define a field in an abra view. If composite define a foreign view or field.

Parameters

Attribute Description Required
in the 'format' name defined in a class-view node Yes must be a valid format
foreign-view valid 'format' in foreign class to use If a composite field, one of these
foreign-field a java field name to map from the composite

Parameters specified as nested elements

NONE

Examples

  
<field name="name" type="string" >
   <view in="edit"  / >
</field >
This will cause the name field to ocur in the format defined as 'edit'
  
<field name="address" type="org.Address" >
   <view in="edit"  foreign-view="display" / >
</field >
this will cause the 'display' format of the org.Address class to occur in the edit view of this class Or single field-mapping.
  
<field name="address" type="org.Address" >
   <view in="edit"  foreign-field="city" / >
</field >
This will create a field of the java type of city in class Address to be in the edit view. If a call to this.createEditView () is made then the address field will be populated with a call to this.getAddress().getCity()

Copyright © 2000,2001,2002 Paul Bethe and Richie Bielak. All rights Reserved.