Skip navigation
EricES
Currently Being Moderated

"Argument mismatch in property or function argument" on nodes.length

Mar 27, 2012 5:28 PM

Tags: #adobe #script #javascript #livecycle #designer #livecycle_designer_es

Hi,

 

However I try to get the length on the nodes property, I always get this error:

 

  "Argument mismatch in property or function argument"

 

It happens regardless of which level of the DOM/SOM I try at, even though I can resolve nodes, get values, etc.

 

An example that would throw the error:

 

    var objDataGroup = xfa.resolveNode("$data"); 

    xfa.host.messageBox (objDataGroup.nodes.length);

    

What am I doing wrong?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Mar 27, 2012 8:35 PM   in reply to EricES

    Did you try the below..

    Try the resolveNode on $record instead of $data.

    var objDataGroup = xfa.resolveNode("$record");

    xfa.host.messageBox("" + objDataGroup.nodes.length);

     

    Thanks

    Srini

     

    Message was edited by: Srini Dhulipalla

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points