cancel
Showing results for 
Search instead for 
Did you mean: 

webdynpro

Former Member
0 Kudos

what is cardinality?

explain with example

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

If a node or valueattribute has the contextRoot node as it's immediate parent then it is called as Indipendent node or attribute.

Otherwise it iscalled as dependant node or attribute.

All the nodes r collections

A node collection is composition of elements.

An element is an aggrigation of it's immediate childern(either subnode or attribute)

Cardinality property controls the no of elements a context node hold at runtime.

Every node has the cardinality property

It has 4 values

1)0 to 1(min value)

2)0 to n

3)1 to 1

4)1 to n(max value)

Answers (4)

Answers (4)

Former Member
0 Kudos

thank you all

Former Member
0 Kudos

Hi srikanth josyula ,

The following websites contain details about cardinality with example :

The Structural Concepts of Web Dynpro Components

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f...

Web Dynpro:Context Mapping & Model Binding

http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/14-Web_Dynpro_dataflow.pdf

Web Dynpro:Getting Involved

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c193252d-0701-0010-f5ae-f10...

Web Dynpro for ABAP

http://www.vnsg.nl/temp/508773747/A1-WDA_Themadag.pdf

cheers!

gyanaraj

Message was edited by:

Armin Reichert

Former Member
0 Kudos

Hi srikanth,

Cardinality

Any node or attribute that has the context root node as its immediate parent, is known as an independent node or attribute.

Any node or attribute that has some other node as its immediate parent, is known as a dependent node or attribute. All context nodes are collections.

A node collection is composed of elements, where an element is an aggregation of the node’s immediate children (attributes and/or other nodes).

The cardinality property controls the number of elements a node collection may hold at runtime.

Every context node has a property called Cardinality. This property is composed of two values that taken together, describe the maximum and minimum number of elements the node collection may hold at runtime.

Cardinality Minimum: 0 or 1

Cardinality Maximum: 1 or n

Therefore, there are four possible cardinality values

(specified as <Min>..<Max>)

0..1 Zero or one elements permitted

0..n Zero or more elements permitted

1..1 One and only one element permitted

1..n One or more elements permitted

Regards,

karthik.

Former Member
0 Kudos

Hi Srikanth

There are well explained threads already in this forum regarding Cardinality .

Please search the forumn before posting questions..

Best Regards

Chaitanya.A