HCL
Skip to main content  
 
   


SPRTechnote


@GetDocField Returns "Invalid Formula Format: Bad Number of Arguments" if Entered in Large Formula

Technote Number: 1085681


Problem:
This issue was reported to Lotus Quality Engineering and was fixed in Notes
4.6.7a Client.

Excerpt from the Lotus Notes and Domino Release 4.6.7a MU fix list (available
at http://www.notes.net):

Design - Formulas
SPR# DKAZ4H8REC - Fix a problem which caused @GetDocField to produce the error
message, "Invalid formula format: bad number of arguments," when placed in a
large formula expression. This regression was introduced in 4.6.7.
Supporting Information:

Examples:

This formula works fine:

Field x := @GetDocField( @Text( $Ref); "SomeField");


This formula results in the "Invalid formula format: Bad number of arguments."
error :

Field x := @Left( "SomeString"; @GetDocField( @Text( $Ref); "SomeField"));
Related Documents:

From the Notes help:

@GetDocField

Given the unique ID of a document, returns the contents of a specific field on
that document. The document must reside in the current database.
Syntax
@GetDocField( documentUNID ; fieldName )
Parameters
documentUNID
Text. The unique ID of a document.
fieldName
Text. The name of a field on the document, enclosed in quotation marks. If you
store the field name in a variable, omit the quotation marks here.
Return value
fieldValue
Text or text list; number or number list; time-date or time-date range. The
contents of the field on the specified document.
Usage
This function does not work in column or selection formulas.
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact