<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Customizing Embedded Report Toolbar Icons in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4309202#M58509</link>
    <description>&lt;P&gt;Is there a way to hide specific toolbar icons inside the embedded PowerBI report:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tks1011_0-1733115639454.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1208604i6DE2CC58B246B34F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_0-1733115639454.png" alt="tks1011_0-1733115639454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 05:04:27 GMT</pubDate>
    <dc:creator>tks1011</dc:creator>
    <dc:date>2024-12-02T05:04:27Z</dc:date>
    <item>
      <title>Customizing Embedded Report Toolbar Icons</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4309202#M58509</link>
      <description>&lt;P&gt;Is there a way to hide specific toolbar icons inside the embedded PowerBI report:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tks1011_0-1733115639454.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1208604i6DE2CC58B246B34F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_0-1733115639454.png" alt="tks1011_0-1733115639454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 05:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4309202#M58509</guid>
      <dc:creator>tks1011</dc:creator>
      <dc:date>2024-12-02T05:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing Embedded Report Toolbar Icons</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4310773#M58531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/878906"&gt;@tks1011&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please review the following links, I hope they will assist you in achieving&amp;nbsp;the requirement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings" target="_blank"&gt;Configure embedded report settings | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/embed-for-organization" target="_blank"&gt;Use the action bar to enhance user experience in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;var models = window['powerbi-client'].models;

var embedConfiguration = {
    type: 'report',
    id: '&amp;lt;Your Report ID&amp;gt;',
    embedUrl: '&amp;lt;Your Embed URL&amp;gt;',
    accessToken: '&amp;lt;Your Access Token&amp;gt;',
    tokenType: models.TokenType.Embed,
    settings: {
        panes: {
            filters: {
                visible: false
            },
            pageNavigation: {
                visible: false
            }
        },
        navContentPaneEnabled: false,
        layoutType: models.LayoutType.Custom,
        customLayout: {
            displayOption: models.DisplayOption.FitToWidth
        },
        toolbar: {
            visible: true,
            exportData: false,
            bookmarks: false,
            filters: false,
            comments: false,
            custom: [{
                name: "customButton",
                title: "Custom Button",
                icon: "&amp;lt;svg&amp;gt;...&amp;lt;/svg&amp;gt;",
                tooltip: "Click this custom button",
                onAction: function() {
                    console.log("Custom button clicked");
                }
            }]
        }
    }
};&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 03:18:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4310773#M58531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-03T03:18:04Z</dc:date>
    </item>
    <item>
      <title>How to Hide Icons (highlighted in below Image) in the Embedded Power BI Action Bar</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4314537#M58571</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tks1011_0-1733373852917.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210347i8B78A552A156066E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tks1011_0-1733373852917.png" alt="tks1011_0-1733373852917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We Wanted to hide these particularly highlighted icons in the PowerBI report action bar. Below are the approaches we tried to work around this problem but did not find any solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;U&gt;According to these documentations&lt;/U&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/embed-for-organization" target="_blank" rel="noopener"&gt;Use the action bar to enhance user experience in a Power BI embedded analytics application | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/javascript/api/overview/powerbi/configure-report-settings" target="_blank" rel="noopener"&gt;Configure embedded report settings | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; You can either completely hide or show the action bar but in the documentation, there is no mention of how to hide icons of the action bar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;From the documentation we can only control the visibility of panes, bookmarks and bars.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_1-1733373932017.png" style="width: 200px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210350iB2ED7F85F3935E4C/image-size/small?v=v2&amp;amp;px=200" role="button" title="tks1011_1-1733373932017.png" alt="tks1011_1-1733373932017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_2-1733373963783.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210353i08B44EFA5EDD3437/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_2-1733373963783.png" alt="tks1011_2-1733373963783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; 2.&lt;U&gt; Attempt to manipulate Action Bar using bindPowerBIevents:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Unable to manipulate the Action Bar using ‘render’, load’, 'dataSelected' and ‘clickButton’ events, but were unable to access the elements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_3-1733374013883.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210358i1FCF4BA3021686F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_3-1733374013883.png" alt="tks1011_3-1733374013883.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_4-1733374032289.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210359i915990A5A3D45E06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_4-1733374032289.png" alt="tks1011_4-1733374032289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_5-1733374052765.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210361iCBE40330545D7531/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_5-1733374052765.png" alt="tks1011_5-1733374052765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 3.&amp;nbsp;&lt;U&gt;Manipulating the document of IFrame:&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Tried to hide the action bar textbox button with the help of browser console and successfully hid it (in the reportEmbed level), but when tried to access it by below code in the top level (parent page) it shows NULL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_6-1733374102163.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210363iFF781EE007D88E86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_6-1733374102163.png" alt="tks1011_6-1733374102163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Even though the iframe we are getting from the inspect element(browser) of the embedded report and the iframe we are getting from the above code is exactly same and both have the desired button but when we tried this code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_7-1733374141972.png" style="width: 731px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210364i32D1FEC6E3796DC3/image-dimensions/731x26?v=v2" width="731" height="26" role="button" title="tks1011_7-1733374141972.png" alt="tks1011_7-1733374141972.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; We are getting ‘NULL’ when we run the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_8-1733374178725.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210366i0ABC9D50439DA042/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_8-1733374178725.png" alt="tks1011_8-1733374178725.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Also, when we try to access the contentWindow of the iFrame it gives CORS error:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_9-1733374220463.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210368i575090433ADFCD1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_9-1733374220463.png" alt="tks1011_9-1733374220463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 4. Attempted to make a custom visual and pass javascript into it to manipulate the action bar but the DOM of this custom visual was limited to itself only and could not access any parent page or PowerBI report elements:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tks1011_10-1733374274289.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210371i24F787526A57D544/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tks1011_10-1733374274289.png" alt="tks1011_10-1733374274289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tks1011_11-1733374301468.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1210373i3DD7BAA208EEB48B/image-size/large?v=v2&amp;amp;px=999" role="button" title="tks1011_11-1733374301468.png" alt="tks1011_11-1733374301468.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Since the above approaches did not yield the desired results, I would greatly appreciate your assistance in finding a solution to customize the action bar (specifically, hiding icons).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 05:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Customizing-Embedded-Report-Toolbar-Icons/m-p/4314537#M58571</guid>
      <dc:creator>tks1011</dc:creator>
      <dc:date>2024-12-05T05:20:31Z</dc:date>
    </item>
  </channel>
</rss>

