cancel
Showing results for 
Search instead for 
Did you mean: 

drop-down, delete double entries

Former Member
0 Kudos

Hello,

I have an dropdown in my formular which gets filled dynamically with this.addItem( ).

Unfortunatly I get double entries in this dropdown. Can anybody give me the javascript to loop over this Items (this.node.Item?) and to delete this duplicate items?

Thanks in advance.

regards

stefan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Try to clear the dropdown values every time before you add new items to it.

Thanks

Gopal

Former Member
0 Kudos

Hi Gopal,

my problem is the following, I have an itab like this:

vendor1 materialgroup1 Material1

vendor1 materialgroup1 Material2

vendor1 materialgroup2 Material3

vendor2 materialgroup2 Material4

vendor2 materialgroup2 Material4

So when I choose the vendor1 in dropdown1 I only want to get 2 entries in dropdown2.

But when I loop over the itab comparing the vendor in order to fill dropdown2 I get 3 entries:

materialgroup1

materialgroup1

materialgroup2

The Javascript coding for this I did found in SDN but I have no idea how to delete this double entry. The dropdown is cleared before this.

Any ideas?

regards

stefan

Former Member
0 Kudos

Hi Stefan,

If you are providing unique key values to the drop downs, drop down texts with same text values won't get duplicated.

Thanks and Regards,

Antony.