Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDGARResponseGetMessages Function

Overview

The EDGARResponseGetMessages function returns a table containing all the parsed error and warning messages contained in the response message.

Syntax/Parameters

Syntax

string [][] = EDGARResponseGetMessages ( string data | handle hMessage );

Parameters

data

A string containing the response message. Or,

hMessage

A handle to a Response Message Object.

Return Value

A string table containing the messages returned in the response message or an empty list on failure. Use the GetLastError function to retrieve a formatted error code.

Note that if there are no messages in the response message (i.e., it was accepted), the table will be empty and last error code will be ERROR_EOD.

Remarks

Data returned in the table is formatted by a row for each class and a column for each item data. The columns have the following key names:

  Key Name   Description
  TypeBits   Raw message type code in hexadecimal.
  Level   The string ‘Error’, ‘Warning’ or ‘Unknown’.
  Type   The string ‘EDGAR’, ‘XBRL’ or ‘Unknown’.
  EnhancedMessage   If an enhanced message is available from the knowledge, a value will be present. This message is not from the SEC EDGAR System.
  EDGARCode   EDGAR system code such as ‘INVALID_INLINE_TAG’.
  Message   Unprocessed EDGAR message (line returns removed).
  Element   If the XBRL, XML or HTML element can be discerned, the offending element name.
  LineNumber   If provided, the line number of the error in the source file. Note that most response messages contain line number 0 or -1.

 

Type bits are as follows:

                                                /*  * Type                         */
#define EM_LIST_TYPE_MASK       0xF0000000      /* Type Mask                       */
#define EM_LIST_NULL            0x00000000      /* Undefined Type (EOL)            */
#define EM_LIST_WARNING         0x10000000      /* Warning Message                 */
#define EM_LIST_ERROR           0x20000000      /* Error Message                   */
                                                /*  * Source                       */
#define EM_LIST_SOURCE_MASK     0x0000000F      /* Source Mask                     */
#define EM_LIST_EDGAR_XML       0x00000001      /* EDGAR XML Error Message         */
#define EM_LIST_XBRL            0x00000002      /* XBRL Message                    */

 

Related Functions

Platform Support

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

Legato IDE