IMPORT XBRL command

Used to define ACL tables from Extensible Business Reporting Language (XBRL) data files.

Syntax

IMPORT XBRL TO table import_filename FROM source_filename
CONTEXT context_name <...n> [field_syntax] <...n> <IGNORE field_num> <...n>

 

field_syntax ::=
FIELD name type AT value DEC value WID value PIC value AS value

Parameters

TO table

Specifies the name of the ACL table to import the data into.

import_filename

Specifies the name of the ACL data file. The import_filename parameter must be specified as a quoted string with a .FIL file extension (e.g., "Invoices.FIL").

If you do not want to create the .FIL file in the same directory as the ACL project, you can specify an absolute or relative file path to an existing folder to write the .FIL file to.

For example: "C:\data\Invoices.FIL" or "data\Invoices.FIL"

FROM source_filename

Specifies the name of the source data file. This parameter must be specified as a quoted string.

If the source data file is not located in the same directory as the ACL project, you must use an absolute path (e.g., "C:\data\source_filename") or a relative path (e.g., "data\source_filename") to specify the file location.

CONTEXT context_name

Specifies the XBRL context to define the table from. If you specify more than one context, all contexts must be of the same type (instant, period, or forever).

FIELD name type

Specifies the name and data type of the field. For information on the values you can enter for the type parameter, see Identifiers for field data types.

AT value

Specifies the start position for the field in the data file.

DEC value

Specifies the number of decimals.

WID value

Specifies the length of the field in the ACL table layout.

PIC value

Specifies the format for date and numeric fields. For numeric fields the format specifies how the values should be displayed. For date fields, the format specifies how dates are stored and should be read from the data source.

AS value

Specifies the display label (alternate column title) for the field in the ACL view. The AS parameter is required when you are defining a field. If you want the display label to be the same as the field name, you can enter a blank value using the following syntax: AS "". Make sure there is no space between the two double quotation marks.

IGNORE field_num

Optional. Specifies that the field should not be included in the table layout. The field_num parameter specifies the position of the field in the source data. For example, IGNORE 5 excludes the fifth field in the source data from the ACL table layout.

Example

The following example imports data from the Current_AsOf context in an XBRL file to an ACL table called Financials.

IMPORT XBRL TO Financials "Financials.fil" FROM "FinancialStatemenXBRL.xml" 
CONTEXT "Current_AsOf" FIELD "Item" C AT 1 DEC 0 WID 57 PIC "" AS "" 
FIELD "Value" X AT 58 DEC 0 WID 7 PIC "" AS "" IGNORE 1 IGNORE 3 


(C) 2013 ACL Services Ltd. All Rights Reserved. | Send feedback