Correct way to handle field with fixed selection

Hi everyone, what is the best way to handle a entity field which has a fixed side of values (like ‘Y’ or ‘N’ something like that). Currenty in a detail view i use the jmixSelect and onInit i set the options using “ComponentUtils.setItemsMap(fieldA, getMapsByField(…) );”, in the list view i use a custom renderer to visualize the values. I have several questions. 1 Is there another way to do this? 2 in the list view how can i set the property filter to automatically set the values that can be accepted to filter instead of a textbox ? 3 in a listview where there are multiple of these fields i need to write for each field its own custom renderer? Thanks

Hello!

If you have limited options, have you tried creating an enum and localizing its values? It seems an enum solves all of these problems.