1. carlos efrain
  2. PowerBuilder
  3. Monday, 5 July 2021 16:31 PM UTC

Buenas tardes a todos.

 

Alguien tiene un ejemplo de como exportar un datawindow a xml

 

Muchas gracias

 

Att

Carlos

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 5 July 2021 17:15 PM UTC
  2. PowerBuilder
  3. # 1
integer dwcontrol.SaveAs ( { string filename, saveastype saveastype, boolean colheading { , encoding encoding } } )
saveAsType = XML!

saludos

Comment
  1. Alex Riofrio
  2. Monday, 5 July 2021 20:57 PM UTC
Hola Carlos;

Te comparto un script con el cual también puedes asignar un template y el tipo de metadata: XMLSchema!.



dw_1.Modify("DataWindow.Export.XML.UseTemplate = 't_report'")

dw_1.Modify("DataWindow.Export.XML.MetaDataType = XMLSchema!")

dw_1.Modify("DataWindow.Export.XML.SaveMetaData = MetaDataExternal!")

dw_1.SaveAs("c:\myxml.xml", XML!, false)



https://docs.appeon.com/pb2019/pbug/ch28s05.html



Saludos,

Alex
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 6 July 2021 06:36 AM UTC
Gracias Alex,

Mejor detalle !

saludos
  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.