Fallback Valuelist

I have a client using Servoy 5.2.16 and the Fallback Valuelist doesn’t seem to be acting right. I’ve noticed that if the display type of the element is TYPE_AHEAD, it is allowing the user to enter in a value in the fallback list. This doesn’t seem like it should be correct. So, if you have a list of active products, and list of inactive products, with active in the main valuelists, and inactive in the fallback value list, the user is able to type in an inactive product code into the field, and it accepts the value, and inserts the product id.

I thought fallback valuelists were only intended to render values that were previously entered (not accept new values in the fallback list). Otherwise this causes undesirable results and you have to do a lot of extra work to block the old/inactive values from being entered.

do you really see also the inactive products? If you type stuff? That should really not happen.

If you mean that you type exactly the right name and then it maps also on an inactive product that could be a unwanted side effect because we just search if we can’t find it
(but i guess we shouldn’t really search for a display value on the fallback)

do you really see also the inactive products? If you type stuff? That should really not happen.

No, this works correctly and the inactive product code doesn’t show as a type ahead value.

If you mean that you type exactly the right name and then it maps also on an inactive product that could be a unwanted side effect because we just search if we can’t find it
(but i guess we shouldn’t really search for a display value on the fallback)

Yes, exactly.

So, the inactive product code doesn’t show in the type-ahead, but a user can manually type in the exact product code (which is inactive), and it accepts the value, and stores the product id. So, it defeats the purpose of the fallback. If you remove the fallback on the valuelist, then it works correctly and doesn’t accept the inactive product code, but old product codes don’t render, so you have to include the fallback. I just want old product codes to render. So if they go back in time to an old order, they can still see what was ordered. However, I don’t want them to be able to type in an inactive product code on a new order.

So, should I submit a bug? and will you fix it in 5.2?

make a case, i guess if it is not to big of a change we can do it in a 5.2.x

OK, created: https://support.servoy.com/browse/SVY-5824

Thanks!