OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions How I can get selectedIds in mass-action?

This topic contains 2 replies, has 2 voices, and was last updated by  Mike Kudelya 7 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36259

    madlexx
    Participant

    I created a new mass-action for order-items-grid in orocrmmagentobundle. But have a little bug, when selected only one item and executed delete mass action I get a error ‘There is nothing to do in mass action “delete””. The method this.datagrid.getSelectionState() returned Object which contain array selectedIds , but value of every item is undefined. On another pages situation is different, delete mass action worked as expected. What problem can be here?
    My datagrid:

    My send-shioment-action.js:

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #36260

    madlexx
    Participant

    Problem was in datagrid.yml of the magentobundle. There was missed properties id for magento-orderitem-grid thus delete mass action doesn’t worked for one item and custom action doesn’t worked too.

    #36261

    Mike Kudelya
    Participant

    Hi,

    By default this grid doesn’t use mass action, so id wasn’t added.

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top