![]() ![]() |
GoFiler Script Reference
Legato v 1.2s Application v 5.6c
|
Table of Contents | < < Previous | Next >> |
Chapter Twenty-three — XBRL Functions (continued)
XBRLGetFactsByContext Function
Overview
The XBRLGetFactsByContext function returns all the facts for a specific context.
Syntax/Parameters
Syntax
string[] = XBRLGetFactsByContext ( handle hXBRL, string context );
Parameters
hXBRL
A handle containing the reference to an XBRL Object.
context
A string specifying the context for the facts.
Return Value
A string array containing each raw fact or an empty set on error. Use the GetLastError function to retrieve a formatted error code or IsError / IsNotError to determine if an error occurred.
The ERROR_EOD (0x81000000) contains three variations to differentiate between errors:
2 — Context not found.
The ERROR_NONE_MASK can be ANDed to the value to determine which error occurred.
Remarks
An empty string entry indicates a “nil” fact.
The facts may be arbitrarily ordered. Use the XBRLGetElementsByContext function to match the context IDs.
Certain fact types such as text can be very large (up to 2MB).
Related Functions
Platform Support
GoFiler Complete, GoFiler Corporate, GoXBRL
Table of Contents | < < Previous | Next >> |
© 2007-2018 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. GoFiler is a trademark of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.