on 01-14-2009 5:20 AM
Could anybody please explain me the difference between Singleton and Non-Singleton Context nodes.
Hi sarbjeet ,
In general, dependent nodes are represented by a single node instance, whose content u2013 that is, its data collection - changes each time the lead selection of the parent node changes. This is known as a singleton node. The representation of a single node instance reduces the required resources considerably. This improves the performance of the application significantly. However, the use of singleton nodes also results in programming restrictions. This means that the user can only access data of child nodes whose parent nodes have the lead selection. Consequently, you cannot read - for example - the address fields of a business partner X if the business partner Y is selected. Each modification of the parent node lead selection causes a data modification of the singleton child node.
Therefore, Web Dynpro allows you to define additional non-singleton nodes. Each non-singleton node has one node instance for each node element of the parent collection at runtime. The advantage is that each instance can be accessed directly. When using non-singleton nodes, the nodes are only created when the node values are retrieved. This can save resources that otherwise would slow down the performance of the application.
Note that singleton nodes should only be considered singleton in relation to their parent nodes but not in relation to the context. Each instance of a non-singleton parent node has exactly one instance of the singleton node.
Regards,
Piyush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarabjeet,
This is already being explained on SDN. You can check the following links:
http://help.sap.com/saphelp_nw04/helpdata/en/7c/0ccf3d5090b80de10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/7a/787e40417c6d1de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/7a/787e40417c6d1de10000000a1550b0/frameset.htm
This will help you.
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.