Variable Substitution Rules

Variables can be referenced in the T-SQL statement by using either simple substitution or extended substitution. When the report is run, the {xxx} variable is replaced with an ID or string in the query.

Simple substitution Example of expanded variable
D.Filename LIKE {FileName} D.Filename LIKE 'document.doc'
X.DocumentID = {TheFileID} X.DocumentID = 48
Extended substitution Example of expanded variable
{D.DocumentID, TheFileID, =, OR} (D.DocumentID = 48) OR

(D.DocumentID = 49) OR

.

.

(D.DocumentID = 345)

D.Filename, FileName, LIKE, OR} (D.DocumentID LIKE 'document.doc) OR

(D.DocumentID LIKE 'drawing.slddrw') OR

.

.

(D.DocumentID LIKE 'picture.jpg')