Thank you very much for the helpful reply. Bye, Hilton. On Sun, Dec 28, 2008 at 10:47 PM, Ed Leafe <[email protected]> wrote:
> On Dec 28, 2008, at 2:46 AM, Hilton Grimbeek wrote: > > > To get familiar I have been playing with updating some prices for > > products. > > There are product and price tables. I created a form with two > > grids, one > > for products and one for prices (each price has a start and end date > > resulting in a one:many situation). I set up the bizobjects and after > > grappling with the sparse documentation (not a criticism - just an > > observation - yes, I also know that producing documentation is > > damned hard!) > > the grids worked fine. 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. > > How exactly did you delete the record? My guess is that you called > bizobj.delete(), which does delete the record but bypasses the UI > layer. In Dabo, the three-tier design uses a chain-of-responsibility > pattern, and by bypassing the UI layer and working directly with the > bizobj, the UI will be out of sync. > > The best way to do this is to call the form's delete() method. By > default, this will delete the current record in the PrimaryBizobj of > the form. In your example it sounds like you are deleting a child > record; to do this, just pass in the DataSource to the delete method. > If the code is in a child grid, the call would look like: > > self.Form.delete(self.DataSource) > > If you have any other questions, please don't hesitate to post them. > Our 'documentation' is mostly interactive through these lists; I would > love to have the time to write proper documentation, but until I can > get more than 24 hours/day... ;-) I am copying this reply to the dabo- > users list, since that's the list for questions like this, and the > answer may help others who run into the same problem. > > > -- Ed Leafe > > > > > [excessive quoting removed by server] _______________________________________________ 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]
