Error : CreateAction target is not set

Hello,

I’m trying to group couple of buttons of a TreeDataGrid under a PopupButton. Below is my code.

<treeDataGrid id="tasksTable"
                              width="100%"
                              dataContainer="taskPlanDc"
                              hierarchyProperty="parentTask">
                    <actions>
                        <action id="create" type="create"/>
                        <action id="edit" type="edit"/>
                        <action id="remove" type="remove"/>
                        <action id="rasci" type="rasci"/>
                    </actions>
                    <columns>
                        <column property="taskName"/>
                        <column property="taskType"/>
                        <column property="frequency"/>
                        <column property="priority"/>
                        <column property="location"/>
                        <column property="asset"/>
                        <column property="estimatedHours"/>
                    </columns>
                    <buttonsPanel id="buttonsPanel"
                                  alwaysVisible="true">
                        <popupButton id="createPopupBtn" caption="Create">
                            <actions>
                                <action id="create" type="create" caption="New"/>
                                <action id="childTask" caption="Child"/>
                            </actions>
                        </popupButton>
                        <button id="editBtn" action="tasksTable.edit"/>
                        <button id="removeBtn" action="tasksTable.remove"/>
                        <button id="tasksTableRasciBtn" action="tasksTable.rasci"/>
                    </buttonsPanel>
                </treeDataGrid>

But I’m getting the error stated in the heading of this post as below.
image

Thanks,
Hari

@gorelov @durygin

Request you to help me on this. I would like to group couple of actions for a table under a popup button. But I get this error.

Other way I do have is using Popup layout created by myself and add the buttons there, But this popup once opened doesn’t auto close even after the buttons are clicked.

Would be better with the actions list.

Thanks

Hello @harikrishnadhas.k1,

You need to specify that the action belongs to the list component. You could try the following code snippet:

<treeDataGrid id="tasksTable"
                              width="100%"
                              dataContainer="taskPlanDc"
                              hierarchyProperty="parentTask">
                    <actions>
                        <action id="create" type="create"/>
                        <action id="childTask" type="childTask"/>
                        <action id="edit" type="edit"/>
                        <action id="remove" type="remove"/>
                        <action id="rasci" type="rasci"/>
                    </actions>
                    <columns>
                        <column property="taskName"/>
                        <column property="taskType"/>
                        <column property="frequency"/>
                        <column property="priority"/>
                        <column property="location"/>
                        <column property="asset"/>
                        <column property="estimatedHours"/>
                    </columns>
                    <buttonsPanel id="buttonsPanel"
                                  alwaysVisible="true">
                        <popupButton id="createPopupBtn" caption="Create">
                            <actions>
                                <action id="tasksTable.create" caption="New"/>
                                <action id="tasksTable.childTask" caption="Child"/>
                            </actions>
                        </popupButton>
                        <button id="editBtn" action="tasksTable.edit"/>
                        <button id="removeBtn" action="tasksTable.remove"/>
                        <button id="tasksTableRasciBtn" action="tasksTable.rasci"/>
                    </buttonsPanel>
                </treeDataGrid>

Regards,
Gleb

@durygin This worked Thanks!