XML Import woes
- How-to
- Roland Smith
- PowerBuilder
- Thursday, 11 July 2019 01:47 PM UTC
I have a process where data is exported from a datawindow and then another app with the same datawindow imports the data. There are two apps communicating with each other over the network.
Using ExportJson & ImportJson methods in PB 2017 or 2019 this works great.
I wanted to do the same in a PB 12.x version using the XML format but I am getting errors.
App 1 gets the data into a string:
ls_data = this.Object.DataWindow.Data.XML
App 2 receives the data and does an ImportString:
ll_result = dw_employees.ImportString(ls_data, XML!)
---------------------------
DataWindow Error
---------------------------
Item '' does not pass the validation test.
---------------------------
OK
---------------------------
I tried saving a default XML import template but that had no effect.
What is the secret to importing XML?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.