cancel
Showing results for 
Search instead for 
Did you mean: 

Cardinality

Former Member
0 Kudos

Hi,

I am new to web dynpro.Could any explain me about cardinality.

I am getting the following error

" Number of Elements of the Collection of Node COMPONENTCONTROLLER.1.SFLIGHT Violates the Cardinality."

Regards,

Charumathi.B

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi charumathi....

cardinality of a node defines how many values it will hold.

if you want your node to be a table, you have to mention the cardinality as

0...n.

you can set the cardinality by,

click your node in the context.

its property has the option to give the cardinality.

also check this link:

http://help.sap.com/saphelp_erp2005/helpdata/en/7a/787e40417c6d1de10000000a1550b0/content.htm

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex,

I have given the cardinality as 0..n and selection 0...n.but now i am getting this error

Access via 'NULL' object reference not possible. How to solve this.

Regards,

Charumathi.B

Former Member
0 Kudos

hi charumathi........

the error is not with respect to cardinality.

it is because, you might be referencing a field which does not exist.

for eg:

you might pass a view name or uielement name which does not exist.

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex ,

It is working when i give the cardinality as 1..n ,.and also not giving any errors,but in case if no entries exist for given filter condition.It is giving error that it violates cardinality.

Regards,

Charumathi.B

Former Member
0 Kudos

hi charumathi........

its always better to give the cardinality as 0...n so that even if there is an empty table, it would be displayed.

---regards,

alex b justin

Former Member
0 Kudos

Hi Alex ,

Thank u.Issue solved.

Regards,

Charumathi.B