BusinessCentral.LinterCop icon indicating copy to clipboard operation
BusinessCentral.LinterCop copied to clipboard

LC0016 with SplitButton and Repeater Scope

Open jwikman opened this issue 3 months ago • 1 comments

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):

image

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)

jwikman avatar Apr 10 '24 11:04 jwikman