cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add values on a Drop Down by Index Webdynpro Element?

Former Member
0 Kudos

Hi every body

Can anybody help me?

How can I add values on a Drop Down by Index Webdynpro Element?

How can I invoque my element on the Implementation Webdynpro?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I developed my webdynpro and I took your suggestions

Thanks it works

Former Member
0 Kudos

Hi Jesus,

You can add elements to your DDbyIndex like this:


//Example: Popular un Dropdown by Index usando Nodos de contexto   
// NODE[Card: 1..n, Sele:1..1]  Si es obligatorio;            ||    NODE[Card: 0..n, Sele:0..1]  Si no es obligatorio y se puede dejar en blanco
//Assuming we created a node called "Source", with a string attribute called "Texto" binded to the dropdownbyindex
for (int i = 1; i <= 101; i++)
{
	ISourceElement sourceElement = wdContext.createSourceElement();
  	sourceElement.setTexto("Text number "+i);
  	wdContext.nodeSource().addElement(sourceElement);
}

Regards.

Julio Herrera

Former Member
0 Kudos

1.In webDynpro java for adding drop down values first we have to add simple type of string type and go to enumeration and add values which values you want to add.

2.create one attribute of cardinality 0...n and bind this attribute to the dropdown .

Former Member
0 Kudos

hi

you have to make a attribute in a node of cardinality o-n and then set its value through coding

Thanks and regards

suresh joshi

Former Member
0 Kudos

You need to create a node of cardinality 0:n. Create an attribute under the node. Write code to add elements to the node and for each node element set its corresponding attribute value.

In the View Layout, add the DropDownByIndex UI element and bind its 'texts' property to the attribute of the node (0:n) that u created.

Regards,

Sayan Ghosh