On Sunday 28 December 2008 05:47:45 am Ed Leafe wrote: > I was well pleased and then tried deleting > > > records, > > however, could not get the child grid to refresh. If I click on a > > different > > parent record and then come back to the original one, the deleted > > record > > will then disappear from the child grid
The delete method is in dForm.py. You should find it in "dabo/ui/uiwx". If you review the method you find some cool stuff. For example the method will accept a datasource, message, and the ability to turn off the user message prompt. There is also 'deleteAll'. But Dabo is very flexible and allows the developer to do it their way. If for some reason you need to control the delete you can. For example: bizObj.delete() will delete the record. But it does not update the UI. To do that you can do as follows: self.update() (normally this would be the form) self.refresh(). (again normally this would be the form) But you can just refresh and update the grid. self.gridRegID.update() self.gridRegID.refresh() -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[email protected]
