I have a massAction on a admin grid which need to pass URL parameter coming on the grid page like http://ashish.local/admin/package_module/rsvp/index/event_id/21/key/e964d1eb362b02a9d6b3bf1281e5401966e71fb2b1fbb644b67db08f8aeef673/
I need to pass the dynamic param event_id value as like 21 but dynamic as like coming URL of the grid
As I can pass <param name="event_id">*</param>
then how to pass the url event_id to the ui-component massAction.
The * in the param is not converting to dynamic url as like below code of datasource of my grid
<item name="filter_url_params" xsi:type="array">
<item name="event_id" xsi:type="string">*</item>
<item name="status" xsi:type="string">1,0</item><!-- 1 = RSVP confirm -->
</item>
Please help
Find below code for massAction:
<action name="confirm">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="type" xsi:type="string">confirm</item>
<item name="label" xsi:type="string" translate="true">Confirm All</item>
<item name="url" xsi:type="url" path="omnyfy_events/rsvp/massConfirm">
<param name="event_id">*</param>
</item>
<item name="confirm" xsi:type="array">
<item name="title" xsi:type="string" translate="true">Confirm events RSVP</item>
<item name="message" xsi:type="string" translate="true">Are you sure you want to confirm selected events RSVP?</item>
</item>
</item>
</argument
</action>
For reference please check below link: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-treemass.html
Here they have used static id in <param name="status">2</param>
I need to fill this param with grid url param value dynamically.