Hello,

my bizobj looks like this:

class BizAusg(dabo.biz.dBizobj):
  def initProperties(self):
     self.DataSource = "ausgaben"
     self.KeyField = "ausg_id"
     self.SQL = """SELECT ausg_id, orig_betrag, aufschlag, waehrung, faktor, 
                            euro_betrag, artikel, firma, kauf_typ, ausg_datum, 
                            abrech_datum, bemerk FROM ausgaben 
                            WHERE abrech_datum IS NULL or abrech_datum > ?
                            ORDER BY ausg_datum, artikel
                       """
    self.DefaultValues = {"ausg_datum": datetime.date.today()}

In "beforeRequery()" I supply a value for the parameter:

def beforeRequery(self):
    self.PrimaryBizobj.setParams(self.startdatum)
                
self.startdatum is set in the initProperties() method of the form. 

But if I run my application I get this:

Incorrect number of bindings supplied. The current statement uses 0, and there 
are 1 supplied.
SQL: select *
  from ausgaben
 limit 1000

Why is this statement used, when I explicitly set self.SQL?
 
Database system is SQLite.

Thank you,
Sibylle

-- 
Dr. Sibylle Koczian


_______________________________________________
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/[EMAIL PROTECTED]

Reply via email to