on 2007 Jun 08 5:42 AM
how do I access the component controller's context from a view method? I was looking at the WD_COMP_CONTROLLER attribute. The IG_COMPONENTCONTROLLER interface does not seem to have any explicit attributes for the component controller context.
Request clarification before answering.
Hi,
Map the component controllers context to your view's context, by dragging and dropping the particular context node. Then you can access the context as your view's context itself. When you want the component controller's context shared across multiple views, map the context to each view's context.
The wd_comp_controller attribute is to access methods inside the component controller.
Hope this helps.
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
wd_comp_controller allows you to access the component controller's methods as well as attributes.Mapping component controller's context to your context is the best way to access the context attributes.
For this you could go to your view context and you could see the controller contex also there...Map the attributes which are needed and access those using your view context.
Thanks and regards
Anzy
Hi ,
As suggested by all you cannot use directly context node of componentcontroller without adding this node to your view.. this can be done by drag and drop in your context node tab . Once you add this node in your view it would be mapped also so once you do any changes to this node it is reflected in coth places.
Regards
Anuj
User | Count |
---|---|
73 | |
30 | |
8 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.