<?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: Attach and Detach for report in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790892#M279649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Sorry for my poor English skills, but I will try to explain more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;As I understand it is not possible to prevent the removing detach status, if I will reload data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1. I have 12 different objects (tables, diagrams etc.) created for QV Report.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2. I have to set different selections for those objects (Warehouse code, part group etc.).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;3. After setting selections on one object I will put detach status to this object.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;4. I will repeated this for each object.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;5. After this I get correct report.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;6.&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I wrote a macro for this&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sub CH51&lt;BR /&gt; ActiveDocument.GetSheetObject("CH51").Attach&lt;BR /&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "600"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH51").Detach&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetSheetObject("CH52").Attach&lt;BR /&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "600"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH52").Detach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ActiveDocument.GetSheetObject("CH53").Attach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "650"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH53").Detach&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 35.4pt;"&gt; &lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; text-indent: 35.4pt; line-height: 1.5em;"&gt;’etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;7. This macro is not working correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Riho&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 12:09:54 GMT</pubDate>
    <dc:creator>riho92qv</dc:creator>
    <dc:date>2015-03-12T12:09:54Z</dc:date>
    <item>
      <title>Attach and Detach for report</title>
      <link>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790889#M279646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a report with multiple objects and different objects need different selections. I used attach and detach for this and it works, Because i have&amp;nbsp; 12 objects in my reports, i tried to write&amp;nbsp; a macro for this. For one object this macro is like:&lt;/P&gt;&lt;P&gt;Sub CH53 ' WH650 table&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.ClearAll True&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetSheetObject("CH53").Attach&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.Fields("WarehouseCode").Select "650"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ActiveDocument.GetSheetObject("CH53").Detach&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some objects its works but not for all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possible solution to my problem would be to prohibit removing detach from objects if i will reload data.&lt;/P&gt;&lt;P&gt;Riho&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790889#M279646</guid>
      <dc:creator>riho92qv</dc:creator>
      <dc:date>2015-03-12T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Attach and Detach for report</title>
      <link>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790890#M279647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Riho Michalski,&lt;/P&gt;&lt;P&gt;&amp;nbsp; can you explain brefly i am unable understand what do you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790890#M279647</guid>
      <dc:creator>ravindraa</dc:creator>
      <dc:date>2015-03-12T10:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Attach and Detach for report</title>
      <link>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790891#M279648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not work with a set of targeted bookmarks? Easier to manage, IMHO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 10:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790891#M279648</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-12T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Attach and Detach for report</title>
      <link>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790892#M279649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Sorry for my poor English skills, but I will try to explain more.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;As I understand it is not possible to prevent the removing detach status, if I will reload data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1. I have 12 different objects (tables, diagrams etc.) created for QV Report.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2. I have to set different selections for those objects (Warehouse code, part group etc.).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;3. After setting selections on one object I will put detach status to this object.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;4. I will repeated this for each object.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;5. After this I get correct report.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;6.&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I wrote a macro for this&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Sub CH51&lt;BR /&gt; ActiveDocument.GetSheetObject("CH51").Attach&lt;BR /&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "600"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH51").Detach&lt;BR /&gt; &lt;BR /&gt; ActiveDocument.GetSheetObject("CH52").Attach&lt;BR /&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "600"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH52").Detach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ActiveDocument.GetSheetObject("CH53").Attach&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; ActiveDocument.ClearAll True&lt;BR /&gt; ActiveDocument.Fields("WarehouseCode").Select "650"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH53").Detach&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 35.4pt;"&gt; &lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; text-indent: 35.4pt; line-height: 1.5em;"&gt;’etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;7. This macro is not working correctly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Riho&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 12:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Attach-and-Detach-for-report/m-p/790892#M279649</guid>
      <dc:creator>riho92qv</dc:creator>
      <dc:date>2015-03-12T12:09:54Z</dc:date>
    </item>
  </channel>
</rss>

