DISPLAY DOCUMENT Action

UDP ›› Actions ››
Parent Previous Next

DISPLAY DOCUMENT Action

The DISPLAY DOCUMENT action displays the specified document on the screen. The action has two variations:

   

1.      Display the document contained in an attribute of the Document Type. Whatever document is stored in the attribute will be displayed – no document processing is performed (see Document Management). For example,

   

DISPLAY DOCUMENT Statement.StatementDocument  

   

2.      Generate the document from a document template and display the result on the screen (see Document Generation). Consider the following rules as an example:

   

FIND Person WHERE Person.Name='John Smith'  

DISPLAY DOCUMENT AccountOpeningLetter  

   

In this example AccountOpeningLetter is the name of the document template. If this template has the following line:  

   

Dear <<Person.Name>>,

   

it will be replaced with the line

   

Dear John Smith

   

when the document is generated and displayed.

   

Text and HTML documents can also be displayed inside a pop-up window if you use the AS MESSAGE clause at the end of the action, for example:

   

DISPLAY DOCUMENT SplashScreen AS MESSAGE  

   

Report documents can be displayed in the XLS format rather than the default PDF format:

   

DISPLAY DOCUMENT AccountOpeningLetter AS XLS  

You can also specify a query in this action to be used as the data source for the document. Aware IM will produce as many documents as there are instances returned by the query. If MERGE INTO ONE option is not used LaserQuote will display all instances on screen (the user will have to click on an icon next to each entry to see the document). If MERGE INTO ONE clause is specified Aware IM will automatically merge all documents into one document and show it to the user immediately. For example,

   

DISPLAY DOCUMENT AccountOpeningLetter USING ‘All accounts’ MERGE INTO ONE