ImportFromFileServerToCollection method (WinStudio scripts)

Applies to

Document (file) operations

Description

Retrieves a file from a file server and imports it into a specified IDO collection.

Syntax

ImportFromFileServerToCollection( string formDefName, string collectionid, string propertyTo, string serverFrom, string fileSpec, int rowIndex, out string errorMessage )

where:

  • formDefName is the internal name (not caption) of the form to which the file is being imported.
  • collectionid is name of the IDO collection into which the file is to be imported.
  • propertyTo is the name of the property to which the file is to be imported.
  • serverFrom is the file server on which the requested file is located.
  • fileSpec is the name of the requested file.
  • rowIndex the number of the record to which the file is to be imported.
  • errorMessage is the error message to be returned if the import is not successful.

Remarks

To import the file to an IDO collection's BLOB property, include this argument after the serverFrom argument:

string logicalFolderName