>> 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 > It makes sense, but still doesn't work. I am still getting the first record each time. I have verified that theid is correct. I have requery both before and after. In fact I get the first record even without a requery. When I use theDetails_ui as my main form then it opens fine and I have a next button that scrolls through records, so I know that that part works. I have tried calling Show first thinking maybe it didn't get the bizobj data until after show but also didn't work.
Sim _______________________________________________ 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]
