DISPLAY DOCUMENT

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

  • DISPLAY DOCUMENT AttributeIdentifier()[ USING StringLiteral()] [ MERGE INTO ONE][AS HTML][ AS XLS ][ IN ZOHO ][ IN OO ][ NEW WINDOW ][ MERGE WITH AttributeIdentifier()]

The action written in this format displays the contents of the attribute of the specified business object, provided that this attribute is of the Document type. Whatever document is stored in the attribute will be displayed – no document processing is performed. For example,

DISPLAY DOCUMENT Statement.StatementDocument 
  • DISPLAY DOCUMENT (Id() | StringLiteral()) [ AS MESSAGE ][ USING StringLiteral()] [ MERGE INTO ONE ] [ NEW WINDOW ][ MERGE WITH AttributeIdentifier()][ DELETE AFTER INTEGER_LITERAL]

where Id() or StringLiteral() is the name of the document template to be displayed. Before the document template is displayed the action calculates and fills in attribute values used inside tags in the template (see also the “Document Generation” section).

Consider the following rules:

FIND Person WHERE Person.Name='John Smith'
DISPLAY DOCUMENT AccountOpeningLetter 

where 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 template is displayed.