I have a Category, and Questions form in my custom module. Questions are added against category.
Each question can be belong to a category or multiple category.
I need to insert a listing on category form edit with the questions belongs to relevant category. I Used <insertListing>
method in my ayakil_faq_faq_category_form.xml
<fieldset name="faq_information" sortOrder="10">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string">Faq Information</item>
<item name="collapsible" xsi:type="boolean">false</item>
</item>
</argument>
<insertListing name="faq_listing">
<settings>
<selectionsProvider>ayakil_faq_faq_listing.ayakil_faq_faq_listing_data_source</selectionsProvider>
<dataScope>faq_listing</dataScope>
<ns>faq_listing</ns>
</settings>
</insertListing>
</fieldset>
I need to perform 2 tasks here,
1- need to pass the category id to the data source and
2 – display the faqs related to the category from faq_table.
With my above steps i am unable to get the grid on form, Can anyone please help on this task.