cancel
Showing results for 
Search instead for 
Did you mean: 

com.sap.tc.webdynpro.progmodel.context.ContextException

Former Member
0 Kudos

Hi experts please resolve the problem,

com.sap.tc.webdynpro.progmodel.context.ContextException: Node(HrChiefRedressalView.Ctx_FilteredOutput): cannot bind or add element, because it is already bound to a node

warm Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

if u are trying to bind the element to a node in side a for loop,

try creating the reference of the node inside the loop.

Regards,

Satya.

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks Everyone My problem is solved.

Thank you Satya I am rewarding you full points.

Former Member
0 Kudos

how do we create reference...can you please give example to this...

former_member201361
Active Contributor
0 Kudos

Hi,

U are trying to add the node element which is already populated and bound to the node .

if the cardinality of the node is 1:1 then make the cardinality of the node to 0:n and here create the element and add it to the node.

thanks and regards

Former Member
0 Kudos

HI,

com.sap.tc.webdynpro.progmodel.context.ContextException: Node(HrChiefRedressalView.Ctx_FilteredOutput): cannot bind or add element, because it is already bound to a node

Try to bind or add element from the source of the node instead of mapped one.

Ex:

Controller->View

If your node is mapped from controller to view. bind/add element should be done at controller level not at view level.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Upendra,

You might have been binding a element inside a for loop. Try to remove

wdContext.NodeABC().addelement(ele) inside your for loop and add this statement outside the for loop.

if this is not clear, post your code that may facilitate any of us in SDN to rectify your problem

Regards

Raghu

Former Member
0 Kudos

Hi,

if "Ctx_FilteredOutput" node it is already populated with data,

now you try to add element you get this exception.

so if you trying to get particular element remove this statement from your code,

node.addElement();

have any doubt revert back.

Regards,

ramesh

former_member192434
Active Contributor
0 Kudos

Hi Upendra,

just go throught this link

Thanks

Anup