Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter Twenty-oneEDGARView Integration (continued)

EDGARValidateFilename Function

Overview

The EDGARValidateFilename function validates a string as complying with EDGAR filename requirements.

Syntax/Parameters

Syntax

int = EDGARValidateFilename ( string data, [int loose] );

Parameters

data

A string containing the target data to test.

loose

An optional int indicating whether to perform loose name checking. The default is FALSE, or strict.

Return Value

An int as ERROR_NONE (0) or a formatted error code on failure. Use the GetLastErrorMessage function to get a text version of the error.

Remarks

If the data parameter can contain a path, it is stripped off for the test. By default, the test is performed using strict rules (contrary to the EDGAR Filer Manual) since the EDGAR HTML acceptance testing does not allow for the specified range of characters. However, files can be named within a project by the loose naming convention.

When retrieving error details, the text portion of the error message will contain specifics such as:

‘cannot contain character '#' (Character Code 35)’

‘must start with a lower case letter’

‘cannot contain character ' ' (Character Code 32)’

‘must have a 'htm', 'txt', 'pdf', 'xml', 'jpg', 'gif', 'fil', or 'xsd' extension’

‘must be 32 characters or less’

‘can only contain one dash’

‘can only contain one underbar’

‘must start with a lower case letter’

‘can only contain one period including extension’

The validation is performed according to the older, more strict, EDGAR standard. While the later standard is accepted by part of the system, HTML files cannot reference the new filenames.

Related Functions

Platform Support

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

Legato IDE