Ed Leafe wrote:
> On Apr 24, 2007, at 9:57 AM, Paul McNett wrote:
>
>> I'll try to find some time today or tonight to see about getting this
>> separation working. I just don't have much experience binding to
>> anything other than bizobjs, so I had to futz around to figure out the
>> DataSource=self.Form without quotes (could have sworn it was
>> DataSource="form"). I think you should be able to do a:
>>
>> myObj = myClass()
>>
>> class MyForm(...)
>> def initProperties(self):
>> self.myObj = myObj
>> def afterInit(...)
>> dabo.ui.dTextBox(self, ..., DataSource=self.Form.myObj,...)
>
> If you already have a reference to the 'myObj', just set the
> DataSource to that:
>
> dabo.ui.dTextBox(self, ..., DataSource=myObj,...)
>
def afterInit(self):
pan = dabo.ui.dPanel(self)
dabo.ui.dTextBox(pan, Height=41, DataSource=myObj,
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/dabo/lib/eventMixin.py", line 98, in
raiseEvent
bindingFunction(event)
File "/usr/lib/python2.4/site-packages/dabo/ui/uiwx/dPemMixin.py", line
1090,
in __onUpdate
self.update()
File "/usr/lib/python2.4/site-packages/dabo/ui/dDataControlMixinBase.py",
line 106, in update
if self.Source and self._srcIsBizobj:
File "/usr/lib/python2.4/site-packages/dabo/ui/dDataControlMixinBase.py",
line 372, in _getSrc
if ds.lower() == "form":
AttributeError: 'myClass' object has no attribute 'lower'
Carl K
_______________________________________________
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]