on 05-06-2005 11:24 PM
I map the selectedConfiguration attribute to the component context's selectedConfiguration so that I can access the value in the subsequent views.
On the current view, the selectedConfiguration corresponds to a dropdown. This exception gets thrown on the line :
ISimpleTypeModifiable myType = wdControllerAPI.getContext().getModifiableTypeOf("selectedConfiguration");
How can I populate a drop down if the context for that drop down is mapped to the component context.
com.sap.tc.webdynpro.progmodel.context.ContextException: AttributeInfo(ItemLaunchConfigurationView.selectedConfiguration): must not modify the datatype of a mapped attribute
at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.getModifiableSimpleType(AttributeInfo.java:337)
at com.sap.tc.webdynpro.progmodel.context.Context.getModifiableTypeOf(Context.java:171)
at com.sap.netweaver.bc.uwl.ui.admin.ItemLaunchConfigurationView.wdDoInit(ItemLaunchConfigurationView.java:103)
at com.sap.netweaver.bc.uwl.ui.admin.wdp.InternalItemLaunchConfigurationView.wdDoInit(InternalItemLaunchConfigurationView.java:124)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:388)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:645)
at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:515)
Thanks a lot
Manish.
HiManish
U r trying to Map a Attribute to the DropDown.
This Attribute u might have Mapped to Some othe Attribute to either Component Controller or Interface Controller.
In Simple u should not bind an Value Attribute to the Drop Down Wichu have Mapped, Coz u will not be able to modify it.
Bind Some unMapped Value Attribute. At run time get The Value attribute Value and store in Some other Value Attribute which u can use it for Mapping
With Wishes
Krishna Kanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I feel its better to remove the context mapping and set the value to the attribute in the component context in the action handler for the dropdown.
String s=wdContext.currentTestNodeElement().getTestElement();
wdThis.wdGetTestAppCompController().wdGetContext().currentTestNodeElement().setTestElement(s);
where the node is TestNode and the attribute is TestElement which is bound to the dropdown.
Regards
Noufal
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
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.