Skip to Content
0
Former Member
Dec 02, 2008 at 01:51 PM

Data Transfer between Views

18 Views

Hi, experts,

I want two views to share the data stored in a data structure.

I created this structure as node of component controller and also as node of each of the two views using context mapping to that node in component controller. After the action in View 1 is triggered, the node in view controller will be filled with data (the data should be extracted using get attribute from another node element and transfered to this node using set attribute) and then it will be navigated to view 2.

And the data should be automatically stored in the node of component controller and also that of view 2. In view 2 the data will be represented.

As I am quite new to Web Dynpro, I am not sure whether I have done the right thing or not. If not, how is the right way to do it?

If I am right, now I have the runtime error message as following:

"you attempted to move one data object to another.

this is not possible here because the conversion of a data object of type "c" to type "l" is not supported. "

The error occures at the point of get_attribute of lead element (type ref to IF_WD_CONTEXT_ELEMENT.)

I did not see any conversion from "c" to "i" in my code.

Where can be the errors?

Thanks

Fan