Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 14, 2011 at 02:46 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2011 at 07:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2011 at 09:05 AM

    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 .

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 14, 2011 at 03:09 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2011 at 03:50 PM

    I developed my webdynpro and I took your suggestions

    Thanks it works

    Add comment
    10|10000 characters needed characters exceeded