<?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: Update multiple master measures in go using Engine API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Update-multiple-master-measures-in-go-using-Engine-API/m-p/68593#M965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like you use fixed values for handle in your commands, you probably need to parse the replies to find the actual handle, which will probably be different for the second measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your context, but another possibility is to use a variable in your expressions, and simply change the variable value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 20:16:26 GMT</pubDate>
    <dc:creator>ErikWetterberg</dc:creator>
    <dc:date>2018-02-22T20:16:26Z</dc:date>
    <item>
      <title>Update multiple master measures in go using Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Update-multiple-master-measures-in-go-using-Engine-API/m-p/68592#M964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a mashup application wherein in need to update the formulae of multiple measures or dimensions in one go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's suppose I have two master measures having IDs &lt;STRONG&gt;x1&lt;/STRONG&gt; and &lt;STRONG&gt;x2&lt;/STRONG&gt; having formula as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x1: Field1 + Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x2: FIeld1 + Field3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to replace &lt;STRONG&gt;Field1&lt;/STRONG&gt; with &lt;STRONG&gt;Field4&lt;/STRONG&gt; in both the measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The steps I am following to update the measure using Engine API are as follows:&lt;/P&gt;&lt;P&gt;1. CreateSessionObject&lt;/P&gt;&lt;P&gt;2. GetLayout&lt;/P&gt;&lt;P&gt;3. GetMeasure&lt;/P&gt;&lt;P&gt;4. GetProperties&lt;/P&gt;&lt;P&gt;5. SetProperties&lt;/P&gt;&lt;P&gt;6. DestroySessionObject&lt;/P&gt;&lt;P&gt;7. SaveChanges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a loop to iterate through these IDs and calling these methods in sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that it updates the first Measure and not the subsequent one (receiving error: &lt;STRONG&gt;"{"jsonrpc":"2.0","id":0,"error":{"code":-32602,"parameter":"Invalid handle","message":"Invalid Params"}}"&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't figure out what is causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 08:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Update-multiple-master-measures-in-go-using-Engine-API/m-p/68592#M964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update multiple master measures in go using Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Update-multiple-master-measures-in-go-using-Engine-API/m-p/68593#M965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like you use fixed values for handle in your commands, you probably need to parse the replies to find the actual handle, which will probably be different for the second measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your context, but another possibility is to use a variable in your expressions, and simply change the variable value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Update-multiple-master-measures-in-go-using-Engine-API/m-p/68593#M965</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-22T20:16:26Z</dc:date>
    </item>
  </channel>
</rss>

