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

xfa.form som expression xfa[0].form[1]

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

08-09-2008

I have produced a form that uses web services for submission. One of the values in the submission is the field.somExpression, I need this so the response can update parts of the form. My problem is that generally the field.somExpression returns a string starting "xfa[0].form[0]..." in which case everything works fine but there are times when field.somExpression returns a string starting "xfa[0].form[1]...". This is returned in the web service response and the form tries to update the field to reflect the server processing, but fails to find any field starting "xfa[0].form[1]...".



Can anyone explain why I would be having two form dom's? and then why only sometimes?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

08-09-2008

The [1] is the occurance number of that node. I do not know why you would have 2 form nodes. Can you create a large field on the form (make it multi-line) and dump the data dom into the field. This is a debugging step to see what is in the data dom. To do this use fieldname.rawValue = xfa.datasets.data.saveXML("pretty");



Maybe there is a clue in the data?