GET_PROPERTY contains value which is not allowed
I´m using the same values in two different views of the same component/window by using context binding via Component Controller.
AView <-> CoCo <-> BView
The values in AView are stored in a standard Model Node; this Model Node is bound to a Value Node of the CoCo for sharing only some fields.
BView uses also a Value Node that is bound to the Value Node of the CoCo.
AView (Model Node) <-> CoCo (Value Node) <-> BView (Value Node)
The created Value Nodes does have one attribute (EMP_RESP_NAME).
After binding the Value Node of BView to the Value Node of the CoCo following error is shown:
Cannot display view ZSRQM_INCIDENTH/BView of UI Component SRQM_INCIDENT_H
An exception has occurred Exception Class CX_CRM_CIC_PARAMETER_ERROR - Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains value EMP_RESP_NAME, which is not allowed
Source Text Row: 19
Does anybody has made similar experiences or can explain that behaviour?
Thanks in advance,
You can set the value of your component controller attribute from two locations:
1. DO_HANDLE_DATA( ) method of your source view controller (you need to re-define this method, and put your code of populating coco attribute after calling the super method, from this method you can basically get a component controller instance and set its public attribute)
2. Any event handler in your source view that triggers navigation to target view