Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ElevenSGML Functions (continued)

XBRLLoadInstance Function

Overview

The XBRLLoadInstance function loads an instance from XBRL or iXBRL and returns a handle to an XBRL Object.

Syntax/Parameters

Syntax

handle = XBRLLoadInstance ( string filename, [dword mode], [handle hLog] );

handle = XBRLLoadInstance ( handle hObject, [handle hLog] );

Parameters

filename

A string to a qualified path and filename. Or,

hObject

A handle to an SGML, Edit or Mapped Text Object.

mode

An optional dword specifying file open options. These match the OpenMappedTextFile options. this parameter only applies to opening with a filename.

hLog

A handle to an optional Log Object.

Return Value

Returns a handle to an XBRL Object 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 

The function will load the specified only from iXBRL or XBRL (XML). [JSON or CSV XBRL]. If does not load the taxonomy nor perform any post processing or indexing.

Instance data can be supplemented using the XBRLAddInstance function.

If a log handle is provided, any load errors will be logged in the object. Note, that function does not perform extensive testing of the incoming data but will report coding issues that impact the quality of the loaded instance.

Related Functions

Platform Support

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

Legato IDE, Legato Basic