cancel
Showing results for 
Search instead for 
Did you mean: 

why I can not get subnode object by using parent node created

Former Member
0 Kudos

I did the practice<a href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/frameset.htm">Data Binding a tree UI Element</a>,and I create a customer object,in this practice I should use this object to get every node object within it,but there is no customer().nodeOrder when I press ".".Then I try to use customerNode.nodeOrder() object.The result is just one line displayed .Does anyone know it?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Probably you did not set singleton=false for the context node "Order". If you do, then every <b>element</b> of node Customer will have its own node "Order" and you can access it using


ICustomerElement customer = ...;
IOrderNode ordersOfCustomer = customer.nodeOrder();

Armin

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you,Abhijeet.With your measure,this progamm is able to run.And Thank you,Armin,it solves my question when I use your suggestion.

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

I have gone through the tutorial, there seems some mistake,

instead of:

IPrivateNonRecursiveTree.IOrderNode orderNode = <b>customer</b>.nodeOrder();

it should have been:

IPrivateNonRecursiveTree.IOrderNode orderNode = <b>customerNode</b>.nodeOrder();

and then follow normal processing....

it should solve your problem

regards