Ed Leafe wrote:
> On Sep 24, 2008, at 3:20 PM, johnf wrote:
> 
>> How using the '-1' (or some other flag) for the new record PK?
> 
>       ...and then the user manually sets the PK in the app before it is  
> saved? How is this any different than what we are doing now?

For reference to others (although we should probably move this over to 
dabo-dev) the issue boils down to the fact that we have a couple dicts 
(_newRecords and _mementos) that are keyed off of the pk. So whether the 
key is -1 or '-1-dabotmp-' or None, the issue is the same: we need to 
update the key of those 2 dicts when the primary key value changes.

This is why I suggested hooking into the cursor's setFieldVal() 
function, since that is where all setting of field values occurs.

Paul


_______________________________________________
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