Model elements are built from table definitions(tl.tabletypes). Currently, it is not possible to set annotations to such types, because they are synthesized from the table definitions(*Meta.xml) at system startup.
Improvement
In the *Meta.xml one should be able to set `TLTypeAnnotation`s at a metaobject definition:
Via a special annotation model-annotations such TLTypeAnnotation`s can be annotated to a metaobject, which are copied to the generated model elements in the synthesis of `tl.tabletypes.
The configuration
#!xml <metaobject object_name="MyTable"> <annotations> <model-annotations> <options> <generator ... /> </options> </model-annotations> </annotations> <attributes>
would configure an options generator for all attributes that store objects in the MyTable table, which is used to restrict the selection. The options annotation is a TLTypeAnnotation that can normally only be set on model elements class and property.
Test
- See #24730 (Annotation of export bindings to meta element table).