Xfa.form.export xml into field

Avatar

Avatar
Validate 1
Level 1
buildmeup
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
buildmeup
Level 1

Likes

0 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
buildmeup
Level 1

19-11-2020

Hello i have a question about how to export xml into fields, because i cant find a way to do it, is it possible?

 

i know how to export our pdf into xml, by using 

xfa.host.exportData("", 0);

but how to export it on textfield, for example i have textField named with "xmlfield".

 

what should i do, ..xml.field.rawValue = ?? or xfa.host.exportData("..xmlfield", 0); its not working

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

167 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile

Avatar
Affirm 100
Employee
Kosta_Prokopiu1
Employee

Likes

167 likes

Total Posts

371 posts

Correct reply

107 solutions
Top badges earned
Affirm 100
Validate 1
Establish
Give Back 5
Give Back 3
View profile
Kosta_Prokopiu1
Employee

19-11-2020

I think what you want to do is the saveXML() function:

Kosta_Prokopiu1_0-1605799313066.png

Kosta_Prokopiu1_1-1605799361262.png

 

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

19-11-2020

Just use the saveXML() method.

 

Textfield.rawValue = xfa.data.saveXML("pretty");