Filtering

Hello,
Is there a way to make the combo filtering option work on any part of the combo options and not just the beginning of the option?
Something like the * in the ‘LIKE’ filter in SQL…
Thanks!
Marco

Hello
There is a new patameter of the method
combo.enableFilteringMode(“between”);
In version 3.5

It searches from the begining and between.

That’s great Darya!
Thanks a lot!!
Marco

You are welcome!

Hi Darya, may I ask you if there if a way to use this feature if the combo is inside a form?
The filtering parameter only takes a boolean… at least from the manual I found…
Alternatively, if you have a few combos, can you assign them, in turn, to the same variable?
Thanks for your support!
Marco

You can use the next approach:

combo1 = myForm.getCombo(“comboName1”);
combo2 = myForm.getCombo(“comboName2”);
combo3 = myForm.getCombo(“comboName3”);

combo1.enableFilteringMode(“between”);
combo2.enableFilteringMode(true);
combo3.enableFilteringMode(false);

Wow, that was quick!
Thanks Darya, you confirmed that is the correct (only) way…
Marco

You are welocme!