cancel
Showing results for 
Search instead for 
Did you mean: 

cardinality for DropdwonByIndex

Former Member
0 Kudos

Hi,

I got the following error while crating DropdownByIndex as dynamically. I am using the

following code to create node.

IWDNodeInfo dropnode = multipleinfo.addChild("dropnode" , null, true, false, false, true,

false, false, null, null, null);

Error: must not add elements to a Node of cardinality 0..1 or 1..1

By,

Santhu.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Santhu,

Please try this code for creating dynamic node:

IWDNodeInfo dropnode = multipleinfo.addChild("dropnode" , null, true, false, true, true, false, true, null, null, null);

Kind Regards,

S.Saravanan.

Answers (1)

Answers (1)

Former Member
0 Kudos

The DropdownByIndex is bound to a context node so once your dropdown is there on the UI you have to bind it to a context node of 0..n cardinality. You have to add elements to the context node and it will show in the dropdown. So I think the code for that should be that you should add elements to the context node by getting a reference to that node.