Thanks for that Ed.

My only confusion now is how to add the new beforeSave and afterSave 
methods to the form.  This is probably so basic for you, but my tired 
brain can't see how it's done.  Could you or anyone tell me how this is 
done, please?

Ed Leafe wrote:
> On Mar 18, 2009, at 12:43 PM, Frank Cazabon wrote:
>
>   
>> I thought I had answered this, but guess I didn't cause I'm not seeing
>> it in GMail's sent box.
>>
>> Anyhow, what I do is run the form, it gets displayed with a blank  
>> record
>> and the dropdown showing the "please select a client" text.  Without
>> touching anything on the screen, I press the Save button.  The record
>> counter increments and the "invalid" record apparently gets added with
>> the invalid client.  I see below that you said it gets called for  
>> every
>> *changed* record.  In this case shouldn't it get called?  Or is a new
>> record not considered "changed"?
>>
>> The validateRecord() was copied and pasted from the web page directly
>> into the correct bizobj file.
>>     
>
>       OK, this is my mistake. Nothing is being saved, but the code is  
> calling the new() anyway. I've modified the Step-By-Step guide with  
> code to check for an attempt to save and empty record. I've also re- 
> arranged some of the discussion of before- and after- hooks; let me  
> know if the new version is clear.
>
>
> -- Ed Leafe
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
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