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?