downloadInputs Statement
Added: v4.1
Purpose
Specifies that clients should re-download input
variable values from Analysis Server after calling "Reload Templates"
or "reinitialize()" methods
Applicability
This statement should be used in the global section of the file.
Additional Information
- The value of this variable is just a hint to the client. The client may choose to ignore its value
- If your client is ModelCenter or ModelRunner, you must be using v6.1 or greater for this to have any effect
Syntax
downloadInputs: <true|false>
Arguments
| Name |
Description |
| value |
True if the client should download input values after calling "Reload Templates" or "reinitialize()"
|
Options
none
Example
The user wants to be able to swap out a template file at run-time using a userVariable.
When the new template is loaded, the developer would like the end-user
to get the values out of the template file as well as the structure.
userVariable: inFileName string default=in1.template
downloadInputs: true
RunCommands
{
generate inFile
run "myProg in.dat out.dat"
parse outFile
}
RowFieldInputFile inFile
{
templateFile: $inFileName
fileToGenerate: in.dat
...
}
See also Analysis Server | FileWrapper | FileWrapper
Statements