On Thursday, June 09, 2011 09:29:01 am Nate Lowrie wrote: > On Thu, Jun 9, 2011 at 12:21, Paul McNett <[email protected]> wrote: > > On 6/9/11 9:09 AM, Jacek Kałucki wrote: > >> Użytkownik Nate Lowrie napisał: > >>> > Is there an acceptable method for switching the current bizobj the > >>> > form references? For instance, if my parent form has a bunch of > >>> > panels with different bizobj views on them, can I tell the form to > >>> > reference a different bizobj when the user switches panes? > >> > >> What about the PrimaryBizobj property? > > > > This is exactly what PrimaryBizobj is for. When code (yours or dabo's) > > calls form.getBizobj() with no arguments, it is a reference to the > > PrimaryBizobj that is returned. > > ok, that sounds good. I like this commit. We finally have a clean > way of pushing the bizobj into the dialog. > > Regards, > > Nate >
How does that help you with your question. It would seem that you still need to call the dialog with the correct SQL view. I would think in creating a generic dialog for your different panels you would need to pass the correct bizobj view to the dialog or some way to determine the calling panel. Or maybe: if self.Form.somePanelName: bizObj = self.Form.Bizobj Johnf _______________________________________________ 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]
