1. Tina Ferguson
  2. PowerBuilder
  3. Friday, 21 April 2023 18:47 PM UTC

Hello, 

 

Working on migrating an application from PB21 - 32bit to PB22-32bit and we are having an issue with .Object.DataWindow.Data.XML ( and other XML processes ) working.  Have removed PBDom.pbd from library list and added PBDOM220.PBD.  Have also updated Visual C++ runtime 6.0.311.  

Compile as 32bit, added runtime and XML references runtime 'Runtime 22.0.0.1900'.

When we run the application with below coding in PB21 all works fine.  When we run coding in PB22 after migration, the ls_xml is empty string.

Here is the coding :

datastore.Object.DataWindow.Export.XML.UseTemplate = 't_template'
datastore.Object.DataWindow.Export.XML.MetaDataType = XMLNone!// XMLSchema!
datastore.Object.DataWindow.Export.XML.SaveMetaData =MetaDataInternal! // MetaDataExternal!
datastore.Object.DataWindow.Export.XML.IncludeWhitespace = "Yes" //"No"
ls_xml = datastore.Object.DataWindow.Data.XML

 

Any help someone could give would be greatly appreciated.

 

Thanks

Tina

Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Thursday, 27 April 2023 01:50 AM UTC
  2. PowerBuilder
  3. # 1
Hi Tina,

Please find the workaround below:
On Datawindow’s XML Template, add an XML Declaration, for example:
root (right menu) -> Insert Before -> XML Declaration
<?xml version="1.0" encoding="UTF-8" standalone="no"?>


Best Regards,
Peter
Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Sunday, 23 April 2023 05:30 AM UTC
  2. PowerBuilder
  3. # 2

Hi Tina,

 

This issue seems to be a bug.

Kindly please report this issue to our ticket system: https://www.appeon.com/standardsupport/newbug so that it can be properly received and tracked.

Please also provide a sample PB test case (with PBT / PBL) when you submit it to the ticket system.

 

Regards,

 

Comment
  1. Tina Ferguson
  2. Monday, 24 April 2023 13:51 PM UTC
Thanks Mark, is this bug for PB 2022 Build 1900 only or all of PB2022?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 24 April 2023 19:43 PM UTC
All of PB 2022
  1. Helpful
There are no comments made yet.
Tina Ferguson Accepted Answer Pending Moderation
  1. Tuesday, 25 April 2023 16:49 PM UTC
  2. PowerBuilder
  3. # 3

Thank you All! 

Submitted testing application to Appeon 'NewBug' page and Engineers have found the issue. 

Fix will be in the next release.

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.