Skip to Content
author's profile photo Former Member
Former Member

default value of DropDownByIndex

hello,

i am searching for the possibility to access the default value of a dropdown element in java WebDynpro. I exactly mean the "blank" value in the top of a drop down box.

In my scenario i want to display different data in a table related to the selected values in the drop down box. If the user choose the "blank" data should be diplayed as well.

does anyone have a idea??

thanks in advance,

regards,

rene

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 19, 2006 at 06:24 PM

    This line set to the default FIRST LINE BLANK

    wdContext.nodeYOUR_NODE().setLeadSelection(-1);

    This control say you if BLANK line is selected

    if (wdContext.nodeYOUR_NODE().getLeadSelection(-1) == -1){

    //BLANK CASE

    }

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 05:26 PM

    A DropDownByIndex displays an empty value if the node to which it is bound has no lead selection.

    Example:

    dropdown.texts -> SomeNode.SomeAttribute
    
    if (wdContext.nodeSomeNode().getLeadSelection() == IWDNode.NO_SELECTION)
    {
      /* drop-down displays empty value */
    }

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 03:38 PM

    hi

    If I get your problem correctly you are trying to display data in the table that has beeb selected from the dropdown.if this is the case then what do you expect to be displayed when a blank is seleced.

    thanks

    Lohi.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.