BusinessCentral.LinterCop
BusinessCentral.LinterCop copied to clipboard
LC0016 with SplitButton and Repeater Scope
When having the ShowAs property on an Action Group set to SplitButton
, the Caption property is not needed on the group. LC0016 handles this in a nice way.
But I just discovered that if an action inside a SplitButton
Action Group has the Scope set to Repeater
, the Caption is needed for the context menu on the line, otherwise an autogenerated caption i displayed in the context menu (in my example, the actions are promoted, hence the Category_
prefixes):
So, to my suggestion:
Add a new condition for LC0016, to require Caption on Page Action Group if they have SplitButton
specified and the action Scope is set to Repeater
. (Note that this should apply both to action groups in the promoted action area, as on regular action groups)