Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello all,
I'm developing a custom connector and it works good.
The function Contents() takes 3 parameters: Environment (required), DateFrom (optional) and DateTo (optional):
Then the function shows the Navigator window that helps user to find and select a dataset:
What I want to change is behavoir of Power BI Desktop UI.
I want to place the optional parameters on the Navigator window, something like this:
How can I do that?
Is it possible?
Thanks in advance,
Alex.
Solved! Go to Solution.
You should be able to refer to it if it is in scope. Just use a function which returns a function.
DataFunction = (id as number) as function => (start, end) => // Use the id, start and end parameters
And before you ask adding documentation to the function there is a bit buggy. Also if all parameters are optional, it will load the data automatically and then let the user modify them.
Finally, I was able to force PowerBI showing the parameters after selecting a datasource item.
The discussion which helped me is here
Now I can see the following:
What is not good is I have to pass Id of dataset as well.
Is there a way to pass that parameter to the function from connector code but leave others for user's entering?
You should be able to refer to it if it is in scope. Just use a function which returns a function.
DataFunction = (id as number) as function => (start, end) => // Use the id, start and end parameters
And before you ask adding documentation to the function there is a bit buggy. Also if all parameters are optional, it will load the data automatically and then let the user modify them.
It works for me.
Thanks a lot!
Hi @Anonymous ,
I am not professional in UI code of custome connector, so I suggest you could @ super users in this forum or open a ticket for this problem(support ).
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.