Nate Lowrie wrote:
> Can I use a Biz Object without adding it to a form using
> Form.addBizobj()?  Furthermore, what is required as far as application
> setup is concerned?  I know I can add the connection file to the
> application, but am not sure if I need to run App.start() first or if
> I can do it after App.setup().. Is there a way to use the Dabo db and
> biz layers without declaring an Application?

In general, you want to have a dabo application instance no matter what. 
However, it should be possible to run your app without it if you really 
want to.

Yes, you can use a bizobj without adding it to a form.

Here's a rough idea of what you'd need:

{{{
import dabo
import myBizobjs

con = dabo.db.dConnection(connectInfoDict)
biz = myBizobjs.MyBizobj(con)
}}}

Now, just call methods of the bizobj to get what you want. Such as:

{{{
biz.UserSQL = "select * from customers"
biz.requery()
biz.last()
print biz.RowNumber, biz.RowCount
}}}

I think if you have no UI, you don't ever need nor want to call app.start().

-- 
pkm ~ http://paulmcnett.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]

Reply via email to