- Amulya Kashyap
- PowerBuilder
- Wednesday, 7 June 2023 12:47 PM UTC
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.
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.