{"id":27310,"date":"2021-03-12T10:50:58","date_gmt":"2021-03-12T10:50:58","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=27310"},"modified":"2021-09-03T04:45:19","modified_gmt":"2021-09-03T04:45:19","slug":"how-to-show-command-bar-on-pcf-component-added-to-sub-grid","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/","title":{"rendered":"How to show Command Bar on PCF Component added to Sub-grid"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that can be configured on the Home grid as well as on the Sub-grid, we saw that it does not incorporate add a new item, quick find, and View Selector which you would normally see escorting the OOB sub-grids. As shown in the below image, the command bar is not visible for our dataset component.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27314 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" alt=\"show Command Bar on PCF Component added to Sub-grid\" width=\"1272\" height=\"313\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg 1272w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-300x74.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-768x189.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-1024x252.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-660x162.jpeg 660w\" sizes=\"(max-width: 1272px) 100vw, 1272px\" \/><\/a><\/p>\n<p>So, how to enable those commands in your Sub-grid?<\/p>\n<p>In this blog, we will show you how to enable the command buttons and view selector in your PCF component for Sub-grid.<\/p>\n<p>While building the PCF component you will get a data-set tag which contains all the property-set tags in Manifest.xml file.<\/p>\n<p>&lt;data-set name=&#8221;sampleDataSet&#8221; display-name-key=&#8221;Dataset_Display_Key&#8221;&gt;<\/p>\n<p>In this tag, you will need to add cds-data-set-options attribute, which will enable the Commandbar, ViewSelector, QuickFind and other navigation items as shown below:<\/p>\n<p>&lt;data-set name=&#8221;sampleDataSet&#8221; display-name-key=&#8221;Dataset_Display_Key&#8221; cds-data-set-options=&#8221;displayCommandBar:true;displayViewSelector:true;displayQuickFind:true&#8221;&gt;<\/p>\n<p>The <a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/developer\/component-framework\/manifest-schema-reference\/data-set#attributes\" target=\"_blank\" rel=\"noopener noreferrer\">cds-data-set-options<\/a> directs model-driven form to display the command bar, view selector, and the quick find when the Boolean value is true.<\/p>\n<p>You can enable\/disable these three properties mentioned below as per your requirements by changing the Boolean value.<\/p>\n<table>\n<tbody>\n<tr>\n<th>Property<\/th>\n<th>Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>displayCommandBar<\/td>\n<td>Boolean<\/td>\n<td>Enables\/Disables the command bar on the Subgrid.<\/td>\n<\/tr>\n<tr>\n<td>displayViewSelector<\/td>\n<td>Boolean<\/td>\n<td>Enables\/Disables the view selector in the Subgrid.<\/td>\n<\/tr>\n<tr>\n<td>displayQuickFind<\/td>\n<td>Boolean<\/td>\n<td>Enables\/Disables the quick find in the Subgrid.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Also, it is mandatory to enable View Selector as well as Display Search Box while adding the Sub-grid to the form in customization to make the View Selector and Quick Find work.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27315 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" alt=\"1-show Command Bar on PCF Component added to Sub-grid\" width=\"615\" height=\"555\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg 615w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/2-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-300x271.jpeg 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/a><\/p>\n<p>Note: In case if the view selector is off or Display Search Box is left untick in the customization, whether you enable them or not from the cds-data-set-options, View Selector and Quick Find (Search box) will not be visible on the Sub-grid.<\/p>\n<p>If you do not mention a property in the cds-data-set-options attribute, then it will by default take it as false and will not show on the Sub-grid.<\/p>\n<p>Also, these changes in the properties only affects the Sub-grid and not the Home grid.<br \/>\nNow, let us build our component with npm run build command.<\/p>\n<p>Note: If you are using an old version of PCF, you may get the following error while building your component &#8211;<br \/>\nManifest validation error: instance.manifest.control[0].data-set[0].$ additionalProperty \u201ccds-data-set-options\u201d exists in instance when not allowed<\/p>\n<p>To overcome and resolve this error you need to navigate to Manifestschema.json file (which is located in the node_modules\\pcf-scripts folder).<\/p>\n<p>In this file, search for dataSetAttribs and you will get the below object. Set the additionalProperties as true, which will do our work.<\/p>\n<p>\u201cdataSetAttribs\u201d: {<br \/>\n\u201ctype\u201d: \u201cobject\u201d,<br \/>\n\u201cproperties\u201d: {<br \/>\n\u201cname\u201d: { \u201ctype\u201d: \u201cstring\u201d },<br \/>\n\u201cdisplay-name-key\u201d: { \u201ctype\u201d: \u201cstring\u201d },<br \/>\n\u201cdescription-key\u201d: { \u201ctype\u201d: \u201cstring\u201d }<br \/>\n},<br \/>\n\u201crequired\u201d: [\u201cname\u201d, \u201cdisplay-name-key\u201d],<br \/>\n\u201cadditionalProperties\u201d: true<br \/>\n},<\/p>\n<p>This change is not required in the new version as Microsoft has given full support to this attribute and for the user with new version their object will appear as shown below:<\/p>\n<p>&#8220;dataSetAttribs&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;object&#8221;,<br \/>\n&#8220;properties&#8221;: {<br \/>\n&#8220;name&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;<br \/>\n},<br \/>\n&#8220;display-name-key&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;<br \/>\n},<br \/>\n&#8220;description-key&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;<br \/>\n},<br \/>\n&#8220;cds-data-set-options&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;<br \/>\n}<br \/>\n},<br \/>\n&#8220;required&#8221;: [<br \/>\n&#8220;name&#8221;,<br \/>\n&#8220;display-name-key&#8221;<br \/>\n],<br \/>\n&#8220;additionalProperties&#8221;: false<br \/>\n}<br \/>\nAfter building your component and adding it on your Sub-grid, you will be able to see the View Selector and all the command buttons.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27316 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" alt=\"1-show Command Bar on PCF Component added to Sub-grid\" width=\"1293\" height=\"407\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg 1293w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-300x94.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-768x242.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-1024x322.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/3-show-Command-Bar-on-PCF-Component-added-to-Sub-grid-660x208.jpeg 660w\" sizes=\"(max-width: 1293px) 100vw, 1293px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>As illustrated above, you can now easily enable or disable the command bar and navigation items in the Sub-grid PCF component.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/product\/integrations\/inolink-quickbooks-microsoft-dynamics-crm\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"aligncenter wp-image-27318 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/inolink-1.jpg\" alt=\"\" width=\"800\" height=\"200\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/inolink-1.jpg 800w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/inolink-1-300x75.jpg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/inolink-1-768x192.jpg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/inolink-1-660x165.jpg 660w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/\">Read More: How to show Command Bar on PCF Component added to\u2026 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,19,44],"tags":[2207],"class_list":["post-27310","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-crm","category-power-apps","tag-pcf-component"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1272\" \/>\n\t\t<meta property=\"og:image:height\" content=\"313\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-03-12T10:50:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-09-03T04:45:19+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#blogposting\",\"name\":\"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"How to show Command Bar on PCF Component added to Sub-grid\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#articleImage\",\"width\":1272,\"height\":313,\"caption\":\"show Command Bar on PCF Component added to Sub-grid\"},\"datePublished\":\"2021-03-12T10:50:58+05:30\",\"dateModified\":\"2021-09-03T04:45:19+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#webpage\"},\"articleSection\":\"Dynamics 365, Dynamics CRM, Microsoft PowerApps, PCF Component\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"position\":2,\"name\":\"Dynamics 365\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#listItem\",\"name\":\"How to show Command Bar on PCF Component added to Sub-grid\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#listItem\",\"position\":3,\"name\":\"How to show Command Bar on PCF Component added to Sub-grid\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/dynamics-365\\\/#listItem\",\"name\":\"Dynamics 365\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/\",\"name\":\"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2021\\\/03\\\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2021-03-12T10:50:58+05:30\",\"dateModified\":\"2021-09-03T04:45:19+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that","canonical_url":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#blogposting","name":"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"How to show Command Bar on PCF Component added to Sub-grid","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#articleImage","width":1272,"height":313,"caption":"show Command Bar on PCF Component added to Sub-grid"},"datePublished":"2021-03-12T10:50:58+05:30","dateModified":"2021-09-03T04:45:19+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#webpage"},"articleSection":"Dynamics 365, Dynamics CRM, Microsoft PowerApps, PCF Component"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","position":2,"name":"Dynamics 365","item":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#listItem","name":"How to show Command Bar on PCF Component added to Sub-grid"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#listItem","position":3,"name":"How to show Command Bar on PCF Component added to Sub-grid","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/#listItem","name":"Dynamics 365"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/","name":"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks","description":"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2021-03-12T10:50:58+05:30","dateModified":"2021-09-03T04:45:19+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that","og:url":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/","og:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg","og:image:secure_url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg","og:image:width":1272,"og:image:height":313,"article:published_time":"2021-03-12T10:50:58+00:00","article:modified_time":"2021-09-03T04:45:19+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"How to show Command Bar on PCF Component added to Sub-grid - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"Introduction PowerApps Component Framework is a natural successor of Web Resource. It gives us the choice to create field and dataset components and provide an enhanced user experience for the users to view and work with data in forms, views, and dashboards. While we were working on a request for a dataset PCF component that","twitter:creator":"@inogic","twitter:image":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2021\/03\/1-show-Command-Bar-on-PCF-Component-added-to-Sub-grid.jpeg","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"3 minutes"},"aioseo_meta_data":{"post_id":"27310","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 07:44:51","updated":"2025-07-04 08:29:19","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/\" title=\"Dynamics 365\">Dynamics 365<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to show Command Bar on PCF Component added to Sub-grid\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Dynamics 365","link":"https:\/\/www.inogic.com\/blog\/category\/dynamics-365\/"},{"label":"How to show Command Bar on PCF Component added to Sub-grid","link":"https:\/\/www.inogic.com\/blog\/2021\/03\/how-to-show-command-bar-on-pcf-component-added-to-sub-grid\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=27310"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/27310\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=27310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=27310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=27310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}