{"id":56596,"date":"2016-08-08T16:36:48","date_gmt":"2016-08-08T16:36:48","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=56596"},"modified":"2024-07-22T09:06:07","modified_gmt":"2024-07-22T09:06:07","slug":"join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/","title":{"rendered":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)"},"content":{"rendered":"\n<p>Here we learn how to Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2 )<\/p>\n\n\n\n<p>For create grid you can follow&nbsp; our previous post <a href=\"http:\/\/webkul.com\/blog\/create-collection-grid-editadd-grid-row-installer-magento2\/\">how to create grid and insert data<\/a><\/p>\n\n\n\n<p>For join you need to edit following files<br><strong>app\/code\/Webkul\/Grid\/etc\/di.xml<\/strong> <br><strong>app\/code\/NameSpace\/ModuleName\/etc\/di.xml<\/strong><br><strong>app\/code\/Webkul\/Grid\/Model\/ResourceModel\/Grid\/Collection.php<\/strong><br><strong>app\/code\/NameSpace\/ModuleName\/Model\/ResourceModel\/Grid\/Collection.php<\/strong><\/p>\n\n\n\n<p>#<strong> For join we need to update di.xml file as following<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;!--\n    \/**\n     * Webkul Grid DI\n     *\n     * @category    Webkul\n     * @package     Webkul_Grid\n     * @author      Webkul Software Private Limited\n     *\n     *\/\n --&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:ObjectManager\/etc\/config.xsd&quot;&gt;\n    &lt;!-- here we remove virtualType and defile collection as follow--&gt;\n    &lt;type name=&quot;Webkul\\Grid\\Model\\ResourceModel\\Grid\\Grid\\Collection&quot;&gt;\n        &lt;arguments&gt;\n            &lt;argument name=&quot;mainTable&quot; xsi:type=&quot;string&quot;&gt;wk_grid_records&lt;\/argument&gt;\n            &lt;argument name=&quot;eventPrefix&quot; xsi:type=&quot;string&quot;&gt;wk_records_grid_collection&lt;\/argument&gt;\n            &lt;argument name=&quot;eventObject&quot; xsi:type=&quot;string&quot;&gt;wk_grid_records_collection&lt;\/argument&gt;\n            &lt;argument name=&quot;resourceModel&quot; xsi:type=&quot;string&quot;&gt;Webkul\\Grid\\Model\\ResourceModel\\Grid&lt;\/argument&gt;\n        &lt;\/arguments&gt;\n    &lt;\/type&gt;\n    &lt;type name=&quot;Magento\\Framework\\View\\Element\\UiComponent\\DataProvider\\CollectionFactory&quot;&gt;\n        &lt;arguments&gt;\n            &lt;argument name=&quot;collections&quot; xsi:type=&quot;array&quot;&gt;\n                &lt;!--data provider name which used in grid ui component file --&gt;\n                &lt;item name=&quot;grid_record_grid_list_data_source&quot; xsi:type=&quot;string&quot;&gt;Webkul\\Grid\\Model\\ResourceModel\\Grid\\Grid\\Collection&lt;\/item&gt;\n            &lt;\/argument&gt;\n        &lt;\/arguments&gt;\n    &lt;\/type&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p><strong>2# Now we update app\/code\/Webkul\/Grid\/Model\/ResourceModel\/Grid\/Collection.php<br>folder structure app\/code\/NameSpace\/ModuleName\/Model\/ResourceModel\/ModelName\/Collection.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\n    \/**\n     * Webkul Grid collection\n     *\n     * @category    Webkul\n     * @package     Webkul_Grid\n     * @author      Webkul Software Private Limited\n     *\n     *\/\n\nnamespace Webkul\\Grid\\Model\\ResourceModel\\Grid;\n\n\/* use required classes *\/\nuse Magento\\Framework\\Data\\Collection\\EntityFactoryInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Magento\\Framework\\Data\\Collection\\Db\\FetchStrategyInterface;\nuse Magento\\Framework\\Event\\ManagerInterface;\nuse Magento\\Store\\Model\\StoreManagerInterface;\nuse Magento\\Framework\\DB\\Adapter\\AdapterInterface;\nuse Magento\\Framework\\Model\\ResourceModel\\Db\\AbstractDb;\n\nclass Collection extends \\Magento\\Framework\\Model\\ResourceModel\\Db\\Collection\\AbstractCollection\n{\n    \/**\n     * @var string\n     *\/\n    protected $_idFieldName = &#039;entity_id&#039;;\n\n    \/**\n     * @param EntityFactoryInterface $entityFactory,\n     * @param LoggerInterface        $logger,\n     * @param FetchStrategyInterface $fetchStrategy,\n     * @param ManagerInterface       $eventManager,\n     * @param StoreManagerInterface  $storeManager,\n     * @param AdapterInterface       $connection,\n     * @param AbstractDb             $resource\n     *\/\n    public function __construct(\n        EntityFactoryInterface $entityFactory,\n        LoggerInterface $logger,\n        FetchStrategyInterface $fetchStrategy,\n        ManagerInterface $eventManager,\n        StoreManagerInterface $storeManager,\n        AdapterInterface $connection = null,\n        AbstractDb $resource = null\n    ) {\n        $this-&gt;_init(\n            \\Webkul\\Grid\\Model\\Grid::class,\n            \\Webkul\\Grid\\Model\\ResourceModel\\Grid::class\n        );\n        \/\/Class naming structure \n        \/\/ &#039;NameSpace\\ModuleName\\Model\\ModelName&#039;, &#039;NameSpace\\ModuleName\\Model\\ResourceModel\\ModelName&#039;\n        parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);\n        $this-&gt;storeManager = $storeManager;\n    }\n    \n    protected function _renderFiltersBefore()\n    {\n        $table = $this-&gt;getTable(&#039;wk_record_temp&#039;);\n        $this-&gt;getSelect()-&gt;joinLeft(\n            &#091;&#039;secondTable&#039; =&gt; $table], \/\/2nd table name by which you want to join mail table\n            &#039;main_table.entity_id = secondTable.entity_id&#039;, \/\/ common column which available in both table \n            &quot;*&quot; \/\/ &#039;*&#039; define that you want all column of 2nd table. if you want some particular column then you can define as &#091;&#039;column1&#039;,&#039;column2&#039;]\n        );\n        parent::_renderFiltersBefore();\n    }\n}<\/pre>\n\n\n\n<p><strong>3# now we create Collection.php in app\/code\/Webkul\/Grid\/Model\/ResourceModel\/Grid\/Grid<br>path structure : app\/code\/NameSpace\/ModuleName\/Model\/ResourceModel\/ModelName\/Grid<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n    \/**\n     * Webkul Grid \n     *\n     * @category    Webkul\n     * @package     Webkul_Grid\n     * @author      Webkul Software Private Limited\n     *\n     *\/\n\nnamespace Webkul\\Grid\\Model\\ResourceModel\\Grid\\Grid;\n\nuse Magento\\Framework\\Api\\Search\\SearchResultInterface;\nuse Magento\\Framework\\Search\\AggregationInterface;\n\/\/ Your ResourceModel Collection File Path\nuse Webkul\\Grid\\Model\\ResourceModel\\Grid\\Collection as GridCollection;\nuse Magento\\Framework\\Data\\Collection\\EntityFactoryInterface;\nuse Psr\\Log\\LoggerInterface;\nuse Magento\\Framework\\Data\\Collection\\Db\\FetchStrategyInterface;\nuse Magento\\Framework\\Event\\ManagerInterface;\nuse Magento\\Store\\Model\\StoreManagerInterface;\nuse Magento\\Framework\\Model\\ResourceModel\\Db\\AbstractDb;\n\n\/**\n * Class Collection\n * Collection for displaying grid\n *\/\nclass Collection extends GridCollection implements SearchResultInterface\n{ \n    \/**\n     * @var Attribute\n    *\/\n    protected $eavAttribute;\n    \/**\n     * @var StoreManagerInterface\n    *\/\n    protected $storeManager;\n\n    \/**\n     * Resource initialization\n     *\/\n    public function __construct(\n        EntityFactoryInterface $entityFactory,\n        LoggerInterface $logger,\n        FetchStrategyInterface $fetchStrategy,\n        ManagerInterface $eventManager,\n        StoreManagerInterface $storeManager,\n        $mainTable,\n        $eventPrefix,\n        $eventObject,\n        $resourceModel,\n        $model = &#039;Magento\\Framework\\View\\Element\\UiComponent\\DataProvider\\Document&#039;,\n        $connection = null,\n        AbstractDb $resource = null\n    ) {\n        parent::__construct(\n            $entityFactory,\n            $logger,\n            $fetchStrategy,\n            $eventManager,\n            $storeManager,\n            $connection,\n            $resource\n        );\n        $this-&gt;_eventPrefix = $eventPrefix;\n        $this-&gt;_eventObject = $eventObject;\n        $this-&gt;_init($model, $resourceModel);\n        $this-&gt;setMainTable($mainTable);\n    }\n\n    \/**\n     * @return AggregationInterface\n     *\/\n    public function getAggregations()\n    {\n        return $this-&gt;aggregations;\n    }\n\n    \/**\n     * @param AggregationInterface $aggregations\n     *\n     * @return $this\n     *\/\n    public function setAggregations($aggregations)\n    {\n        $this-&gt;aggregations = $aggregations;\n    }\n\n    \/**\n     * Get search criteria.\n     *\n     * @return \\Magento\\Framework\\Api\\SearchCriteriaInterface|null\n     *\/\n    public function getSearchCriteria()\n    {\n        return null;\n    }\n\n    \/**\n     * Set search criteria.\n     *\n     * @param \\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria\n     *\n     * @return $this\n     * @SuppressWarnings(PHPMD.UnusedFormalParameter)\n     *\/\n    public function setSearchCriteria(\n        \\Magento\\Framework\\Api\\SearchCriteriaInterface $searchCriteria = null\n    ) {\n        return $this;\n    }\n\n    \/**\n     * Get total count.\n     *\n     * @return int\n     *\/\n    public function getTotalCount()\n    {\n        return $this-&gt;getSize();\n    }\n\n    \/**\n     * Set total count.\n     *\n     * @param int $totalCount\n     *\n     * @return $this\n     * @SuppressWarnings(PHPMD.UnusedFormalParameter)\n     *\/\n    public function setTotalCount($totalCount)\n    {\n        return $this;\n    }\n\n    \/**\n     * Set items list.\n     *\n     * @param \\Magento\\Framework\\Api\\ExtensibleDataInterface&#091;] $items\n     *\n     * @return $this\n     * @SuppressWarnings(PHPMD.UnusedFormalParameter)\n     *\/\n    public function setItems(array $items = null)\n    {\n        return $this;\n    }\n}<\/pre>\n\n\n\n<p># now you can add 2nd table columns in grid_record_grid_list.xml in\u00a0 app\/code\/Webkul\/Grid\/view\/adminhtml\/ui_component folder and then 2nd table column include in grid.<\/p>\n\n\n\n<p>For your Magento 2 store ,\u00a0<a href=\"https:\/\/webkul.com\/hire-magento-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">hire Magento developers\u00a0<\/a>who can dedicatedly work on your customised e-commerce projects.<\/p>\n\n\n\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here we learn how to Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2 ) For create grid you can follow&nbsp; our previous post how to create grid and insert data For join you need to edit following filesapp\/code\/Webkul\/Grid\/etc\/di.xml app\/code\/NameSpace\/ModuleName\/etc\/di.xmlapp\/code\/Webkul\/Grid\/Model\/ResourceModel\/Grid\/Collection.phpapp\/code\/NameSpace\/ModuleName\/Model\/ResourceModel\/Grid\/Collection.php # For join we need to <a href=\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":54828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,302,3286,1],"tags":[3495,588,3494,2070,3496],"class_list":["post-56596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento","category-magento2","category-magento2-1","category-uncategorized","tag-collection","tag-grid","tag-join","tag-magento2","tag-ui_component"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-08T16:36:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-22T09:06:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)\",\"datePublished\":\"2016-08-08T16:36:48+00:00\",\"dateModified\":\"2024-07-22T09:06:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\"},\"wordCount\":198,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"keywords\":[\"collection\",\"grid\",\"join\",\"Magento2\",\"ui_component\"],\"articleSection\":[\"magento\",\"Magento2\",\"Magento2.1\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\",\"name\":\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"datePublished\":\"2016-08-08T16:36:48+00:00\",\"dateModified\":\"2024-07-22T09:06:07+00:00\",\"description\":\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog","description":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog","og_description":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)","og_url":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-08-08T16:36:48+00:00","article_modified_time":"2024-07-22T09:06:07+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","type":"image\/png"}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)","datePublished":"2016-08-08T16:36:48+00:00","dateModified":"2024-07-22T09:06:07+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/"},"wordCount":198,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","keywords":["collection","grid","join","Magento2","ui_component"],"articleSection":["magento","Magento2","Magento2.1"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/","url":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/","name":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2) - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","datePublished":"2016-08-08T16:36:48+00:00","dateModified":"2024-07-22T09:06:07+00:00","description":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/07\/Magneto-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Join two table and create grid in admin section using ui component in Adobe Commerce ( Magento 2)"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=56596"}],"version-history":[{"count":13,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56596\/revisions"}],"predecessor-version":[{"id":453874,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/56596\/revisions\/453874"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/54828"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=56596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=56596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=56596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}