Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
EricES
Level 1

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile

Avatar
Validate 1
Level 1
EricES
Level 1

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile
EricES
Level 1

27-03-2012

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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 9
Srini_Dhulipall
Level 9

Likes

177 likes

Total Posts

1,397 posts

Correct Reply

255 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 9
Srini_Dhulipall
Level 9

Likes

177 likes

Total Posts

1,397 posts

Correct Reply

255 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 25
View profile
Srini_Dhulipall
Level 9

27-03-2012

Did you try the below..

Try the resolveNode on $record instead of $data.

Thanks

Srini

Message was edited by: Srini Dhulipalla

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
EricES
Level 1

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile

Avatar
Validate 1
Level 1
EricES
Level 1

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile
EricES
Level 1

28-03-2012

Srini,

That did it! Thanks much for your fast response.