<?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: Create a transient object to hold the measures in an app in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-transient-object-to-hold-the-measures-in-an-app/m-p/1682907#M12461</link>
    <description>&lt;P&gt;OK, it seems that I found the solution. So I will leave it here for anyone looking for the same thing in the future.&lt;/P&gt;&lt;P&gt;Cheers, guys!&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Dim props As GenericObjectProperties = New GenericObjectProperties With {.Info = New NxInfo With {.Id = "ML01", .Type = "MeasureList"}}
props.Set("qMeasureListDef", New MeasureListDef With {.Type = "measure"})
Dim mes = qsApp.CreateGenericSessionObject(prop:=props).GetLayout().Get(Of MeasureObjectViewList)("qMeasureList")
For Each m In mes.Items
Log.Information(m.Info.Id &amp;amp; " - " &amp;amp; qsApp.GetMeasure(m.Info.Id).NxLibraryMeasure.Def)
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 13:43:54 GMT</pubDate>
    <dc:creator>catalin</dc:creator>
    <dc:date>2020-03-09T13:43:54Z</dc:date>
    <item>
      <title>Create a transient object to hold the measures in an app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-transient-object-to-hold-the-measures-in-an-app/m-p/1682683#M12452</link>
      <description>&lt;DIV class="markdown-here-wrapper"&gt;&lt;P&gt;Hello, dear Qlikers!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am using the latest version of the QlikSense SDK and I am trying to get rid of the obsolete function&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;App.GetMeasureList.Items&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying something like the snippet bellow, but for sure it is fundamentally broken as something is escaping me related to how to attach to the transient object the qMeasureListDef.&lt;/P&gt;&lt;P&gt;My question is: where should one bind the MeasureListDef in the transient object's properties in such a way that when I call its GetLayout() to be able to output the list of measures in the given app?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I have so far:&lt;/P&gt;&lt;PRE&gt;Dim measlist As MeasureListDef = New MeasureListDef With {.Type = "measure"}
Dim transient_obj = app.CreateGenericSessionObject(prop:=New GenericObjectProperties With {.Info = New NxInfo With {.Id = "ML01", .Type =
"MeasureList"}, .MetaDef = CType(measlist, NxMetaDef)
})
Dim mes = transient_obj.GetLayout&lt;/PRE&gt;&lt;DIV&gt;​&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-transient-object-to-hold-the-measures-in-an-app/m-p/1682683#M12452</guid>
      <dc:creator>catalin</dc:creator>
      <dc:date>2024-11-16T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a transient object to hold the measures in an app</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-transient-object-to-hold-the-measures-in-an-app/m-p/1682907#M12461</link>
      <description>&lt;P&gt;OK, it seems that I found the solution. So I will leave it here for anyone looking for the same thing in the future.&lt;/P&gt;&lt;P&gt;Cheers, guys!&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Dim props As GenericObjectProperties = New GenericObjectProperties With {.Info = New NxInfo With {.Id = "ML01", .Type = "MeasureList"}}
props.Set("qMeasureListDef", New MeasureListDef With {.Type = "measure"})
Dim mes = qsApp.CreateGenericSessionObject(prop:=props).GetLayout().Get(Of MeasureObjectViewList)("qMeasureList")
For Each m In mes.Items
Log.Information(m.Info.Id &amp;amp; " - " &amp;amp; qsApp.GetMeasure(m.Info.Id).NxLibraryMeasure.Def)
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-transient-object-to-hold-the-measures-in-an-app/m-p/1682907#M12461</guid>
      <dc:creator>catalin</dc:creator>
      <dc:date>2020-03-09T13:43:54Z</dc:date>
    </item>
  </channel>
</rss>

