al-code-outline
al-code-outline copied to clipboard
Action for adding missing DataCaptionFields property and/of DropDown field group (in Active Editor/Active Project)
- If neither is present, populate both with the primary key fields + description fields.
- If either is present, use it to populate the other.
Not sure how you should recognise description fields, but heuristics could be a combination of:
- based on name: look for Description/Description 2 or Name/Name 2
- based on type: look for text fields whose length is between 30 and 100
- based on index: the criteria above should match fields that appear "early" in the table, e.g. in the first 10-15 fields
P.S.: I realise this may be more "fuzzy" than most other things in the extension... ;-)