Commonly Used Expressions

This is a collection of expressions which are commonly used.

Report Document Existence 

Sometimes it is necessary to check whether a report document with a certain name actually exists. Let's suppose there is a task with the following action hierarchy:

TASK 
CREATE REPORT DOCUMENT ExampleCustomerReport FROM REPORT CustomerReport 
GROUP 
SAVE REPORT DOCUMENT TO FILE SYSTEM 
DISTRIBUTE REPORT DOCUMENT BY E-MAIL 
END GROUP

The above task creates a report document called ExampleCustomerReport (see Create Report Document Action) based on the report (see Reports) called CustomerReport. Then embedded in a group (see Group Action) it saves the created report document to the file system (see Save Report Document to File System Action) and then distributes it by e-mail (see Distribute by E-Mail Action).
Now let's suppose that the report CustomerReport has a condition (see General Attributes), which means that the report document ExampleCustomerReport is only created if that condition is fulfilled. Obviously, the actions in the group, which save the report document to the file system and distribute the report document by e-mail should only be executed if the report document has actually been created (e.g. if the condition of the report was fulfilled). This can easily be achieved by setting a condition on the group action that tests for the existence of the report document; the condition for the expression needs to check whether the report document exists and has the following syntax:

DoesReportDocumentExist("ExampleCustomerReport")

If the report document ExampleCustomerReport does not exist, the group condition will not be fulfilled and therefore the actions to save and distribute the report document will not be executed.


M
Mail is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.