major
nice-to-have
minor
When creating a grid for the Person type, the "_self" column is used as the grid's ID column.
The heuristic for determining the ID column first generates a set of possible candidate columns from the `tl:MainProperties` (if available) or, otherwise, from the visible attributes of the type. An ID column is then selected from this set as follows: If a column named “name” exists, select it. If a column named “_self” exists, use it. Otherwise, select any column.
Here, for the Contacts:PersonContact type, a tl:MainProperties annotation exists. “_self,email,phone,phone_mobile” are configured as default columns. The heuristic described above therefore selects “_self” as the ID column.
However, the mechanism for selecting options for the ID column works differently and causes problems if the heuristic in the wizard templates selects “_self” as the ID column. The options offered for the ID column are limited to the names of the visible attributes of the type—specifically, they do not include “_self.”
Implementation
The _self column can now also be selected as the ID column in the layout editor:
Test
- Create a grid with " Person " as the type.
- Edit the grid again and save it.