Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Did you try the below..

Try the resolveNode on $record instead of $data.

Thanks

Srini

Message was edited by: Srini Dhulipalla

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Did you try the below..

Try the resolveNode on $record instead of $data.

Thanks

Srini

Message was edited by: Srini Dhulipalla

Avatar

Level 2

Srini,

That did it! Thanks much for your fast response.