|
''FileQueryDataSource'' Element |
|
|
FileQueryDataSource is used a to define data source that queries the file system. Similar to querying databases, the files and the directories under the specified root directory can be queried according to their name, extension, size, etc. The "documents" data source configured below queries the files with extension 'doc' under the {WEB_APPLICATION_ROOT}/WEB-INF/docs directory and and populates their names, sizes and last modification dates in NAME, SIZE and MODDATE result fields.
Properties The properties Scope, Refresh Timeout, Execution Precondition are standard data source parameters and they are handled by MoreMotion AF. Root Directory The root directory where the search starts. This definition can be made absolute or relative to the web application's root directory. See Absolute Or Relative Names File Query String This parameter accepts an MScript test expression. The File Attributes can be used as symbols in the expression. Example: (SIZE > 30000) and (MODDATE < '2004.11.16 00:00') Result Fields The names of the File Attributes that should take place in the result set should be given in this parameter. The attribute names should be separated with commas. The name of a result field can be set different than the file attribute name by using a "as" keyword after the attribute name followed by the result field name. Syntax: file-attribute-name [as result-field] [, file-attribute-name [as result-field]..]
If result-field is omitted then file-attribute-name is used as the result field.
Examples: NAME, SIZE
Recursive The value of this parameter should be "True" to extend the search to all the sub-directories of the given root directory, "False" otherwise. Debug |