<?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: how to show the connection window then show the navigator window in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/how-to-show-the-connection-window-then-show-the-navigator-window/m-p/4253505#M57980</link>
    <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/828742"&gt;@neilrogers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Regarding how you can invoke the PrimeecoConnectorNavTable() function you are using, please refer to the code provided below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;First, you need to have a function that verifies that you are logged in properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;validateConnection = (username as text, password as text, clientId as text, clientSecret as text) as logical =&amp;gt;
let
    // Your validation logic here
    isValid = true // Replace with actual validation
in
    isValid,
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;What you might want to note is that I'm ignoring your validation logic.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Second, design a main function for function calling:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mainFunction = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) =&amp;gt;
let
    isValid = validateConnection(username, password, clientId, clientSecret),
    result = if isValid then
        PrimeecoConnectorNavTable(apiUrl, tokenUrl, username, password, clientId, clientSecret)
    else
        error "Invalid connection parameters"
in
    result

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, here are some navigation validation responses similar to yours:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1729658436353.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1187525i95EE1356C3541847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1729658436353.png" alt="vlinyulumsft_0-1729658436353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For further details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-Query/Custom-Connector-and-Navigation-Tables/td-p/891075" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Finally, here are some relevant links I found for you:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://radacad.com/power-bi-custom-connector-connect-to-any-data-sources-hello-world" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Power BI Custom Connector: Connect to Any Data Sources. Hello World! - RADACAD&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://vidi-corp.com/how-to-create-a-power-bi-custom-connector/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to create a Power BI custom connector - Vidicorp&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/handling-navigation-tables#flat-navigation-table" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Handling navigation for Power Query connectors - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://www.excelmojo.com/power-bi-custom-connector/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Power BI Custom Connector - Examples, How to Create?&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 04:41:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-23T04:41:16Z</dc:date>
    <item>
      <title>how to show the connection window then show the navigator window</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-show-the-connection-window-then-show-the-navigator-window/m-p/4251823#M57962</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am building a custom power bi connector and would like to show the connection window then show the navigator window. But for the life of me I can't figure out how to trigger the navigator window after the connection window is shown.&lt;BR /&gt;&lt;BR /&gt;So 1. this window is showing currently and works fine.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-22 at 1.23.13 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186856iB686D76A44ABA8BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-22 at 1.23.13 PM.png" alt="Screenshot 2024-10-22 at 1.23.13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then when the Ok button is clicked I'd like to show the navigator window. I have the code for the navigator but I have no idea how to show it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-22 at 1.23.21 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1186860iAA4065C0490EA463/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-22 at 1.23.21 PM.png" alt="Screenshot 2024-10-22 at 1.23.21 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code i have for the navigator is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PrimeecoConnectorNavTable = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) as table =&amp;gt;
let
    entitiesAsTable = Table.FromList(RootEntities, Splitter.SplitByNothing()),
    rename = Table.RenameColumns(entitiesAsTable, {{"Column1", "Name"}}),
    // Use Feed function with required parameters
    withData = Table.AddColumn(rename, "Data", each PrimeecoConnectorImpl(username, password, clientId, clientSecret,Uri.Combine(apiUrl, [Name]), tokenUrl), Uri.Type),
    withItemKind = Table.AddColumn(withData, "ItemKind", each "Table", type text),
    withItemName = Table.AddColumn(withItemKind, "ItemName", each "Table", type text),
    withIsLeaf = Table.AddColumn(withItemName, "IsLeaf", each true, type logical),
    navTable = Table.ToNavigationTable(withIsLeaf, {"Name"}, "Name", "Data", "ItemKind", "ItemName", "IsLeaf")
in
    navTable;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 03:30:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-show-the-connection-window-then-show-the-navigator-window/m-p/4251823#M57962</guid>
      <dc:creator>neilrogers</dc:creator>
      <dc:date>2024-10-22T03:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to show the connection window then show the navigator window</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/how-to-show-the-connection-window-then-show-the-navigator-window/m-p/4253505#M57980</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/828742"&gt;@neilrogers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;Regarding how you can invoke the PrimeecoConnectorNavTable() function you are using, please refer to the code provided below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;First, you need to have a function that verifies that you are logged in properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;validateConnection = (username as text, password as text, clientId as text, clientSecret as text) as logical =&amp;gt;
let
    // Your validation logic here
    isValid = true // Replace with actual validation
in
    isValid,
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;What you might want to note is that I'm ignoring your validation logic.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Second, design a main function for function calling:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mainFunction = (apiUrl as text, tokenUrl as text, username as text, password as text, clientId as text, clientSecret as text) =&amp;gt;
let
    isValid = validateConnection(username, password, clientId, clientSecret),
    result = if isValid then
        PrimeecoConnectorNavTable(apiUrl, tokenUrl, username, password, clientId, clientSecret)
    else
        error "Invalid connection parameters"
in
    result

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Secondly, here are some navigation validation responses similar to yours:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1729658436353.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1187525i95EE1356C3541847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1729658436353.png" alt="vlinyulumsft_0-1729658436353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For further details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-Query/Custom-Connector-and-Navigation-Tables/td-p/891075" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Solved: Custom Connector and Navigation Tables - Microsoft Fabric Community&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial;"&gt;&lt;SPAN&gt;3.&lt;/SPAN&gt;&lt;SPAN&gt;Finally, here are some relevant links I found for you:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://radacad.com/power-bi-custom-connector-connect-to-any-data-sources-hello-world" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Power BI Custom Connector: Connect to Any Data Sources. Hello World! - RADACAD&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://vidi-corp.com/how-to-create-a-power-bi-custom-connector/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to create a Power BI custom connector - Vidicorp&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/handling-navigation-tables#flat-navigation-table" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Handling navigation for Power Query connectors - Power Query | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://www.excelmojo.com/power-bi-custom-connector/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Power BI Custom Connector - Examples, How to Create?&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 04:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/how-to-show-the-connection-window-then-show-the-navigator-window/m-p/4253505#M57980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-23T04:41:16Z</dc:date>
    </item>
  </channel>
</rss>

