VLDFILE
Usage
TIBCO iProcess Workspace (Windows)
Warning: (iProcess only) This expression is not available to the TIBCO iProcess Script Server Plug-in. Therefore, even though you can successfully enter the expression in your iProcess Script plug-in definition, it will not be processed by the iProcess Engine. It will return SW_NA.
Adds each line from a text file to the list of validations to be used on the current field. Only relevant when in the validations Values column; ignored elsewhere.
Syntax
VLDFILE (file, location, limit)
where:
| • | file is a text string specifying the name of the text file containing the validations; either the full pathname, or a simple filename in the directory specified by the location parameter. (In the latter case the filename will be case sensitive.) |
Note: A simple filename may be a maximum of 12 characters, and a full pathname 255 characters.
| • | location is a numeric value specifying the directory where the file is located IF file is a simple filename: |
|
Value |
Directory |
|
0 |
Central |
|
1 |
User’s |
| • | limit is a numeric value specifying the maximum number of validations to add to the validations list (subject to the overall limit specified by the MAXVLD entry in the SWDIR\etc\staffcfg file, or 1000 if there is no such entry). |
Returns
The number of validations added to the validations list.
Note: The list is created when the form is first displayed, and cannot be regenerated while the form is open.
Examples
TIBCO iProcess Modeler:
File partnums in the SWDIR\lists directory:
VLDFILE ("partnums", 0, 50)
Simple filename contained in text field LISTFLD, file in the user’s SWDIR\queues\username directory:
VLDFILE (LISTFLD, 1, 10)
The specified file on the user’s machine:
VLDFILE ("C:\DATA\LIST.TXT", 0, 100)
TIBCO Business Studio:
IPEValidationUtil.VLDFILE("partnums", 0, 50);
IPEValidationUtil.VLDFILE(LISTFLD, 1, 10);
IPEValidationUtil.VLDFILE("C:\\DATA\\LIST.TXT", 0, 100);