on 01-13-2010 12:21 PM
Hello All,
I need to change "data" the Root Element default name to another name.
Is this possible? How do i do this?
Thank you all in advance,
Eran
JavaScript: var string = xfa.data.saveXML();
//replace here
//send here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Otto,
You Earned the points with respect!!!
var string = xfa.data.saveXML();
//replace here
string = string.replace(/data/gi, "My string for the ROOT ELEMENT"); //this will replace all the accurences of data DATA Data etc...
//update the dataset XML here
xfa.datasets.data.loadXML(string,1,1);
Best Regards,
Eran
Well, show me the code.
You first get the xml, where element . Next you send. You send manually from the script and send the XML string. I can´t see any problem, I have done this before.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I propose is not connected with SAP or ABAP. Just check the JavaScript reference, there is some getXML() or something - function you use to "capture" all the data in your fields in the hierarchy which source is the XML hierarchy of the form. The result of the function is a string with XML representation of the form data. This string starts with this <data> which you can change manually and then submit this string to the WS.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you need to send the XML to the XI from your form, you can get the XML first (scripting) and change the root element name in this XML as a string replace (scripting). Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chintan and Otto,
thank you for your replies...
Chintan: There is Adobe livecycle designer CE and its a stand alone application :[ designer CE2|http://www.adobe.com/products/livecycle/]
Otto: I know i can send the xml back and change it in my abap program but i'm talking about stand alone form in a computer with no sap on it.
The user will fill it and submit it ...
Thank you all in advance,
Eran
Why do you need to do that? Maybe your requirement can be solved some other way. Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Otto,
The XI team will get the XML
They need to know what is the XML structure for further processing.
They cannot tell the difference between two XML files if the ROOT ELEMENT is the same...
In adobe livecycle CE there is a way to change the data ( ROOT ELEMENT) to another name...
Thanks again,
Eran
Edited by: Eran Fox on Jan 14, 2010 7:40 AM
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.