Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter EighteenDataView Integration (continued)

FormsViewOpenFile Function

Overview

The FormsViewOpenFile function opens an MDI Data View workbook using a template and source file.

Syntax/Parameters

Syntax

handle = FormsViewOpenFile ( string source, [string template] );

Parameters

source

A string containing a qualified filename or a URL. This becomes the view’s source file.

template

An optional string specifying the template file to use to open the data.

Return Value

A window handle or NULL_HANDLE (0) if there is an error. Use the GetLastError function to retrieve a formatted error code. The value is the handle to the MDI container window for all views displayed and can be used to access other window functions. This handle is not a script object and does not need to be closed.

If the view is opened, the Edit Manager entry index can be retrieved by using the GetLastError function.

Remarks

This function differs from running a FILE_OPEN from the RunMenuFunction in that it provides direct access to the Forms View manager and allows a template to be directly specified.

If the file format is not supported, ERROR_FUCTION_NOT_SUPPORTED will be placed in the last error buffer.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL