Introduction
With a layout procedure it is easily possible to hide a field in a form based on a condition. However when you want to hide a field in the list, this becomes quite tedious.
Use cases
For example when you have a a strong entity and a weak entity. Based on a value of the strong entity you want to hide a field in the list of the weak entity. Or in a multi-tenant system, based on a settings table you want to hide certain fields for the tenant.
Current work-around
Currently you will need to create and maintain a variant with the field hidden, create an extra reference for the variant and place the condition in a context procedure to determine which variant should be shown. This becomes even more tedious when you want to hide multiple fields based on different conditions because you will need to multiply the variants to make each combination possible (and thus having to maintain all the variants with new development).
Suggestion
To make this a lot easier and reduce maintenance I would like to suggest to be able to model hidden fields as a detail of a reference in the SF. In this detail screen a developer should be able to add fields of the target table of the reference that the developer wants to hide. For each field a condition should be added when the field needs to be hidden.
Based on this data the Software factory should be able to generate the variant(s) of the target table (based on the variant of the reference), generate the extra references and create a context procedure based on the condition of each field. Or maybe the GUI could even hide the fields based on this data without having to create variants/references.