I've used the App wizard to generate a browser for a database of pumps.
I did not use the fieldspec to set relationships.  There are three
tables, pumps, curves and points.  Each pump can have several curves
associated with it, and the actual data points that make up each curve
are contained in the points table.

I would like to add the points browser page to the curves form, and have
it poulated with the points for whatever curve I select in the curve
browser.  The code to add the browser page looks like this:

class FrmPumpcurves(FrmBase):

        def initProperties(self):
                FrmPumpcurves.doDefault()
                self.NameBase = "frmPumpcurves"
                self.Caption = "Pumpcurves"
                self.SelectPageClass = PagSelectPumpcurves
                self.BrowseGridClass = GrdPumpcurves
                self.EditPageClass = PagEditPumpcurves
===>            self.BrowsePoints = GrdPumppoints


        def afterInit(self):
                FrmPumpcurves.doDefault()

                # Instantiate the bizobj:
                app = self.Application
                primaryBizobj = app.biz.Pumpcurves(app.dbConnection)
                
                # Register it with dForm:
                self.addBizobj(primaryBizobj)
                
                # The form now knows what it needs to create itself. Do
it!
                self.creation()
===>            self.PageFrame.appendPage(self.BrowsePoints,
caption="Browse Points",
        
imgKey="browse")

This works fine to add the broswer page, but I cannot figure out how to
populate it with the appropriate points once I select a curve.  Any
Ideas?

Robert C. Ramsdell III
Production Engineering Manager
Great Lakes Dredge & Dock Company
2122 York Road
Oakbrook, IL 60523
[EMAIL PROTECTED]
Phone: 630-574-3463
Mobile: 630-805-1776
Fax: 630-574-2909

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to