More advanced documents
WARNING: This is an advanced topic intended for expert users. If you are not comfortable editing HTML, you should seek further assistance from your web designer.
With SchemeServe is is possible to augment dynamic document templates with conditional and mathematical operators for richer, more dynamic results. To do this, you should use admScript.
All about admScript
For more information on the language that powers conditional operations in SchemeServe Documents and Reports, see admScript Language Reference. You will find a complete list of possible operators and syntax.
For specific examples of this syntax in action with respect to document templates, read on.
Examples of admScript in Documents
Most seasoned SchemeServe users will be familiar with the syntax used for embedding the answers to Case questions into dynamic documents. Simply stated, the SystemID of the question required is entered into the document body, within square brackets wherever you require that value to be substituted at the time the document is generated.
So the following HTML:
Total premium is: £TotalPremium_Result
Might become at the time the document is generated:
Total premium is: £12,789.11