Hi,
My forms all open with empty data.  I allow the user to select a value (such 
as a customer number) to retrieve the data.  To set the correct value to 
retrieve for a requery I use the bizobj.setWhereClause method.  I set the 
primary key for the bizobj and then do a bizobj.requery or a form.requery.  

This is where the framework will report a traceback.  The python type is None 
for the field in question because somewhere in the framework the python type 
is lost (or maybe it was never retrieved in the current version).

This was not the case in the past.  My fix in the past was to force the 
framework to retrieve the datatype for the field.  Ed suggested that it was 
the wrong thing to do - accept his fix does not work for my situation.  Ed's 
solution may work if the data structure is set or if the query is made without 
re-sitting the where clause.  

If memory serves - the recent changes were made to improve general performance 
and a couple edge cases.

So the question is should Dabo require the data structure? I assume that will 
fix my issues.  Paul has stated he always defines the data structure of his 
bizobjs.  The only examples I've seen of Ed's code always display data when 
the form opens.  So I'm under the impression that the BD4F's avoid the issues 
I'm facing by not coding the way I expect a form to work - that is to open 
without data.

This very important to me because all my older code does define a data 
structure!

Johnf

_______________________________________________
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/1434560.joC1f7KXOn@linux-12

Reply via email to