cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownByIndex: initialize with blank element

Former Member
0 Kudos

Hello,

I' able to choose the blank element if I click on DropDownMenü but on initialization the DropDownMenü is set with the first value of the context node.

How can I initialize a DropDownByIndex with a blank element?

Regards,

Armin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

node.setLeadSelection(IWDNode.NO_SELECTION).

Armin

Former Member
0 Kudos

Hello,

the context node looks like this:

RequestGetTypes

---ResponseGetTypes

------returnGetTyped

----


itemGetTypes

I tried it in this way:

wdContext.currentRequestGetTypesElement().modelObject().execute();

wdContext.nodeReturnGetTypes().setLeadSelection(IWDNode.NO_SELECTION);

But the DropDownMenu still shows the first context node element.

Regards,

Armin

sid_sunny
Contributor
0 Kudos

Hi Armin,

Just try wdContext.nodeReturnGetTypes().setLeadSelection(-1);

it worked for me for checking null selection by the user.

Regards

Sid

Former Member
0 Kudos

Now it works. I don't know why but it works now with .NO_SELECTION.

Former Member
0 Kudos

IWDNode.NO_SELECTION is -1.

Armin

Answers (0)