$variable = ResolveTextTemplate(tmplURL,tmplCP);
tmplURL
Reference (file or http) to the template. Can be an absolute path or a path relative to the working directory of the StreamServer application.tmplCP
The default codepage of the template. This codepage is used only when Template Engine cannot find out which codepage is used in the template. An empty string ("") is interpreted as "UTF-8".Returns the Template Engine output to a variable. The output variable can be used in different scenarios. For example, you can create a template that generates complex log messages, and use the ResolveTextTemplate and log script functions to write the message to the log. Another example of usage is to include ResolveTextTemplate in a before Process script attached to a StoryTeller Process, and use the output variable in the StoryTeller Process.$template=ResolveTextTemplate(”C:\tmpl\invoice.txt”,"");log(1,$template);
OpenText StreamServe 5.6 | Updated: 2013-03-01 |