cancel
Showing results for 
Search instead for 
Did you mean: 

how to manage a node with cardinality 0..n

0 Kudos

hi,

i implemented a application with webdynpro which uses a sap babi. everything wents fine, except that i don't know which container i have to use for a cardinality 0..n. one node has this and so the attributes can entered as often as possible.

but i only need one string, so i tried it with an input field, but this is greyed out. what have i to do?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

See my reply in your other thread.

Qualiture
Active Contributor
0 Kudos

Hi Marcus,

If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.

Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:

IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);

Hope this explains a bit!

Best,

Robin van het Hof

Former Member
0 Kudos

Do you mean webdynpro DC component application?

For one string that must be connected with input string you must create separate context node with cardinality 1-1.

To be not greyed check 'enabled' attribute of input string, it must be "yes".

or describe your task more detailed and fully for the View that you develop