I have taken reference from below links:
https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/
Magento 2 : How to add a product grid in custom module using ui component?
But still not getting data when form is submitted. Can anyone help with this?
-
Hello @suyati, is there any error appearing?Hamendra Sunthwal– Hamendra Sunthwal2023年02月14日 07:26:55 +00:00Commented Feb 14, 2023 at 7:26
-
No error, product grid is displaying but when i select products and save form, cannot get any data regarding products, just other fields data is fetched.Suyati Saxena– Suyati Saxena2023年02月14日 07:30:07 +00:00Commented Feb 14, 2023 at 7:30
-
Have you tried this solution - magento.stackexchange.com/questions/242285/… ?Hamendra Sunthwal– Hamendra Sunthwal2023年02月14日 10:13:46 +00:00Commented Feb 14, 2023 at 10:13
-
Yes, already tried it, after adding component form name to <input type="hidden" name="rh_products" data-form-part="ui_component_form_name" id="rh_products" value="" /> it gives blank post parameter like {}Suyati Saxena– Suyati Saxena2023年02月14日 10:47:44 +00:00Commented Feb 14, 2023 at 10:47
default