<?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: Selection and Copy of Cell/Table (included in mashup) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Selection-and-Copy-of-Cell-Table-included-in-mashup/m-p/41350#M637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can get some limited support for selecting text with css user-select &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-select" title="https://developer.mozilla.org/en-US/docs/Web/CSS/user-select"&gt;user-select - CSS | MDN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By default Qlik Sense turns off user-select. But be careful, sometimes it has unwanted side effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Mar 2018 07:11:37 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2018-03-17T07:11:37Z</dc:date>
    <item>
      <title>Selection and Copy of Cell/Table (included in mashup)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Selection-and-Copy-of-Cell-Table-included-in-mashup/m-p/41349#M636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;Believe this issue is somehow "old", but I didnt found an answer... also couldnt found the issue I'm facing exactly explained in the exact terms...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikSense (ServerEdition)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 scenarios:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 1&lt;/STRONG&gt; (not ideal, but aceptable) -- select and copy a specifc table included in one container (mashup)&lt;/P&gt;&lt;P&gt;By default, each cell of table is a point of selection/filter... hence the behaviour after click action (of drag over) doesnt allow selection (and then right click windows menu with normal options).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first attempt to reach some solution was to disable the SELECTION (filter action) behaviour by edit java module&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;app.getObject('QV-A-01','kGDdR',&lt;SPAN style="color: #ff0000;"&gt;{noSelections: true, noInteraction: false}&lt;/SPAN&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This disables the filter action (click action over table/cells) don't work; OK &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now I thought (before I get scenario 2 solution) ... let's call the entire table as an object and place the content (as text) in clipboard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For that, created a function (on Java module)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;function myFunction() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; var copyText = document.getElementById('QV-A-01",'kGDdR');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; copyText.select();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; document.execCommand("Copy");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; alert("Table copies: " + copyText.value);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And then, created a button on html module (onclick, to copy) -- image below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;lt;button onclick="myFunction()"&amp;gt;Copy Table&amp;lt;/button&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It doesnt work... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik_q1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196592_Qlik_q1.PNG" style="height: 239px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 2&lt;/STRONG&gt; (ideal) -- select and copy 1 cell of a specifc table.&lt;/P&gt;&lt;P&gt;User will point over a specific cell (table) and context menu (mouse right click will open -- copy option available).&lt;/P&gt;&lt;P&gt;Only cell text will be copied to clipboard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help...?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 15:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Selection-and-Copy-of-Cell-Table-included-in-mashup/m-p/41349#M636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-16T15:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection and Copy of Cell/Table (included in mashup)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Selection-and-Copy-of-Cell-Table-included-in-mashup/m-p/41350#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can get some limited support for selecting text with css user-select &lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/user-select" title="https://developer.mozilla.org/en-US/docs/Web/CSS/user-select"&gt;user-select - CSS | MDN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;By default Qlik Sense turns off user-select. But be careful, sometimes it has unwanted side effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 07:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Selection-and-Copy-of-Cell-Table-included-in-mashup/m-p/41350#M637</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-03-17T07:11:37Z</dc:date>
    </item>
  </channel>
</rss>

