Legato
Legato

GoFiler Script Reference

 

Legato v 1.3n

Application v 5.16a

  

 

Chapter ElevenSGML Functions (continued)

11.17.8 Fact Functions

The following key name are use as list entries or as table columns:

  Key Name   Description/Comment  
           
  Fact Information:      
    position   The position in the fact array. (not part of data set)  
    fact_id   An optional ID to identify the fact.  
  Numeric Facts:    
    precision   For numeric values, the precision as represented as a decimal string.  
    decimals   For numeric values, the decimal precision as represented as a decimal string.  
    nil   Set to ‘true’ or ‘false’.  
  Concept:    
    element   Full qualified element name (QName).  
    prefix   Namespace prefix.  
    concept   Concept name (identifier portion of QName).  
  Dimensions:    
    context_id   Context ID reference associated with fact.  
    unit_id   Unit ID reference, if present.  
    language   Language, if provided.  
  Fact Data:      
    data   Fact data.  
    raw_data   Untranslated data. This only applies to iXBRL sourced material.  
  Fact Characteristics:      
    attributes   A hexadecimal version of flags associated with the entry.  
    transform   If iXBRL and the format attribute was used for the fact, this will contain the iXBRL transform code. Otherwise, it will be an empty string.  
  Post Process Context Data:      
    date_a   If instant period-type, the instant date. If duration period-type, the start date. If forever period type, a string as “forever”.  
    date_b   If duration period-type, the end date.  
    dimensional_flag   If the context contains dimensional information, this value will be set to “1”, otherwise “0”.  
  Post Process Concept Data:      
    concept_uri   The concepts URI namespace.  
    abstract   If abstract, set “1”, otherwise “0”. Facts should not be abstract.  
    nillable   If nillable set “1”, otherwise “0”.  
    period_type   Period-type as “instant” or “duration”. Note that forever is duration.  
    balance_type   Balance type, if set, “debit” or “credit”.  
    data_type   Data type for concept.  
    substitution_group  

The substitution group for the concept. This is one of the following:

xbrldt:dimensionItem

xbrldt:hypercubeItem

xbrli:item

xbrli:tuple

Or, empty on a incomplete or unmatched concept record.

 
  Position (not always set):      
    o_sy o_sx o_ey_o_ex   Decimal strings specifying the open tag file position.  
    d_sy d_sx d_ey_d_ex   Decimal strings specifying the fact data tag file position.  
    c_sy c_sx c_ey_c_ex   Decimal strings specifying the close tag file position.  

 

Note that the post process keys are only present if the XBRL instance data has been post processed with the XBRLPostProcess function. Concept information is only available if the taxonomy has been loaded, prior to post processing.

Attributes are as follows:

  Key Name   Bitwise   Description/Comment  
               
  iXBRL:          
    XM_FACT_HIDDEN   0x00010000   Fact was declared in the hidden area.  
    XM_FACT_TRANSFORMATION_ERROR   0x000000FF   A mask for the number of transformation errors in the fact. If this value is set, the data field cannot be relied upon as being correct.  
  General          
    XM_FACT_ERROR   0x10000000   There was an error with the fact.  

 

Functions