A breakthrough (I hope)!
Modified code as follows, on the assumption that I was effectively creating
a new attribute for the modal dialog.
# -*- coding: utf-8 -*-
import datetime
import os
import dabo.ui
from FrmReportBase import FrmReportBase
class FrmReport(FrmReportBase):
def initProperties(self):
app = self.Application
self.ReportName = "Membership Types Report"
self.super()
self.ReportForm = os.path.join(app.HomeDirectory,
"reports/membershipTypesRpt.rfxml")
def createBizobjs(self):
app = self.Application
conn = app.getConnectionByName("LodgeBooks")
membershiptypesRptBizobj = app.biz.MembershiptypesBizobj(conn)
self.myBizobj = membershiptypesRptBizobj
self.myBizobj.requery()
def addControls(self):
# add any controls for selection criteria
self.super()
def requery(self):
# pass any selection criteria here
self.DataSet = self.myBizobj.getDataSet()
I guess this works because while dDialog doesn't have an addBizobj method it
is smart enough to know what self.DataSet is once I have created a bizObj &
added a reference in the dialog to it (if that makes sense - its sounding a
bit confused to me).
Anyway, most importantly - it works!
Rodgy
>
> You can either change to use a Form like you suggested, or if you need
> true modality,
> keep using the dialog and save the attribute reference to the dialog, such
> as:
>
> def initProperties(self):
> self.mybiz = biz.Clients(...)
>
> and then when you need it:
>
> def onHit_blah(self, evt):
> self.mybiz.requery()
>
> Paul
_______________________________________________
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/8f7c93ebf6264d8f815cf8968ed7c...@roger