On Mar 3, 2009, at 5:19 AM, Sibylle Koczian wrote:
> how can I use the beforeXXX and afterXXX hook methods, if my form uses
> two or more bizobjs and the content of the methods must be different
> for
> different bizobjs?
>
> Example: the form contains a dPageFrame with several pages, and the
> beforeNew() methods should open different pages for different bizobjs.
> That shouldn't be done by a beforeNew() method belonging to a bizobj.
> But I don't find a possibility to have the forms hook methods know for
> which bizobj they are called.
>
> What did I overlook?
Nothing that I can see. I don't see anything in the framework that
handles that.
You could store the value of the dataSource param passed to the main
method in a form attribute, and then reference that in the before/
after hooks, but that defeats the whole point of the hook methods,
since you'll have to override the main method. Can you create a Trac
ticket for this, as I probably won't be able to get to it for a few
days?
-- Ed Leafe
_______________________________________________
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]