<?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 copy value in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213615#M502909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the example file ?&lt;/P&gt;&lt;P&gt;The value of salesman myst be ? what I selected in a table.&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 10:06:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-22T10:06:15Z</dc:date>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213613#M502907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I need to copy the actual value of one field in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * inline [&lt;BR /&gt; salesman , qty&lt;BR /&gt; paul , 10&lt;BR /&gt; peter , 50&lt;BR /&gt; Alan , 30&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;I put this values in a table&lt;/P&gt;&lt;P&gt;Now, if I select one Item in a table I would to copy the value of Salesman field&lt;BR /&gt;I selected in the variable . In this way I could to use the variable also ina a SQL&lt;BR /&gt;scrpt.&lt;BR /&gt;How to do this?&lt;/P&gt;&lt;P&gt;Thabk you .&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;-&lt;BR /&gt;slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 08:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213613#M502907</guid>
      <dc:creator />
      <dc:date>2010-09-22T08:58:37Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213614#M502908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if you create a variable vTest and put the value to field (=salesman) the variable will assume the field value when it is uniqely identified and null if it isn't&lt;/P&gt;&lt;P&gt;elsewhere if you want to have ever a value in variable you can use an aggragation value in variable (=Max(salesman))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 09:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213614#M502908</guid>
      <dc:creator />
      <dc:date>2010-09-22T09:56:42Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213615#M502909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post the example file ?&lt;/P&gt;&lt;P&gt;The value of salesman myst be ? what I selected in a table.&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213615#M502909</guid>
      <dc:creator />
      <dc:date>2010-09-22T10:06:15Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213616#M502911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 10:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213616#M502911</guid>
      <dc:creator />
      <dc:date>2010-09-22T10:24:57Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213617#M502913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but is not what I'm looking for to obtain.&lt;/P&gt;&lt;P&gt;Please look the example I attached in this post.&lt;/P&gt;&lt;P&gt;The value New is empty. I nedd tocopy the value in th variable by sql. look in the scrpt.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Salsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 10:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213617#M502913</guid>
      <dc:creator />
      <dc:date>2010-09-22T10:43:03Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213618#M502916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe by Api ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213618#M502916</guid>
      <dc:creator />
      <dc:date>2010-09-22T13:43:47Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213619#M502917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached a new file,&lt;/P&gt;&lt;P&gt;the variable is now built by API and I need to copi into a varable the value I selected.&lt;/P&gt;&lt;P&gt;When I press the button I verify the value of variable. Please someone could to complete the script?&lt;/P&gt;&lt;P&gt;I need to set the content ( what is selected in a field salesman.&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 09:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213619#M502917</guid>
      <dc:creator />
      <dc:date>2010-09-23T09:43:58Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213620#M502920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Slash,&lt;/P&gt;&lt;P&gt;Please check the attached file.&lt;/P&gt;&lt;P&gt;Help this one helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 10:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213620#M502920</guid>
      <dc:creator />
      <dc:date>2010-09-23T10:04:15Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213621#M502921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Tahnks., but I add a "feature". I need the che is mad in the text object (&lt;/P&gt;&lt;P&gt;TX01 ) and not in a field . the value must be JUSt one selected. if I selct a null value the msgbox have to show "please select a value" .&lt;/P&gt;&lt;P&gt;find file in attachement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tabk you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 10:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213621#M502921</guid>
      <dc:creator />
      <dc:date>2010-09-23T10:37:16Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213622#M502922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have you time to help me to add the features?&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 11:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213622#M502922</guid>
      <dc:creator />
      <dc:date>2010-09-23T11:03:21Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213623#M502923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Slash,&lt;/P&gt;&lt;P&gt;Heres the updated one. This only select one salesman and has verification if no salesman is selected.&lt;/P&gt;&lt;P&gt;I use this code in OnSelect Action of Salesman.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;=SubField(GetFieldSelections(Field), ',', 1)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this solves your problem&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 11:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213623#M502923</guid>
      <dc:creator />
      <dc:date>2010-09-23T11:19:33Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213624#M502924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one thing:&lt;/P&gt;&lt;P&gt;you have insert this code in API:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;SET&lt;/B&gt; selectedValue = ActiveDocument.fields("salesman" &lt;P&gt;).GetSelectedValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need the value comes from a TEXT BOX andnot from a Salesman Field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for you BEST support&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Sep 2010 11:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213624#M502924</guid>
      <dc:creator />
      <dc:date>2010-09-23T11:27:48Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213625#M502925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nadsky,&lt;/P&gt;&lt;P&gt;the applicatio wascorrect but I need to capture a value from a text box.&lt;/P&gt;&lt;P&gt;I select a salesman the valueis copued in a text object and I put from a TBLE BOX to a variable and not from a field ?&lt;/P&gt;&lt;P&gt;Please, could to update the code?&lt;/P&gt;&lt;P&gt;Thnks so much&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;Slash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 08:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213625#M502925</guid>
      <dc:creator />
      <dc:date>2010-09-24T08:21:20Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213626#M502926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Slash,&lt;/P&gt;&lt;P&gt;Please use this macro code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub mySub&lt;BR /&gt;&lt;BR /&gt; Set myText = ActiveDocument.GetSheetObject("TX01")&lt;BR /&gt; Set v = ActiveDocument.Variables("new")&lt;BR /&gt;&lt;BR /&gt; if myText.GetText = "-" then&lt;BR /&gt; msgbox("Please select a value")&lt;BR /&gt; else&lt;BR /&gt; v.SetContent myText.GetText, true&lt;BR /&gt; end if&lt;BR /&gt; end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The variable now get its value from the value of the textbox.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadsky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 08:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213626#M502926</guid>
      <dc:creator />
      <dc:date>2010-09-24T08:54:08Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213627#M502927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure of this line::&lt;/P&gt;&lt;P&gt;if myText.GetText = "-" then&lt;/P&gt;&lt;P&gt;it doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 09:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213627#M502927</guid>
      <dc:creator />
      <dc:date>2010-09-24T09:49:23Z</dc:date>
    </item>
    <item>
      <title>copy value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213628#M502928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup.. if you don't select any customer from the list box the text value of Text Object is a dash (-)&lt;/P&gt;&lt;P&gt;Please see attached file. It works !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 10:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/copy-value-in-a-variable/m-p/213628#M502928</guid>
      <dc:creator />
      <dc:date>2010-09-24T10:16:39Z</dc:date>
    </item>
  </channel>
</rss>

