Skip to content

The "ActionGroup" class is under the "actions" aggregation and must match the "Action" type. #796

Description

@cw-cbs

Hi,
I have a macros table:

<macros:Table
    id="table"
    header="{i18n>title}"
    metaPath="..."
    core:require="{ handler: '...' }">
    <macros:actions>
        <macrosTable:ActionGroup
            key="bulkUpdateGroup"
            text="{i18n>bulkUpdateActions}"
            placement="Before"
            anchor="StandardAction::Create">
            <macrosTable:Action
                key="key1"
                text="{i18n>key1}"
                press="handler.onKey1Press"/>
            <macrosTable:Action
                key="key2"
                text="{i18n>key2}"
                press="handler.onKey2Press"/>
        </macrosTable:ActionGroup>
    </macros:actions>
    <macros:columns>
        ...
    </macros:columns>
</macros:Table>

with xmlns:macros="sap.fe.macros" and xmlns:macrosTable="sap.fe.macros.table".

In VSCode, the UI5 Language Assistant raises the following error regarding the ActionGroup:

The "ActionGroup" class is under the "actions" aggregation and must match the "Action" type.

This seems wrong as the documentation defines the ActionGroup type as possible alt type for actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions