Share via


Field

You set the value of the AdapterReference tag to Field to use inline field binding in the adapter. The following is an example of a binding, where the AdapterReference is set to Field:

<Fields>
 <Field Name="ProductSelect" BiDirectional="true">
   <DirectMapping>productselect.Text</DirectMapping>
   <AdapterMapping type="MyPictureAdapter" Init="MyPictureDb">productPicture.Picture</AdapterMapping>
 </Field>
</Fields>

In the above example, the tag AdapterMapping specifies that the mapping is done through an adapter. You can set the AdapterMapping type value to any one of the values declared in the Adapters section. The Init parameter is a string passed to the adapter when initializing it. The content of the tag specifies the only output allowed in inline binding, while the only input is the logical Field name set in the Field tag. You can set a field to have simultaneous inline mappings of different kinds (direct or adapter).