>> Another query in this regard -- How do I get all the records from 'dist'

>> table? (without getting filtered by statid=somevalue?)

The second way is to provide Dabo with all the information it needs to create 
a bizobj that matches the data structure of the table in question and handle 
all the methods required to save, update, delete, read.  see below to see how 
to execute the save,update, etc..
============================
Here do you mean to say that -
"do not define any FK relation in bizoj; and handle all the DML stuff 
externally" ?
============================

And the last way (might work depending on what you need to do with the data 
set).  Just create a dynamic data set by using a direct sql statement.
The steps are:
#get a cursor to hold the data
self.biztmp = dabo.biz.dBizobj(self.conn)
# get a temp cursor to work with where self.conn is the connection to the 
database
self.tmpbiz = self.biztmp.getTempCursor()
# you can execute any sql statement next including joins etc..
self.tmpbiz.execute("Select * from dist")  
myDataSet = self.tmpbiz.getDataSet()
myDataSet now contain all the records retrieve from the table dist

============================
This looks like the thing I was looking for.
In my web-form, for displaying the entire contents from 'dist' table, I can use 
a tmpCursor.
When a user selects a particular 'dist' record for making changes, filter will 
be set to the concerned 'statid' in 'distBizObj'.
The CRUD form will make changes in 'distBizObj' (which can take care of the 
CRUD operations).

Is this approach correct?
Pl. tell me if anything is fishy in it?
============================

Thanks,
Vineet


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---
_______________________________________________
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