Skip to Content
avatar image
Former Member

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

I did the practiceData" target="_blank">http://help.sap.com/saphelp_nw04/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/frameset.htm">Data Binding a tree UI Element,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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 30, 2007 at 09:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 30, 2007 at 05:24 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 09, 2007 at 08:36 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded