on 06-15-2007 6:55 AM
Hi Guys
I am getting the following error while running the webdynpro.
My Default view is a INPUT_VIEW.
please see below runtime error
Regards,
Rahul
===========================================================
The following error text was processed in the system NSP : The lead selection has not been set. INPUT_VIEW
The error occurred on the application server BomwSAPk210_NSP_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISEELEMENT_NOT_FOUND of program CL_WDR_CONTEXT_NODE===========CP
Method: PATH_TABLE_GET_ELEMENT2 of program CL_WDR_CONTEXT_NODE===========CP
Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
Hi Rahul,
The error appears when a UI element is bound to a context node or attribute on a node , where this node is defined as : cardinality 0..n or 0..1.
The framework will not create a default empty element in this case.
When the view is to be rendered, its source content doesnt exist. AS the node
has no elements. rendering fails.... Now in your case check for the cardinality. You can try with different cardinalities as per your requirements.
Check also the initialization lead selection property:
For cardinality: 0..n, selection: 0..1, initialization lead selection: false
and for cardinality: 1..n or 1..1, selection: 0..1, initialization lead selection: true
Best regards,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys, this thread helped me too.
In my case I had a table of item data. There won't necessarily be any items, so I had cardinality 0..n.
However it makes sense that you can't bind to a context element if it doesn't exist. So I changed cardinality to 1..n - e.g. I always want at least one instance of the node, even if there's no data in it.
Roger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rahul,
In the component controller, put a 'tick' mark on the checkbox "Lead selection". Do this for all the context nodes. Then, activate the entire component.
Regards,
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.