I added a grid to a ui_component form and I want to use an Url-parameter to filter the content of the grid. Herefore I added the 'filter_url_params' in my listing:
<dataSource name="mcas_covertemplate_graphicelement_listing_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">mcas_covertemplate_graphicelement_listing_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">graphicelement_id</argument>
<argument name="requestFieldName" xsi:type="string">id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="update_url" xsi:type="url" path="mui/index/render"/>
<item name="filter_url_params" xsi:type="array">
<item name="cover_id" xsi:type="string">*</item>
</item>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">graphicelement_id</item>
</item>
</item>
</argument>
</argument>
</dataSource>
The cover_id is visible in my Url, but it is not used to set the filter.
If I set a value for the cover_id
manually it works.
What I am doing wrong?