<?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 Hide sheet based on screen resolution in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hide-sheet-based-on-screen-resolution/m-p/1844282#M69860</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We developed an application on a screen that is 1920x1080 but we discovered a user has a 1366x760 screen resolution so we were looking for a solution to this that could be scalable. Our idea was to create different sheets based on different screen resolutons and than display the right one based on the resolution of the screen the app is working on.&lt;/P&gt;&lt;P&gt;My question so is, is there a way to retrieve the display resolution in qlik sense? are there extensions that can achieve this task?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Oct 2021 15:05:23 GMT</pubDate>
    <dc:creator>FabioGavinelli</dc:creator>
    <dc:date>2021-10-08T15:05:23Z</dc:date>
    <item>
      <title>Hide sheet based on screen resolution</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-sheet-based-on-screen-resolution/m-p/1844282#M69860</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We developed an application on a screen that is 1920x1080 but we discovered a user has a 1366x760 screen resolution so we were looking for a solution to this that could be scalable. Our idea was to create different sheets based on different screen resolutons and than display the right one based on the resolution of the screen the app is working on.&lt;/P&gt;&lt;P&gt;My question so is, is there a way to retrieve the display resolution in qlik sense? are there extensions that can achieve this task?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 15:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-sheet-based-on-screen-resolution/m-p/1844282#M69860</guid>
      <dc:creator>FabioGavinelli</dc:creator>
      <dc:date>2021-10-08T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hide sheet based on screen resolution</title>
      <link>https://community.qlik.com/t5/App-Development/Hide-sheet-based-on-screen-resolution/m-p/1844917#M69910</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If my understanding is correct, you want to build&amp;nbsp;multiple sheets that contain the same visualizations, but different sheet size. Then you want to hide the sheets and display them only if the screen resolution of the user matches the sheet's specified size dimensions.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I would suggest build the sheets only once and leave the option &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Sheet size&lt;/STRONG&gt;&lt;/SPAN&gt; to &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;Responsive&lt;/STRONG&gt;&lt;/SPAN&gt;. This way Qlik Sense will make all of the visualizations responsive on any screen size. This is a good practice because:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;Screen resolution might change if the user will attach his computer to a different monitor, therefore creating the same sheet multiple times just to cover most of the common screen resolutions, will be a lot of work and not very practical.&lt;/LI&gt;
 &lt;LI&gt;Additionally, imagine that you have to create 50+ sheets for data analysis and then you have to create another 50+ sheets just to adjust on the screen resolution of a particular user. This means that you will end up with 100+ visualizations which will take you too much time to create. But at the same time, the more visualizations you create, the more you will overload the app, making it less efficient each time.&lt;/LI&gt;
 &lt;LI&gt;If you keep the Sheet's size to Responsive, then no matter what is the screen resolution of the device where the app will be previewed, the elements will be adjusted accordingly.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If you still would like to have this option then you can probably achieve this by creating your own custom extension. I was unable to find a custom extension that can do this for you, however you might be able to achieve this with further research on your own. Some&amp;nbsp;information that might help you is:&lt;/P&gt;

&lt;OL&gt;
 &lt;LI&gt;Create a custom extension [1]&lt;/LI&gt;
 &lt;LI&gt;In your code you can add something like:&lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;let screenResolutionWidth = window.screen.width;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;let screenResolutionHeight = window.screen.height;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;var div = `&amp;lt;div&amp;gt;The device's screen resolution is: ${screenResolutionWidth}px x ${screenResolutionHeight}px&amp;lt;/div&amp;gt;`;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;This will give you the following details:&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/5dc74a74-dd1e-434a-a9c7-563765765280.default.PNG" /&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;As you can see, it is an extension that shows you the resolution of your device&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;Then you can have an variable and find a way to update this variable with your custom extension. This link[2] might help with this.&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;On one sheet you can update the&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt; Show condition&lt;/STRONG&gt;&lt;/SPAN&gt; as&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=varScreenHeight = '1080' and varScreenWidth = '1920'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:null"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;SPAN style="color:null"&gt;On the other sheet you can update the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Show condition&lt;/STRONG&gt;&lt;/SPAN&gt; as&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=varScreenHeight = '760' and varScreenWidth = '1366'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:null"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
 &lt;LI&gt;
 &lt;P&gt;&lt;SPAN style="color:null"&gt;Now when you manage to create the&amp;nbsp;custom extension&amp;nbsp;that will update the variable based on the values that it will get of the screen resolution, your sheets will hide and unhide accordingly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:null"&gt;I hope that this information&amp;nbsp;was helpful.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:null"&gt;​​​​​​​&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;---&lt;/P&gt;

&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/extensions-getting-started.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/Extensions/Content/Sense_Extensions/extensions-getting-started.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Variable-set/td-p/1573180" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/Extension-Variable-set/td-p/1573180&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 13:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hide-sheet-based-on-screen-resolution/m-p/1844917#M69910</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-10-11T13:46:48Z</dc:date>
    </item>
  </channel>
</rss>

