Use documents in a Find-Manage Wizard

Technologies > User Interface Add-Ins > Assemblies with Multiple Panes > Find-Manage with Document Field

This example demonstrates a variety of ways in which a document may be displayed in a view.

A document associated with a record may be stored in the table's document field:

<dataSource id="exFindManageDoc_ds">
<table name="ls" role="main" />
<field name="ls_id" table="ls" />
<field name="doc" table="ls" />


A document field declared in the data source will appear in a form panel as a document form field with document action buttons to Show, Check In, Check Out, Lock, or Delete the document. By default, when the user presses the document field's Show action, the document displays in a pop-up window.

By setting the document field's displayField attribute, the document may be displayed within an inline image display field:

<panel type="form" id="exFindManageDoc_leaseForm" dataSource="exFindManageDoc_ds">
<field name="doc" table="ls" displayField="ls_doc_image" />
<field id="ls_doc_image" controlType="image" colspan="2" width="600" height="400"/>

A document may be displayed in a pop-up window from JavaScript using the View.showDocument() method:

grid_onShow: function(row) {
var record = row.getRecord();
var leaseId = record.getValue('ls.ls_id');
var leaseDocFileName = record.getValue('ls.doc');
var keys = { 'ls_id': leaseId };

View.showDocument (keys, 'ls', 'doc', leaseDocFileName);
}


To display an inline image document from a panel action using JavaScript, see the following topics:

Display a document in a document field as an image in a form

Display a bitmap file in the graphics folder as an image in a form

View: http://localhost:8080/archibus/schema/ab-products/solutions/assemblies/find-manage/ab-ex-find-manage-doc.axvw