<?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: value in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766282#M272311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MARCUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example if we have client as field in the table box and and it contains 10 different values of different clientname. then how you get the selected client in the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;client&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxxx4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;suppose if i click the xxx10 and the same value has to be&amp;nbsp; passed in the macro what is the coding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 13:14:24 GMT</pubDate>
    <dc:creator>manoranjan_d</dc:creator>
    <dc:date>2015-03-09T13:14:24Z</dc:date>
    <item>
      <title>value in macro</title>
      <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766280#M272309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the "&lt;STRONG&gt;value of the field from table box"&lt;/STRONG&gt; in the&amp;nbsp; macro coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766280#M272309</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2015-03-09T13:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: value in macro</title>
      <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766281#M272310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on this example from APIGuide.qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set TableBox = ActiveDocument.GetSheetObject( "TB01" )&lt;/P&gt;&lt;P&gt;CellRect = ActiveDocument.GetApplication().GetEmptyRect()&lt;/P&gt;&lt;P&gt;CellRect.Top = 0&lt;/P&gt;&lt;P&gt;CellRect.Left = 0&lt;/P&gt;&lt;P&gt;CellRect.Width = TableBox.GetColumnCount&lt;/P&gt;&lt;P&gt;CellRect.Height = TableBox.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = TableBox.GetCells( CellRect )&lt;/P&gt;&lt;P&gt;for RowIter=CellRect.Top to CellRect.Height-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter=CellRect.Left to CellRect.Width-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766281#M272310</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-09T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: value in macro</title>
      <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766282#M272311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MARCUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example if we have client as field in the table box and and it contains 10 different values of different clientname. then how you get the selected client in the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;client&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxxx4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;xxx10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;suppose if i click the xxx10 and the same value has to be&amp;nbsp; passed in the macro what is the coding?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766282#M272311</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2015-03-09T13:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: value in macro</title>
      <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766283#M272312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//create a variable in UI like : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;vClient=GetFieldSelections(Client)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;//in macro &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DIM vClient1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vClient1=ActiveDocument.GetVariable("vClient").GetContent.String&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now your &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vClient1 is having selected client name (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;xxx10 &lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766283#M272312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-09T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: value in macro</title>
      <link>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766284#M272313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's easier to run directly through a field instead of using a tablebox:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("clientname").GetPossibleValues&lt;/P&gt;&lt;P&gt;for i=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(val.Item(i).Text)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/value-in-macro/m-p/766284#M272313</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-03-09T13:30:16Z</dc:date>
    </item>
  </channel>
</rss>

