cancel
Showing results for 
Search instead for 
Did you mean: 

DropdownByIndex and empty element

Former Member
0 Kudos


Hi Experts,

I have a checkbox & a dropdownbyindex in my layout. When I select a checkbox, its corresponding values appear in a dropdown.

Properties of the context node:

Cardinality - 1..n

Selection - 0..n

I want an empty line in the dropdown. For e.g. If I select checkbox C1 which has corresponding values D1,D2 & D3, my dropdown should list 4 values - an empty element, D1, D2 and D3.

But I am not getting an empty element in the dropdown. Can you please help?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Suppose that the internal table 'ITAB' contains the values D1,D2,D3 which you bind to the node.

So add 1 more statement.

INSERT INITIAL LINE INTO ITAB INDEX 1.

This will show an empty element as required.

Former Member
0 Kudos

Hi Hitesh,

It works.

But not sure if the best way to achieve this would be through setting the correct cardinality.

Thanks.


Sharathmg
Active Contributor
0 Kudos

Well, an empty row is nothing but another element. So, you need to insert it if the need is to have an empty row.

I don't see another way of accomplishing the requirement.

Regards,

Sharath

Answers (0)