on 07-29-2008 6:15 AM
I am getting confussion between the nodes.
that is what are the ,
recursive node, non recursive node,
singleton node, non singletonnode.
what is diff between recursive node,non recursive node.
could you explain briefly.
Singleton node and Non-singleton nodes:
Cardinality Property:
The Cardinality property is composed of a pair of values that controls the maximum and minimum number of elements
may contain at runtime.
The Cardinality property may have four possible values:
The first part of the cardinality describes the minimum number of elements that 's
Element collection may contain. This value is either Zero or One, and is stored as a Boolean value. This value can be obtained at runtime by calling the method
Node .getNodeInfo ().is Mandatory (). The Second part of the cardinality describes the maximum number elements that 's element collection may contain. This value is either a '1' or an 'n'(meaning any) and is stored as a Boolean value (false = 1,true = n).
This value can be obtained at runtime by calling method node
.getNodeInfo ().is Multiple(). If has a cardinality of 1..<something>, then it can be assumed that after the context has been initialized, there will be at least one element present in the node collection. This element is known as default element and cannot be deleted.
If you attempt to perform some action on a node that would violate the constraints of the cardinality, then you will get a runtime exception in the context e.g., trying to add a second element to a node of cardinality 0..1 or trying to delete the last element from a node of cardinality 1..n.
Singleton Property:
The Singleton property critically affects the relationship between the child node and its parent node . If is declared at design time, the generated interface for this node will vary depending on whether it is a Singleton or Non-Singleton node.
There is one to one relationship between each element in the parent node's element collection and the corresponding child node.
If has n elements in its element collection then you will have 'n' distinct instances of the non-singleton child node . Non-Singleton child node can be created by their respective parent element. Singleton child nodes however are associated with their parent node on a per node basis. Irrespective of the number of elements in the parent node's element collection, there will only ever be one instance of the singleton child node . The Singleton child node holds the data relevant for the element at the lead selection in the parent node's element collection. Singleton child nodes must be created by their parent node. Since there can only ever one instance of singleton child node. It is impossible for an element in a parent node collection to create singleton child node. Since the context root node always has exactly one element, all the nodes that have the context root node as their immediate parent must, by definition be singleton nodes. Further to this, the definition of a Singleton child node immediately implies that it must be repopulated every time the lead selection in its parent node changes. This job is performed by declaring a Supply Function for the singleton child node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Difference between singleton node and non-singleton node:
Singleton nodes are related to the parent node, non-singleton
Nodes always refer to a node element of the parent node at runtime.
Regards
sowmya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
Recursive Node:
If you wish to represent a recursive data structure within the context, a recursive node is the correct node to use. The simplest example of recursive data within a hierarchical structure is a file system. A dictionary can contain either files or subdirectories. This definition is then repeated for each subdirectory level down the hierarchy.
Within the context, a recursive node is a special node that has only two properties: name and repeated Node. As with any context node, a recursive node must itself name, but the repeated Node property is where the recursion is defined. This property holds a reference to some parent node and indicates that, at runtime, the location of the recursive node will be occupied by a node of the type indicated in the repeated Node property.
You should think of a recursive node as a design time placeholder used to indicate a node will be created at this location at runtime, and will be of the type named in the repeated Node property.
The node name identified by repeated Node must lie on the direct path back to the context root node.
When a recursive node is created at runtime it always created as a non-singleton node. This is a hard-coded feature and cannot be changed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please go through the following links:
Singleton and non singleton nodes:
http://help.sap.com/saphelp_nw70/helpdata/EN/5d/97384162316532e10000000a1550b0/frameset.htm
Recursive Nodes:
http://help.sap.com/saphelp_nw70/helpdata/EN/5d/97384162316532e10000000a1550b0/frameset.htm
Regards,
Padmalatha.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Nodes are nothing but place holders for the variable values. It's just like a class with variables, you can simulate Node with the class name and class's variable as the Nodes attributes.
You can apply same concept of Class to a Node they both retain value at the runtime.
For Recursive node plz read the below link:-
http://help.sap.com/saphelp_nw70/helpdata/EN/af/44ea406c9d3d43e10000000a155106/frameset.htm
Ans for singleton read the below link
http://help.sap.com/saphelp_nw70/helpdata/EN/81/95384162316532e10000000a1550b0/frameset.htm
Hope this may help you.
Regards,
Deepak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
chk this
http://help.sap.com/saphelp_nw04s/helpdata/en/47/45641880f81962e10000000a114a6b/content.htm
regards,
ramani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
[Different kinds of nodes|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5896] [original link is broken] [original link is broken] [original link is broken];
[Singleton and Non Singleton nodes|http://help.sap.com/saphelp_nw04/helpdata/en/7c/0ccf3d5090b80de10000000a114084/frameset.htm]
search for....
[Whatu2019s the difference between the various types of context nodes?|http://www.sap-press.de/download/dateien/688/sappress_web_dynpro_java.pdf]
PradeeP
Edited by: pradeep bondla on Jul 29, 2008 7:27 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.