I would need some help on how to access the XDDOC in javascript using the Script Object. In one of the documents that I found, it said that the XDDOC can only be available when executed as an iFL.
What does it mean?
Can anyone provide me some examples that I can follow?
Thanks
CokeyThis message has been edited. Last edited by: Tamra,
iWay 5.5, 6.01 Windows all output (Excel, HTML, PDF)
September 08, 2014, 01:30 PM
cokeyng
never mind about the XDDOC. it is basically XDDocument. But is there a java documentation of the library?
iWay 5.5, 6.01 Windows all output (Excel, HTML, PDF)
September 11, 2014, 03:52 PM
cokeyng
I got the script object working by following an example in iIT user guide. But the javascript example is very limited.
iWay 5.5, 6.01 Windows all output (Excel, HTML, PDF)
September 15, 2014, 04:42 AM
Srii
What is your objective here? Which example have you been following?
XDDocument is iSM's internal document type.
- Srii
October 14, 2014, 01:40 PM
cokeyng
For those who are interested, here is what I wanted to do. There is a column in the database containing dynamic JSON objects. The object will contains pairs of keys and values. like {"city":"Red Deer, Count of ", "dueDate":"2010-10-10"}.
As you can see, this json object will fail if I pass it to the json2xml services as it is missing the root tag. The following is the script that wrote to convert the tag in json to xml and append it to the end of the DocOut.