on 05-16-2007 3:21 PM
Hi Developers,
Is it possible to define the component usage at runtime with WD4A ?
I would need to programmatically define or change the COMPONENT ("class" and not interface to use) at runtime.
Then I would create an instance of this component (which I know how to perform).
I would then need to be able to map some controllerinterface context of the newly defined component to my current controllerinterface context.
Does it sounds possible?
Sincerely,
Olivier MATT
Message was edited by:
Olivier Matt
Hi Oliver,
That's possible. Just let your component usage point to an interface. While creating an instance of a component for this component usage, dynamically specify the actual component to be used. Of course, the component needs to implement the component interface.
Best regards,
Thomas
P.S: There's also the possibility to use ComponentUsageGroups, but this is a highly dynamic thing for which you will lose all workbench support. Hence, it's only advised to use it in very special cases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.