<?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 Custom Data Connector - Filter Selector in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-Filter-Selector/m-p/258783#M7985</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a Custom Data Connector for Power BI, and I want to have two selectors and one to be affected for the first selection, like Select Country and then City.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I have a restul service that when I send a country it returns all the cities from that country, How can I achieve calling the service with an on change or some event of the selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code where I Create the selectors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//Set AllowedValues on each parameter
AddAllowedValues =
let
    AvailableCountries = getDataFromUrl,
    AvailableCities = {},
    CountryParamType = type text 
                      meta [Documentation.AllowedValues = AvailableCountries],
    CityParamType = type text 
                      meta [Documentation.AllowedValues = AvailableCities],
    NewFunctionType = type function (
                       Select as CountryParamType,
                       Select2 as CityParamType2) 
                       as table,
    CastToType = Value.ReplaceType(BaseFunction, NewFunctionType)
in
    CastToType
 
in
    AddAllowedValues;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2017 21:45:31 GMT</pubDate>
    <dc:creator>eramirez</dc:creator>
    <dc:date>2017-09-25T21:45:31Z</dc:date>
    <item>
      <title>Custom Data Connector - Filter Selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-Filter-Selector/m-p/258783#M7985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a Custom Data Connector for Power BI, and I want to have two selectors and one to be affected for the first selection, like Select Country and then City.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I have a restul service that when I send a country it returns all the cities from that country, How can I achieve calling the service with an on change or some event of the selector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code where I Create the selectors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//Set AllowedValues on each parameter
AddAllowedValues =
let
    AvailableCountries = getDataFromUrl,
    AvailableCities = {},
    CountryParamType = type text 
                      meta [Documentation.AllowedValues = AvailableCountries],
    CityParamType = type text 
                      meta [Documentation.AllowedValues = AvailableCities],
    NewFunctionType = type function (
                       Select as CountryParamType,
                       Select2 as CityParamType2) 
                       as table,
    CastToType = Value.ReplaceType(BaseFunction, NewFunctionType)
in
    CastToType
 
in
    AddAllowedValues;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 21:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-Filter-Selector/m-p/258783#M7985</guid>
      <dc:creator>eramirez</dc:creator>
      <dc:date>2017-09-25T21:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Data Connector - Filter Selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-Filter-Selector/m-p/261551#M8058</link>
      <description>&lt;P&gt;you can post at&amp;nbsp;&lt;A href="https://github.com/Microsoft/DataConnectors/issues" target="_blank"&gt;https://github.com/Microsoft/DataConnectors/issues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-Filter-Selector/m-p/261551#M8058</guid>
      <dc:creator>KumarDarmesh</dc:creator>
      <dc:date>2017-09-29T09:45:51Z</dc:date>
    </item>
  </channel>
</rss>

