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
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
}
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