Legato
Legato

GoFiler Script Reference

 

Legato v 1.3r

Application v 5.17b

  

 

Chapter ElevenSGML Functions (continued)

XBRLGetBaseTaxonomy Function

Overview

The XBRLGetBaseTaxonomy function returns a table of linkbases discovered during the XBRL or Taxonomy load process.

Syntax/Parameters

Syntax

dword = XBRLGetBaseTaxonomy ( handle hXM );

Parameters

hXM

A handle to an XBRL Object.

Return Value

Returns a dword containing a taxonomy code based or a formatted error code on failure.

Remarks

This function reviews the loaded schema names and determines the taxonomy based on a well known list of keywords. The primary taxonomy is searched first since some taxonomies incorporate US-GAAP.

This function requires the taxonomy to be loaded. An instance does not have to be loaded.

Return codes are group by taxonomy group and version. Most taxonomy versions are based on the year which is the lower 16 bits of the returned value. Taxonomy flags are as follows: 

  Name   Bitwise   Description/Comment  
  Bit Formatting        
    XM_BT_UNKNOWN   0x0000000   Not Known  
    XM_BT_FAMILY_MASK   0x3F00000   Family Mask  
    XM_BT_VERSION_MASK   0x00FF000   Version/Variation Mask  
    XM_BT_YEAR_MASK   0x0000FFF   Taxonomy Year Mask  
  CEF          
    XM_BT_CEF   0x0200000   CEF Group  
  Years          
    XM_BT_CEF_2021   (XM_BT_CEF | 2021)   CEF 2021  
    XM_BT_CEF_2022   (XM_BT_CEF | 2022)   CEF 2022  
  FERC          
    XM_BT_FERC   0x0400000   FERC Group  
  Form Variation        
    XM_BT_FERC_FORM_1   0x0001000   Form 1 Group  
    XM_BT_FERC_FORM_2   0x0002000   Form 2 Group  
    XM_BT_FERC_FORM_6   0x0003000   Form 6 Group  
    XM_BT_FERC_FORM_60   0x0004000   Form 60 Group  
    XM_BT_FERC_FORM_714   0x0005000   Form 714 Group  
  Years          
    XM_BT_FERC_2020   (XM_BT_FERC | 2020)   FERC 2020  
    XM_BT_FERC_2021   (XM_BT_FERC | 2021)   FERC 2021  
  IFRS          
    XM_BT_IFRS   0x0600000   IFRS Group  
  Years          
    XM_BT_IFRS_2016   (XM_BT_IFRS | 2016)   IFRS 2016  
    XM_BT_IFRS_2017   (XM_BT_IFRS | 2017)   IFRS 2017  
    XM_BT_IFRS_2018   (XM_BT_IFRS | 2018)   IFRS 2018  
    XM_BT_IFRS_2019   (XM_BT_IFRS | 2019)   IFRS 2019  
    XM_BT_IFRS_2020   (XM_BT_IFRS | 2020)   IFRS 2020  
    XM_BT_IFRS_2021   (XM_BT_IFRS | 2021)   IFRS 2021  
    XM_BT_IFRS_2022   (XM_BT_IFRS | 2022)   IFRS 2022  
  Risk Return          
    XM_BT_RR   0x0800000   Risk Return Group  
  Years          
    XM_BT_RR_2006   (XM_BT_RR | 2006)   Risk Return 2006  
    XM_BT_RR_2008   (XM_BT_RR | 2008)   Risk Return 2008  
    XM_BT_RR_2010   (XM_BT_RR | 2010)   Risk Return 2010  
    XM_BT_RR_2012   (XM_BT_RR | 2012)   Risk Return 2012  
    XM_BT_RR_2018   (XM_BT_RR | 2018)   Risk Return 2018  
    XM_BT_RR_2021   (XM_BT_RR | 2021)   Risk Return 2021  
    XM_BT_RR_2022   (XM_BT_RR | 2022)   Risk Return 2022  
  SASB          
    XM_BT_SASB   0x0C00000   SASB Group  
  Years          
    XM_BT_SASB_2021   (XM_BT_SASB | 2021)   SASB 2021  
  US-GAAP          
    XM_BT_UGT   0x0E00000   US-GAAP Group  
    XM_BT_UGT_2009   (XM_BT_UGT | 2009)   US-GAAP 2009  
  Years          
    XM_BT_UGT_2010   (XM_BT_UGT | 2010)   US-GAAP 2010  
    XM_BT_UGT_2011   (XM_BT_UGT | 2011)   US-GAAP 2011  
    XM_BT_UGT_2012   (XM_BT_UGT | 2012)   US-GAAP 2012  
    XM_BT_UGT_2013   (XM_BT_UGT | 2013)   US-GAAP 2013  
    XM_BT_UGT_2014   (XM_BT_UGT | 2014)   US-GAAP 2014  
    XM_BT_UGT_2015   (XM_BT_UGT | 2015)   US-GAAP 2015  
    XM_BT_UGT_2016   (XM_BT_UGT | 2016)   US-GAAP 2016  
    XM_BT_UGT_2017   (XM_BT_UGT | 2017)   US-GAAP 2017  
    XM_BT_UGT_2018   (XM_BT_UGT | 2018)   US-GAAP 2018  
    XM_BT_UGT_2019   (XM_BT_UGT | 2019)   US-GAAP 2019  
    XM_BT_UGT_2020   (XM_BT_UGT | 2020)   US-GAAP 2020  
    XM_BT_UGT_2021   (XM_BT_UGT | 2021)   US-GAAP 2021  
    XM_BT_UGT_2022   (XM_BT_UGT | 2022)   US-GAAP 2022  

 

Related Functions

Platform Support

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

Legato IDE, Legato Basic