{"id":124,"date":"2010-06-30T20:20:04","date_gmt":"2010-07-01T01:20:04","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=124"},"modified":"2021-03-08T19:51:41","modified_gmt":"2021-03-09T00:51:41","slug":"powerbuilder-gotcha-datawindow-xml","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-datawindow-xml\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; Datawindow XML"},"content":{"rendered":"<p>A feature was added to the datawindow as of version 9 which allows you to save the data as XML (you have to define an export template).<\/p>\n<p>The syntax is:<\/p>\n<p>ls_xml_data_set = dw_1.object.datawindow.data.xml<\/p>\n<p>However, if you have a large string column in the datawindow&nbsp; &#8211; something like a CHAR(32000) &#8211; and it contains a lot of data, your xml element for this will be blank.&nbsp; As a test try exporting a large datawindow definition to a text file and then copy \/ paste it to the column in your xml datawindow and then save it.&nbsp;&nbsp; Check the database to see that the data was saved.&nbsp; Retrieve the data into the datawindow and then grab the xml as above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A feature was added to the datawindow as of version 9 which allows you to save the data as XML (you have to define an export template). The syntax is: ls_xml_data_set = dw_1.object.datawindow.data.xml However, if you have a large string column in the datawindow&nbsp; &#8211; something like a CHAR(32000) &#8211; and it contains a lot&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[21,12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/124"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=124"}],"version-history":[{"count":7,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":1747,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/124\/revisions\/1747"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}