Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter EighteenDataView Integration (continued)

DataViewGetObject Function

Overview

The DataViewGetObject function returns the handle to a sheet within Data View Object (DVO) as referenced from a view window handle. This object can then be used to access various Data View functions.

Syntax/Parameters

Syntax

handle = DataViewGetObject ( handle hwView, [int index] );

Parameters

hwView

A handle specifying a window handle to a view. This can be retrieved by using the Edit Window functions.

index

An optional zero-based int specifying the sheet or tab index. If omitted, the sheet associated with the view handle is returned.

Return Value

Returns a handle to a Data View Object (DVO) or NULL_HANDLE on failure. Use the GetLastError function to retrieve error information. When processing has been completed, the script should use the CloseHandle function to discard the handle.

Remarks

DVO handles reference a sheet or tab within a collection of sheets that make up an overall view. Most functions at the Data View level access the entire group of sheets or work on abstract references to data. Each sheet will also employ a Data Sheet Object. Many views that employ a Data View as an underlying framework may have high-level functions that should be used in preference to mid-level Data View functions, such as this function.

The most common reasons the DataViewGetObject function could fail is the view handle is invalid or does not point to a window that employs Data View as the underlying class.

When a DVO handle is closed, any outstanding edit actions are completed and the window and frame is updated.

Related Functions

Platform Support

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