Op Wednesday 19 December 2007, schreef Uwe Grauer:
> Dennis Meulensteen wrote:
> > But how on earth do I create a button that calls a BuzObj's SetWhere
> > method? Dabo keeps telling me there's no such global object whenever I
> > call the BusObj by name. Whatever I prefix it with doesn't seem to help
> > either, I've tried self.Form and such, but no luck.
>
> # onHit method for your button
>     def onHit_btnRefresh(self, evt):
>         self.Form.requerybysearch()
>
> # requerybysearch() of your form
>     def requerybysearch(self):
>         myBizobj = self.getBizobj(dataSource="PERSON")
>         myBizobj.setWhereClause("")
>         self.refresh()
>
> Uwe

Thanks Uwe,
I needed a Self.requery() after this, but it is now working like a charm!

Regards,
Dennis


_______________________________________________
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]

Reply via email to