On Apr 19, 2007, at 8:47 PM, Carl Karsten wrote:
> Those all seem to bind to self.something, which I don't think helps
> with the
> cdxml. maybe Demo needs a cdxml example, with a very basic (like 1
> label one
> textbox) cdxml and show how to bind controls in it to some other
> object.
Give the control a RegID, and then bind to 'self.Form.theRegID'.
Dabo Referencing 101.
> def _getHost(self):
> return self.Host
>
> def _setHost(self, val):
> self.Host=val
>
> Host = property(_getHost, _setHost, None,
> _("""Hostname of sql database server"""))
This won't work! The getter is returning the property, which would
call its getter, which ... infinite loop! Also, once you call the
setter, 'Host' is no longer a property, since you've replaced it with
the passed val.
Check out the bottom of http://dabodev.com/wiki/CodingGuidelines for
an example of a basic property.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]