<?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 Re: Cannot read property 'MobilePortrait' of undefined in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/393149#M11696</link>
    <description>&lt;P&gt;Have you tried to update the Mobile layout setting by&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_self"&gt;&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_self"&gt;updateSettings&lt;/A&gt; function?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 10:39:45 GMT</pubDate>
    <dc:creator>v-micsh-msft</dc:creator>
    <dc:date>2018-04-10T10:39:45Z</dc:date>
    <item>
      <title>Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/390698#M11611</link>
      <description>&lt;P&gt;Im trying to embed a report for mobile and using the new property&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;settings&lt;SPAN class="pl-k"&gt;:&lt;/SPAN&gt; {
            layoutType&lt;SPAN class="pl-k"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pl-smi"&gt;models&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;LayoutType&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;MobilePortrait&lt;/SPAN&gt;
        }&lt;/PRE&gt;&lt;P&gt;found here:&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_blank"&gt;https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the report (which once loaded just fine) now kicks off an error:&lt;/P&gt;&lt;P&gt;Cannot read property 'MobilePortrait' of undefined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 22:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/390698#M11611</guid>
      <dc:creator>dcruise</dc:creator>
      <dc:date>2018-04-05T22:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/393149#M11696</link>
      <description>&lt;P&gt;Have you tried to update the Mobile layout setting by&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_self"&gt;&amp;nbsp;&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile" target="_self"&gt;updateSettings&lt;/A&gt; function?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 10:39:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/393149#M11696</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-04-10T10:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/395641#M11781</link>
      <description>&lt;P&gt;Yes, I just did tonight and still the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Cannot read property 'MobilePortrait' of undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;const newSettings = {&lt;BR /&gt;layoutType: models.LayoutType.MobilePortrait,&lt;BR /&gt;pageView: "oneColumn"&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;dashboard.updateSettings(newSettings);&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>Fri, 13 Apr 2018 04:30:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/395641#M11781</guid>
      <dc:creator>dcruise</dc:creator>
      <dc:date>2018-04-13T04:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/406254#M12114</link>
      <description>&lt;P&gt;I'm getting the same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I was able to fix my error by updating the Power Bi static files in my repo&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 21:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/406254#M12114</guid>
      <dc:creator>adamwallace3</dc:creator>
      <dc:date>2018-04-27T21:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/406356#M12116</link>
      <description>&lt;P&gt;Hey Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you illustrate what steps you took to do this? I am very interested and im sure others are as well!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! Glad you got it to work on your side!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 03:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/406356#M12116</guid>
      <dc:creator>dcruise</dc:creator>
      <dc:date>2018-04-28T03:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/407284#M12140</link>
      <description>&lt;P&gt;I first built my site to host my embedded dashboards in September of 2017. When I built the page that hosts the embedded reports themselves I cloned the PowerBi report library from &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript" target="_self"&gt;GitHub &lt;/A&gt;and placed it the sites static file directory. To fix my problem, I cloned the most recent version of the Power Bi library and replaced the existing static files. I reloaded my static files and refreshed my server and everything works now.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:26:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/407284#M12140</guid>
      <dc:creator>adamwallace3</dc:creator>
      <dc:date>2018-04-30T13:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'MobilePortrait' of undefined</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/437293#M13500</link>
      <description>&lt;P&gt;Pro tip: when replacing the powerbi.js file be sure to wipe your cache.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-read-property-MobilePortrait-of-undefined/m-p/437293#M13500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-11T20:53:32Z</dc:date>
    </item>
  </channel>
</rss>

