Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

XBRLAddUnit Function

Overview

The XBRLAdduntt function adds a unit record to the XBRL Model unit table.

Syntax/Parameters

Syntax

int = XBRLAddunit ( handle hXM, string properties[], [dword flags] );

Parameters

hXM

A handle to an XBRL Object obtained using the XBRLCreateObject function.

properties

A string list containing information about the concept to be added.

Return Value

Returns an int as the index of the record position for the added item or a formatted error code on failure. The last error message will contain additional textual information regarding the failure. Use the GetLastErrorMessage and GetLastError functions to retrieve error information.

Remarks

A unit can be added to the instance tables one by one using this function. The caller must create a keyed string array using the following key names:

  Key Name   Description/Comment  
           
  Control Information:      
    id   A required unique ID to reference the unit.  
  Measures:      
    measure_nn   Zero or mode well known measure codes. When used, the divide key names should not be provided or their fields empty.  
    measure   An optional key name to set one measure. Same as measure_01.  
  Divide:      
    divide_numerator   Top well known measure for a ratio. when used the denominator must be provided.  
    divide_denominator   Bottom well known measure for a ratio. when used the denominator must be provided.  

 

When adding measuress, the _nn designation is from _01 to _10 (max dimensions in the model).

At the completion of adding units, the model must be post processed using the XBRLPostProcess function to sort/resort the data for reference by other functions. The post process can be performed after all data has been added to the model.

Related Functions

Platform Support

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

Legato IDE, Legato Basic