> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Ed Leafe
>
> In your first message in this thread you have the line:
>
> self.EditPageClass = PagEditPumpcurves
>
> That means that when an edit page is added, it will be of
> that class.
> You easily change that by changing the line that adds the page; an
> option in the append() function is to specify the page class to use.
> So your line would look like:
>
> self.PageFrame.appendPage(self.BrowsePoints, pgCls=PagEditPumppoints,
> caption="Browse Points", imgKey="browse")
>
AHA! It is all in the order you do things. My code now looks like
this:
class FrmPumpcurves(FrmBase):
def initProperties(self):
...
def afterInit(self):
...
# The form now knows what it needs to create itself. Do
it!
self.creation()
#Setup the relationship to the points table
app = self.Application
self.pointsBizobj = app.biz.Pumppoints(app.dbConnection)
primaryBizobj.addChild(self.pointsBizobj)
self.pointsBizobj.LinkField = "curve_id"
self.pointsBizobj.ParentLinkField = "curve_id"
self.PageFrame.appendPage(GrdPumppoints, caption="Browse
Points", imgKey="browse")
By adding the child bizobj after self.creation(), the app does not
automagically generate the edit page. I can then add whatever pages I
want. Now on to populating the grid, per yopur earlier email.
Thanks.
Robert
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users