How to avoid duplicates on a editable table, using a ComboBox?

Hello.

I´m having problems to avoid duplicates on an editable table, more specifically on a comboBox.

I needed to prevent the user to select the same value (on the "Tipos de Custo" combobox) twice. 

Could really get some help.

Thanks :)

Hi Camila,


Create a action for comobox on change and check with loop to current table have already value add or not.based on this provide message for user


Regards

Rahul Sahu

I´m sorry for the really basic question, but how do I do that? I need to compare the Table.List.Current.Custo.TipoCustoId with what?

And at the If 

But it is not working

Solution

Hi Camila,


I have made a simple oml for you.find it this code will help you to find duplicate values when user select from combobox.


Regards

Rahul Sahu

Solution

Thank you very much Rahul Sahu. :)

Welcome. :-)

Glad to help you.


Regards

Rahul Sahhu