On Monday 25 January 2010 10:30:35 pm jvandal wrote: > I have a file with two drop down fields selected from other files. I have a > add button that has code "self.Form.new()". i also have a save button > that has code "self.Form.save()". I have coded the BeforeSave in editing > the dForm. I also have the afterSave coded . When I run , click the add > button, and I select the two dropdown lists and fill the other two fields I > click save button, but I do not find the record in the file > I used this add and save button in another program and it saved the record. > > Is that proper or did I do something that is weird. > > I created an AppWizard program but I couldn't findthe code that related to > the buttons.?
Just a guess without seeing code: A common mistake is to return a False from the beforeSave() method. Normally, you want to return '' (an empty string - for all is OK) or an error message like return "something went wrong in the save". Johnf _______________________________________________ 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]
