Hi again Ed, after adding in the code (and working around indentation errors) I got the form to run, but get this error when I hit the save button: "object has no attribute 'dataSourceParameter'"
I know you mention this in the SBS, but I'm not quite sure what it means. It sounds like the parameter has not been created at the form level. 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]
