On 1/3/11 10:20 AM, Steve Rose wrote: > I have a search page in an app that I'm working on that uses the addWhere > bizobj method to build a query (MySQL backend). Everything works great > until I manage to run a query that returns no records. Then, a message box > pops up titled "Requery Not Allowed" with the message "no records in > dataset".
I bet you have a child bizobj and the requery isn't allowed because there are no parent records. Interesting, I'd have thought I'd have run across this by now. Is this still an issue? Sorry we took so long to get back to you. > Hitting the OK button causes a poor repaint of the form (a > remnant of the message box is displayed on top of my form) then it appears > that the entire dataset is requeried. If I then try to do another search > that uses addWhere, the program becomes non-responsive and I have to hit a > Ctrl-C on the command line to get out. So, my question is: How can I wrap > that error so I don't lock up my program? Also, why should a query that > returns zero records cause a lock up in the first place? Possibly I have a > basic design flaw. There must be something else about your code, because I've never seen anything like this. Versions of Python, wxPython, Dabo, and operating system? 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]
