Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After saving the expression you will see that the additional parameters are added, resulting into the following expression:

DataReport$ = WINWORD$ DataFax.rtf(FaxFile$, 1, FAXNO$, COMPANY, CLIENTCONTACT$, SUBJECT$, VDES, PROJMANNAME$)

You will see that NS has not been included. If you want NS to be present, provide the first relation as:

DataReport$ = WINWORD$ DataFax.rtf(FaxFile$, 1, NS)

which will giveDataReport$ = WINWORD$ DataFax.rtf(FaxFile$, 1, NS, FAXNO$, COMPANY, CLIENTCONTACT$, SUBJECT$, VDES, PROJMANNAME$)

C. Advanced options

Document parts

When you want to add a separate document part as part of the template add a document tag to this document part. Using the example, you can do this in this way:TO FAX : #FAXNO$# 
COMPANY: #COMPANY# 
ATTN : #CLIENTCONTACT$# 
SUBJECT: #SUBJECT$# 




Dear .. 

The power consumption at the design speed is #VDES|F6.2# knots. 

#NS=2[1]#The vessel has two propellers[1] 

#DocumentTag$#

With best regards, 

#PROJMANNAME$#

In the template we added #DocumentTag$#. This parameter will contain the document tag required to include the separate document with the correct name. By setting this all up parametrically it will stay working for one or more cases. So we will add the following relation:

DocumentTag$="#"+SubDocument$+"#"

In which SubDocument$ is the parameter generating the sub document, comparable to DataReport$ above.

...

When you use several objects, data from these objects can be addressed in the template. This done as follows:

#ObjectName.ParameterName#

or#ObjectName.ObjectName.ParameterName#

etc.

You will receive the data for the case of ParameterName which is selected at the moment of document generation. For a specific case you have to add a number, like for case 3:

#ObjectName.ObjectName.ParameterName.3#

When you want to receive all case values for ParameterName you have to write:#ObjectName.ObjectName.ParameterName.0#

You will receive all cases separated with a CrLf.

When you want to address values in TeLiTab data, it is slightly different. You can address this in the template as follows:

#TeLiTabName.ParameterName#

If the object or TeLiTab contains several cases for the parameter, you will receive all parameters as a list of values with carriage return linefeeds (CrLf) in between. When you want a nice comma separated sentence instead, you have to create a separate parameter for the list of values and use additional attributes in the data slot of the expression.

For example, within a "Calculation" object you have done calculations on one or more Rigs with a "RigNumber". Place the summary parameter "RigNumber$" in the template:#RigNumber$#

And create a relation:RigNumber$=Calculation.RigNumber

with in the dataslot of this expression:@TEXTDELIMITER:", " 
@TEXTLASTDELIMITER:" and "

The attributes indicates that comma's should be used between values and that the final two values should have " and " between them.

...