<?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 Text Boxes, linking values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142185#M21728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do that you need to write a macro that reads the value of A and B, then does the calculation and puts that into C. And have that to be triggered on some event.&lt;/P&gt;&lt;P&gt;I guess it should look something like this:&lt;/P&gt;&lt;P&gt;set objA = ActiveDocument.GetSheetObject("A")&lt;BR /&gt;set objB = ActiveDocument.GetSheetObject("B")&lt;BR /&gt;set objC = ActiveDocument.GetSheetObject("C")&lt;/P&gt;&lt;P&gt;objC.SetText = objA.GetText + objB.GetText&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 14:47:34 GMT</pubDate>
    <dc:creator>tseebach</dc:creator>
    <dc:date>2009-04-23T14:47:34Z</dc:date>
    <item>
      <title>Text Boxes, linking values</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142183#M21726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three text boxes, let's call them Object IDs A, B and C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A=1, B=2, therefore I want C to equal the average, 2.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to write a lengthy if statement but I can't work out how to write: =(A+B)/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 13:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142183#M21726</guid>
      <dc:creator />
      <dc:date>2009-04-23T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Text Boxes, linking values</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142184#M21727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use Sum function......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142184#M21727</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2009-04-23T14:18:50Z</dc:date>
    </item>
    <item>
      <title>Text Boxes, linking values</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142185#M21728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do that you need to write a macro that reads the value of A and B, then does the calculation and puts that into C. And have that to be triggered on some event.&lt;/P&gt;&lt;P&gt;I guess it should look something like this:&lt;/P&gt;&lt;P&gt;set objA = ActiveDocument.GetSheetObject("A")&lt;BR /&gt;set objB = ActiveDocument.GetSheetObject("B")&lt;BR /&gt;set objC = ActiveDocument.GetSheetObject("C")&lt;/P&gt;&lt;P&gt;objC.SetText = objA.GetText + objB.GetText&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142185#M21728</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2009-04-23T14:47:34Z</dc:date>
    </item>
    <item>
      <title>Text Boxes, linking values</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142186#M21729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the above. Is tehre any way to do this without running a macro? I'd like the user to see it without having to press anything to calculate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 19:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142186#M21729</guid>
      <dc:creator />
      <dc:date>2009-04-23T19:04:08Z</dc:date>
    </item>
    <item>
      <title>Text Boxes, linking values</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142187#M21730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you define 3 variables and show the variables in the text boxes. To declare the variables in the load script, use following:&lt;/P&gt;&lt;P&gt;LET var_A = 1;&lt;/P&gt;&lt;P&gt;LET var_B = 2;&lt;/P&gt;&lt;P&gt;SET var_C = '(var_A + var_B)/2';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;notice the SET for var_C - this way, the value will be re-evaluated every time any of the variables is changing. You can also declare those variables in the runtime, using "Variables Overview" under "Settings".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck!&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 19:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Boxes-linking-values/m-p/142187#M21730</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-04-23T19:11:05Z</dc:date>
    </item>
  </channel>
</rss>

