{"id":1276,"date":"2012-04-24T17:28:49","date_gmt":"2012-04-24T22:28:49","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=1276"},"modified":"2021-03-11T11:21:20","modified_gmt":"2021-03-11T16:21:20","slug":"powerbuilder-gotcha-enabled-property-on-controls","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-gotcha-enabled-property-on-controls\/","title":{"rendered":"PowerBuilder &#8216;Gotcha&#8217; &#8211; Enabled Property on Controls"},"content":{"rendered":"<p>I&#8217;m writing a generic datawindow processor service to look at the controls on any given datawindow. &nbsp;I&#8217;m using the Getobjectatpointer method to give me the name of the current control (dwo.Name can be used as well) but I can&#8217;t get anything for a single control. &nbsp;Hmmmm&#8230;.<\/p>\n<p>To make things more interesting it&#8217;s a PB generated computed column I&#8217;ve placed in the header of a sample datawindow; it shows the current date. &nbsp;All my other columns and objects, including other computed columns, work fine. &nbsp;Bug I&#8217;m thinking.<\/p>\n<p>So I post on the Sybase Community Forums for help. &nbsp;Thanks to&nbsp;Chris Pollach for the answer; the field&#8217;s Enabled property is set to False. &nbsp;Since it is not enabled it cannot have focus and you cannot select it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing a generic datawindow processor service to look at the controls on any given datawindow. &nbsp;I&#8217;m using the Getobjectatpointer method to give me the name of the current control (dwo.Name can be used as well) but I can&#8217;t get anything for a single control. &nbsp;Hmmmm&#8230;. To make things more interesting it&#8217;s a PB generated&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[12],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1276"}],"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=1276"}],"version-history":[{"count":2,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"predecessor-version":[{"id":2026,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1276\/revisions\/2026"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}