{"id":158,"date":"2010-07-02T20:20:11","date_gmt":"2010-07-03T01:20:11","guid":{"rendered":"http:\/\/anvil-of-time.com\/?p=158"},"modified":"2021-03-08T19:58:11","modified_gmt":"2021-03-09T00:58:11","slug":"powerbuilder-gotcha-dddw-edit-type","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-dddw-edit-type\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; dddw Edit Type"},"content":{"rendered":"<p>Be careful when you change the columns in a datawindow object referenced in another datawindow object when using the DropDownDatawindow Edit Type.\u00a0 If you change the column name which is referenced in the DDDW Edit Type of another you won&#8217;t get a compile error when saving &#8211; but you will get runtime errors.\u00a0 This happened to me and I was only able to find it via a database trace.<\/p>\n<p>Something which helps in finding this type of error is to use an application transaction object (like the PFC n_tr) and put code in the sqlpreview event.\u00a0 This allows you to break in the event and check out the syntax to help in identifying the troublesome dw object.<\/p>\n\n\n<p>Updated March 2021<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Be careful when you change the columns in a datawindow object referenced in another datawindow object when using the DropDownDatawindow Edit Type.\u00a0 If you change the column name which is referenced in the DDDW Edit Type of another you won&#8217;t get a compile error when saving &#8211; but you will get runtime errors.\u00a0 This happened&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,10],"tags":[21,12,16],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/158"}],"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=158"}],"version-history":[{"count":8,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":1751,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/158\/revisions\/1751"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}