William Bryant wrote: > Hello all, > > I've generated a very simple app with the class designer. The app connects to > a MySQL database. Queries work fine, editing and deleting records work > fine, but new records do not get inserted. > > I can insert records into the target table with a non-dabo python program. > > In the dabo app, I'm trying to insert by selecting "New Record" from > the "Actions" > pulldown, then selecting "Save Changes" from "Actions." A traceback ends with > "No records updated" exception raised via self.BackendObject.noResultsOnSave > in dCursorMixin.py. > > I expect I've overlooked something pretty obvious; if so, please treat > me gently, > and many thanks!
The first thing that comes to my mind is primary-key (pk) related. Is the pk on the MySQL side an integer set to auto-increment? If so, you need one set of property settings on the bizobj, and if not, you need another set. Also, can you please post the entire traceback you are getting? Hopefully it'll show a MySQL exception and we can figure out what is wrong from that. -- pkm ~ http://paulmcnett.com _______________________________________________ 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/dabo-users/[EMAIL PROTECTED]
