<?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: Mashup to retrieve values from a single row straight table in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/1636149#M11596</link>
    <description>&lt;P&gt;you could use&amp;nbsp; variable.setStringValue method to assign value into script variable :&lt;/P&gt;&lt;P&gt;app.variable.setStringValue("variable", value);&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 14:15:24 GMT</pubDate>
    <dc:creator>dannyy81</dc:creator>
    <dc:date>2019-10-16T14:15:24Z</dc:date>
    <item>
      <title>Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99991#M1381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a mashup that needs to retrieve two values from a single row straight table, as illustrated below.&amp;nbsp; In one variable I would want the value 22333 and in the second variable 33222.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="st.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217336_st.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;What is the JS to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 18:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99991#M1381</guid>
      <dc:creator>jerryhelms2017</dc:creator>
      <dc:date>2018-11-01T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99992#M1382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can calculate the two values directly with two variables without using Javascript at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll have to make use of the Aggr function which can help you grouping over the necessary dimensions and the first parameter will be the expression with an aggregation function that you want to calculate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vVariableA=Aggr( Sum( {&amp;lt;Year={2017},Country={'Tinystan'}&amp;gt;} Something ) , Year , Country )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 19:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99992#M1382</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-11-01T19:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99993#M1383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a mashup solution to retrieve the data points.&amp;nbsp; The straight table will incorporate any needed aggregations.&amp;nbsp; The standard mashup solution to retrieve the visualization object is similar to the Js code shown below.&amp;nbsp; Rather than retrieving the object, I want to retrieve the values in the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var app = qlik.openApp('50fa200c-9d3b-4048-ac1e-573af8cdd11f', config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//get objects -- inserted here --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.getObject('QV04','xwjwJm');&lt;/P&gt;&lt;P&gt;app.getObject('QV03','XYThZn');&lt;/P&gt;&lt;P&gt;app.getObject('QV02','vpFgFAg');&lt;/P&gt;&lt;P&gt;app.getObject('QV01','phfXmU');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 13:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99993#M1383</guid>
      <dc:creator>jerryhelms2017</dc:creator>
      <dc:date>2018-11-02T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99994#M1384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could use the &lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/Subsystems/APIs/Content/CapabilityAPIs/AppAPI/createCube-method.htm"&gt;createCube &lt;/A&gt;method in the API. I assume there are som formulas behind the values in your example, just provide them as measures and you will get a small hypercube back with the actual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;P&gt;&lt;A href="https://extendingqlik.upper88.com/" title="https://extendingqlik.upper88.com/"&gt;https://extendingqlik.upper88.com/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2018 09:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99994#M1384</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-11-03T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99995#M1385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following code retrieves the object model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var app = qlik.openApp('e968b99c-595f-4106-8e78-9498b96ddd6e', config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//get objects -- inserted here --&lt;/P&gt;&lt;P&gt;app.getObject('QV01','RMgxzbF').then(model =&amp;gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.log('a: ',model.layout.qHyperCube.qSize);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; model.getHyperCubeData('/qHyperCubeDef', [{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; qTop: 0,&lt;/P&gt;&lt;P&gt;qLeft: 0,&lt;/P&gt;&lt;P&gt;qwidth: 2,&lt;/P&gt;&lt;P&gt;qHeight: 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; }]).then(data =&amp;gt; console.log('b: ',data))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the data points in the console.&amp;nbsp; How do I retrieve the&amp;nbsp; data points to two different variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="console.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217895_console.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99995#M1385</guid>
      <dc:creator>jerryhelms2017</dc:creator>
      <dc:date>2018-11-08T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99996#M1386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var row = data[0].qMatrix[0];&lt;/P&gt;&lt;P&gt;var x1 = row[0].qNum;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;P&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99996#M1386</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-11-08T18:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99997#M1387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help.&amp;nbsp; I am pretty new to Javascript and it is not clear to me where I would place your suggested code to retrieve the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 13:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/99997#M1387</guid>
      <dc:creator>jerryhelms2017</dc:creator>
      <dc:date>2018-11-09T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/1507365#M9485</link>
      <description>&lt;P&gt;Try the place where you log the data today.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/1507365#M9485</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-11-15T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mashup to retrieve values from a single row straight table</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/1636149#M11596</link>
      <description>&lt;P&gt;you could use&amp;nbsp; variable.setStringValue method to assign value into script variable :&lt;/P&gt;&lt;P&gt;app.variable.setStringValue("variable", value);&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 14:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Mashup-to-retrieve-values-from-a-single-row-straight-table/m-p/1636149#M11596</guid>
      <dc:creator>dannyy81</dc:creator>
      <dc:date>2019-10-16T14:15:24Z</dc:date>
    </item>
  </channel>
</rss>

