GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Twenty-one — EDGARView 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
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks 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.