<?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: .NET SDK C# - Retrieve data of master vizualisation in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-C-Retrieve-data-of-master-vizualisation/m-p/1606862#M11041</link>
    <description>&lt;P&gt;Something like this perhaps?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;static IEnumerable&amp;lt;NxCellRows&amp;gt; GetMasterObjectData(IApp app, string objectTitle)
{
    var list = app.GetMasterObjectList();
    var id = list.Items.First(i =&amp;gt; i.Meta.Get&amp;lt;string&amp;gt;("title") == objectTitle).Info.Id;
    app.DestroyGenericObject(list.Id);
    var o = app.GetGenericObject(id);
    var pager = o.GetAllHyperCubePagers().First();
    var allPages = pager.IteratePages(new[] {new NxPage {Width = pager.NumberOfColumns, Height = 100}}, Pager.Next).Select(pageSet =&amp;gt; pageSet.Single());
    return allPages.SelectMany(page =&amp;gt; page.Matrix);
}
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 29 Jul 2019 07:50:45 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2019-07-29T07:50:45Z</dc:date>
    <item>
      <title>.NET SDK C# - Retrieve data of master vizualisation</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-C-Retrieve-data-of-master-vizualisation/m-p/1600404#M10938</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I am trying to implement a small C# application. At the moment I get my data by handling the hypercube which is not very readable and if something changes in the application I have also to change it in the C# code.&lt;/P&gt;&lt;P&gt;Therefor, the idea was to retrieve data of known master vizualisations (charts, tables, ...).&lt;/P&gt;&lt;P&gt;Does anyone have an example code of how to do this? Best thing would be to have a static method which just needs the IApp and the name of the master vizualisation.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 13:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-C-Retrieve-data-of-master-vizualisation/m-p/1600404#M10938</guid>
      <dc:creator>Mich90GSG_o</dc:creator>
      <dc:date>2019-07-09T13:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: .NET SDK C# - Retrieve data of master vizualisation</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-C-Retrieve-data-of-master-vizualisation/m-p/1606862#M11041</link>
      <description>&lt;P&gt;Something like this perhaps?&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;static IEnumerable&amp;lt;NxCellRows&amp;gt; GetMasterObjectData(IApp app, string objectTitle)
{
    var list = app.GetMasterObjectList();
    var id = list.Items.First(i =&amp;gt; i.Meta.Get&amp;lt;string&amp;gt;("title") == objectTitle).Info.Id;
    app.DestroyGenericObject(list.Id);
    var o = app.GetGenericObject(id);
    var pager = o.GetAllHyperCubePagers().First();
    var allPages = pager.IteratePages(new[] {new NxPage {Width = pager.NumberOfColumns, Height = 100}}, Pager.Next).Select(pageSet =&amp;gt; pageSet.Single());
    return allPages.SelectMany(page =&amp;gt; page.Matrix);
}
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 07:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/NET-SDK-C-Retrieve-data-of-master-vizualisation/m-p/1606862#M11041</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2019-07-29T07:50:45Z</dc:date>
    </item>
  </channel>
</rss>

