Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6j

Application v 6.5c

  

 

Chapter ElevenSGML Functions (continued)

xBRL-CSV

11.21.17 Instance — Tables

See section on Section 11.21.13 Instance — xBRL-CSV for a summary description of operation.

Tables are part of an XBRL-CSV instance which reference the CSV file(s) which in turn contain the XBRL facts. An instance can have zero or more tables. They have the following properties:

Template Identifier — The name of the table template that defines the CSV data as XBRL data.

CSV File — URI Location of the

Flags — Options such as whether the CSV data is required.

Table Parameters — Additional information about the table instance.

When loaded or created, each table has a Section 8.6 Data Sheet representing the CSV table data.

When loaded, tables are indexed in a list which can be accessed by table name or by idnex.

The following key names are used as table list entries or as columns for multiple tables:

  Key Name   Description/Comment  
           
  Control Information:      
    resolved_url   The expected (loaded) location of the CSV file associated with the table entry.  
    data_sheet   ‘1’ or ‘0’ indicating if a Data Sheet Object is associated with the entry.  
    entry_flags   A hexadecimal value specifying control information about the table entry. See below.  
  Basic Data:      
    name   Table identifier as specified in the meta data.  
  Properties:      
    url   Location as specified in the meta data.  
    template   Template data as specified in the meta data.  
    optional_data   Optional flag as specified in the meta data.  
    parameters   Additional parameters as specified in the meta data.  
  Stats:    
    rows   If a Data Sheet Object has been loaded, the total number of rows including the columns names.  
    cols   If a Data Sheet Object has been loaded, the total number of columns.  

The entry_flags are defined as follows:

Control

XM_TE_MANAGED_DATA_SHEET    0x00000010   Data Sheet is Model's Pointer

XM_TE_TABLE_OBJECT          0x00000020   Table Object Added

Errors

XM_TE_ERROR_MASK            0xFFFF0000   Record Had an Error/Mask

XM_TE_ERROR_URL_REQUIRED    0x00010000   URL is Missing

XM_TE_ERROR_URL_PATH_ERROR  0x00020000   Path Had an Error

XM_TE_ERROR_LOADING_CSV     0x00040000   Error Loading CSV

Functions

Platform Support

Page revised 2026-07-20