On Sep 1, 2007, at 5:30 PM, dw wrote:
> There is a self.requery() in the afterInitAll(self) method. I still
> get the error
> even if I add a fotoinfBizobj.requery() at the end of the class
> FotoinfBizobj(dabo.biz.dBizobj) definition. Unless the SQL Builder
> generates
> its own self.requery(), the UserSQL and SQL Builder methods in my
> code are
> using the same requery() .
What I meant was that if the requery for the UserSQL-defined bizobj
must happen *before* anything tries to reference the aliased fields.
If an attempt is made to reference the fields before they exist, you
will get the error you reported.
Try this: add a debugging line to dBizobj.requery():
788 # run the requery
789 uiException = None
790 cursor = self._CurrentCursor
791 try:
792 cursor.requery(params)
print "REQUERY", self.DataSource
793
794 except dException.ConnectionLostException, e:
Run your code again, and verify that the requery is actually being run.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.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]