Hello,
With Powerbuilder 2022, we are unable to save any datawindow object with 'XML' as template in 'Data Export' tab of datawindow object properties. Once saved, closed and opened again, the 'Format to Configure' property is changed to 'PDF'.
In the below screenshot, we have saved the 'Format to Configure' as 'XML' and assigned template.
On closing and re-opening the object, 'Format to Configure' is set back to 'PDF'.
When we run below code in PB22, the ls_xml is returning empty.
string ls_xml
dw1.Modify("DataWindow.Export.XML.UseTemplate = 't_report'")
dw1.Modify("DataWindow.Export.XML.SaveMetaData = MetaDataInternal!")
dw1.Modify("DataWindow.Export.XML.MetaDataType = XMLSchema!")
ls_xml = dw1.Object.DataWindow.Data.XML
Is there any workaround for this issue? This is affecting our release date as we cannot deliver the software without this functionality.