Carl Karsten wrote:
> What I am looking for is separation of UI from the object that the UI
> operates
> on: MyProp1, 2, and .swap(). Can be thought of as a business object. I
> don't
> think we need to use a dabo BO class, but I could be wrong. I should be able
> to
> run the swap method without having the gui brought up.
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,...)
...and then as far as the update() call, just move that to the event
handler. But I don't know so I'll try to play around with it later today.
Paul
--
pkm ~ http://paulmcnett.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]