Sim Zacks wrote: > Does anyone have an example of clicking on a grid row and opening > another form (details) with the same bizobj and landing on the same record? > > > I think I am very close. > > > In my double click on the form row I call: > > bizobj = self.Form.getBizobj(self.DataSource) > theid= bizobj.getPK() > det=theDetails_ui(None) > biz2=det.getBizobj(self.DataSource) > biz2.moveToPK(theid) > det.requery() > det.Show() > > I am getting the pk from the grid row and it is opening and showing the > 2nd form it is just not moving it to the right record.
Swap the biz2.moveToPK(theid) and the det.requery(). You are moving to the PK, which fails because there aren't any records at that point and then requerying, which populates the dataset and moves to the prior record if able (which it isn't). Make sense? 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]
