Extracting and Importing XML Data Using a Document Form

Avatar

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoshDBoyle-DVzR
Level 3

13-11-2008

All



As the title suggests, I'm simply looking for the correct method by which to extract XML data from a Document Form and to import that data back. I am aware of the exportData and importData services available to me but have been unsuccessful in configuring them properly to get the data from the form.

Replies

Avatar

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Aditya_S_
Level 4

13-11-2008

Are you trying to extract to an xml variable type ?

Avatar

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoshDBoyle-DVzR
Level 3

13-11-2008

Yes but I can extract it to whatever is necessary so long as I can work with the XML.

Avatar

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Aditya_S_
Level 4

13-11-2008

Try extracting it as a document variable. If you want to reuse the data through XPATH, use a SetValue to set the document to xml.



/process_data/xml = /process_data/@document



If you want import the data back to a documentform, set the document to documentform/object/@document



/process_data/documentform/object/@document = /process_data/@document



This worked for me.

Avatar

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
JoshDBoyle-DVzR
Level 3

Likes

2 likes

Total Posts

94 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
JoshDBoyle-DVzR
Level 3

13-11-2008

Will this still work if my form's submission type is "PDF" or does it have to be "XDP"?

Avatar

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 4
Aditya_S_
Level 4

Like

1 like

Total Posts

315 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Aditya_S_
Level 4

13-11-2008

You can use a DocumentForm for a PDF or xfaForm for XDP. Choice is yours.

Avatar

13-11-2008

you would need to use the processFormSubmission. this takes in the document, which is inside the documentForm variable,set the other properties notable pdfToXdp = true

you should get the form data in xml format

let me know if you need any help on this, I have a process some where on my laptop

girish

mergeandfuse@gmail.com

Avatar

13-01-2009

Hello :



Have any default services in Workbanch that I cant design the process to invoke it? Thank you.