On Tuesday 26 June 2007 09:33, Ed Leafe wrote:
> dabo Commit
> Revision 3212
> Date: 2007-06-26 09:33:27 -0700 (Tue, 26 Jun 2007)
> Author: Ed
> Trac: http://svn.dabodev.com/trac/dabo/changeset/3212
>
> Changed:
> U   trunk/dabo/db/dCursorMixin.py
>
> Log:
> Added the _syncAuxProperties() method to ensure that the AuxCursor has the
> same property settings as its main cursor.
>
Ed, 
I think it is best if we review what is happening on my form because (even 
with this update) I'm still not working.  Therefore, I'm starting to wonder 
if has something to do with my code.

In my bizobj def I have:
self.NonUpdateFields=["pkid","luspecies"]
self.ParentLinkField ="pkid"
self.LinkField ="fk_agpopord"
self.FillLinkFromParent = True
                
self.addJoin('public.agspecies','public.agspecies.pkid=public.agpoptrs.fk_species')
self.addField("public.agspecies.species as luspecies")

Note "luspecies" does not exist in the underlying table.  I am adding the 
field in the "join".

This bizobj is used for a grid.  I add records to the grid using 
self.bizobj.new()

I then used several lookup textbox classes (that access other tables) to 
acquire the data for the bizobj fields.  BTW many of 'GET' s you see in the 
debug output are a result of the lookups.  

Lastly I use saveAll() to save the data for the bizobj.  I then get the error 
that "luspecies" does not exist in the associated Table from the insert (dabo  
is reporting the error).   

It is true that "luspecies" does not exist but because of thesetting of 
NonUpdateFields I have assumed that Dabo would not attempt to use the field 
for inserts or updates.

I hope this helps.

-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to