Working With Image Fields

Image fields can display image documents stored in the document database or image files stored in the server-side file system. They are defined in AXVW as follows:

<field id="leaseImageDocument" controlType="image" colspan="2" width="600" height="400">
<title>Image File Display</title>
</field>


By default image fields do not display anything. You can display an image file in the field by passing the image field id and an image file URL to the form’s showImageFile function:

this.leaseForm.showImageFile('leaseImageDocument',
'/archibus/schema/ab-system/graphics/CampusQuadrantPlan.gif');


In order to display an image document you need to specify:

  • The image field id
  • The id of a form field that contains the document primary key value (possibly hidden field)
  • The id of a form field that contains the document file name (possibly hidden field).

this.leaseForm.showImageDoc('leaseImageDocument', 'ls.ls_id', 'ls.doc');