<?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 How to get Cross selection of data in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-Cross-selection-of-data/m-p/1253244#M6799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By cross selection I mean the data that becomes selected when another set of data is being selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I have a sheet where I display a map, and another sheet where I have a list of customers. Each customer has an address. On the map I select some cities. The second sheet now displays only the customers who live in these cities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the list of the selected cities. Which method or a set of methods I should now call to get the list of the customers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using (var app = await location.AppAsync(appIdentifier))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fields = await app.GetAppFieldsAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var field = fields.First(x =&amp;gt; x.Name == "City");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedCities = field.GetSelected(new List&amp;lt;NxPage&amp;gt; {new NxPage {Height = 30, Width = 1}}); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedCustomers = ...?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 03:42:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-30T03:42:02Z</dc:date>
    <item>
      <title>How to get Cross selection of data</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-Cross-selection-of-data/m-p/1253244#M6799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By cross selection I mean the data that becomes selected when another set of data is being selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. I have a sheet where I display a map, and another sheet where I have a list of customers. Each customer has an address. On the map I select some cities. The second sheet now displays only the customers who live in these cities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the list of the selected cities. Which method or a set of methods I should now call to get the list of the customers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using (var app = await location.AppAsync(appIdentifier))&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fields = await app.GetAppFieldsAsync();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var field = fields.First(x =&amp;gt; x.Name == "City");&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedCities = field.GetSelected(new List&amp;lt;NxPage&amp;gt; {new NxPage {Height = 30, Width = 1}}); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedCustomers = ...?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 03:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-get-Cross-selection-of-data/m-p/1253244#M6799</guid>
      <dc:creator />
      <dc:date>2017-01-30T03:42:02Z</dc:date>
    </item>
  </channel>
</rss>

