Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

XBRLGetReferences Function

Overview

The XBRLGetReferences function returns actual reference items present in the instance/taxonomy.

Syntax/Parameters

Syntax

string[][] = XBRLGetReferences ( handle hXM, [string concept] );

Parameters

hXM

A handle to an XBRL Object containing instance information.

concept

An optional string containing a concept name to filter the list by.

Return Value

Returns a string table of the reference locators or an empty array on failure. Use the GetLastError function to retrieve a formatted error code.

Remarks

Reference items are center point to the reference data. The records as loaded from the taxonomy are not directly associated with concepts. After post processing, the locators and arcs are resolved and the concept name and position are added to the record.

The data list is sorted by concept name on post process, otherwise the records are in the order loaded. The concept parameter can only be used if the model has been post processed using the XBRLPostProcess function.

Reference data is the information attached to the reference item by f_data_index data item.

The column key names are as follows: 

  Key Name   Description/Comment  
           
  Item Record:      
    concept   Related concept name. If the model has not been post processed, this value will be an empty string.  
    concept_pos   A decimal string value that specifies the record position in the concept list. This can be used for fast access to concept properties.  
    label   The identifier for the reference item to one or more the reference arcs. This is the value the “to” points to in the arc.  
    role   Optional role definition for the reference item. These can be the roles defined in the XBRL 2.1 specification or defined by the author.  
    title   Optional title of reference.  
    type   Type of reference.  
    language   Optional language,  
  Control      
    f_data_index   A zero-based index to the first reference data item.  
    s_dx†   Source file DTS index. String is “-1” if not from the DTS.  
    s_lx†   Source file linkbase index. String is “-1” if not from the Linkbase List.  
    o_sx†   Zero-based X position in source file.  
    o_sy†   Zero-based Y position in source file.  
    ref_cnt   Number of arc references.  
    ri_flags   A string as a hexadecimal value for the status of the entry.  

 

† This value is not presented in terse mode.  

If there is more than one reference link, there will be null records that delineate the break points in the list between reference links. the ri_flags column will have the XM_REFERENCE_NULL_RECORD bit set.†

The value of f_data_index key points to the first reference data item,.

Related Functions

Platform Support

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

Legato IDE, Legato Basic