on 10-16-2007 11:52 PM
Dear SDN Community,
I need to display the value of the drop down in another view. For this I have created the exact same ValueNode in the first View, component controller and the second view. When I try to map the SimpleType value attributes from the first View controller to the Component controller, I get the following error message at run time. The data type of this attribute in all contexts is string. I have deployed this application on 2004s SP12 platform.
<b>com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(TransferComponentView.TransferData.ExpenseId): must not modify the datatype of a mapped attribute </b>
Can you please advice how I can map it successfully and display this value in the second view.
Thanks!
Surya.
Hi Surya
1) Create a Simple type STRING .
2) Add the required values you want to show in drop down in ENUMERATION tab of previously created Simple Type
3) Create a Strucure and add the previously created simple type in the strucure
4) Create a node in Component Controller and bind that to the First View's Controller
5) In your First you Create a DropDownByKey and bind Simple Type to selectedKey property of DropDownByKeyUIElement
-
6) Create a Value Attribute in Component Controller [to store the selected value in the DropDownByKey]
7)Bind that to the Second View's Component Controller
8)Now onClick() of button in First View
wdContext.currentContextElement().setTempSelectedValue(wdContext.currentDropdownElement().getDROP);
wdThis.wdFirePlugToSecond();
The problem in your scenario might be , creating a node in first view with Create with Structure Binding option, that will get the value of enumeration also.
in the second view , i think you created a simple value attribute ,where in there is no Enumeration for that..check once
Hope we both are in same track
Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chaitanya,
Thanks for your inputs. I am using the drop down box in my Adobe interactive form and I can't execute the following onClick event in the Adobe form.
wdContext.currentContextElement().setTempSelectedValue(wdContext.currentDropdownElement().getDROP);
Do you suggest any other place where I can call the above statement.
Thanks!
Surya.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.