<?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: Macro script for current selections.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404672#M425512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the aim behind this query? I fancy it could be reached without macros just with native qlikview features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 11:07:33 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-09-13T11:07:33Z</dc:date>
    <item>
      <title>Macro script for current selections..</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404671#M425511</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;&lt;/P&gt;&lt;P&gt;I have a requirement, where I need to identify current selections i.e. Object Name, ObjectID and Selected Values.&lt;/P&gt;&lt;P&gt;So, I fount two different VBScripts. Please find below the 2 scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need your help to club both the scrips..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. For identifying Object Name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #ffff99;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SUB Objects()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;Shtobj = ActiveDocument.ActiveSheet.GetSheetObjects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;for i = lBound(Shtobj) to uBound(Shtobj)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;Obj = Shtobj(i).GetCaption.Name.v&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;ObjId = Shtobj(i).GetObjectId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;if instr(Obj, "Month Name") then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;msgbox Obj&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;msgbox ObjId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;END SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. For identifying Selected Values:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;sub theFieldValues ()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;set myfield = ActiveDocument.Fields("Month Name").GetPossibleValues&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;for i=0 to myfield.count-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;K = myfield.Item(i).Text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;msgbox K&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;H&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;Hi&lt;/OBJECT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 07:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404671#M425511</guid>
      <dc:creator>sravan_v007</dc:creator>
      <dc:date>2017-09-13T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro script for current selections..</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404672#M425512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the aim behind this query? I fancy it could be reached without macros just with native qlikview features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404672#M425512</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-13T11:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro script for current selections..</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404673#M425513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:&lt;/STRONG&gt; Users want a Button which will allow them to create link with current selections. which they can share with other users through a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. in simple words user want to create a Server Bookmark which they can share with others using mail link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt; We can create User and Document bookmarks but we can't create Server bookmarks. So, I am trying to identify selections, store them in a variable and later in a link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3847"&gt;AJAX and URL parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404673#M425513</guid>
      <dc:creator>sravan_v007</dc:creator>
      <dc:date>2017-09-13T11:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro script for current selections..</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404674#M425514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried &lt;BR /&gt;"More" -&amp;gt; "Mail with Bookmark as a Link" within the webclient?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404674#M425514</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-13T12:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro script for current selections..</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404675#M425515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Mail with Bookmark as a Link option.&lt;/P&gt;&lt;P&gt;But, Is it possible to put similar functionality as an Action button.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;OBJECT data-extension-version="0.5.0.161" data-install-updates-user-configuration="true" data-supports-flavor-configuration="true" style="display: none;"&gt;Hi &lt;BR /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-for-current-selections/m-p/1404675#M425515</guid>
      <dc:creator>sravan_v007</dc:creator>
      <dc:date>2017-09-14T09:53:10Z</dc:date>
    </item>
  </channel>
</rss>

