Forum Discussion
How can I custom UI from connector code
- 6 years ago
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 parametersAnd 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.
I don't believe you can do that. Since you've already called Table.ToNavigationTable, the data displaying there is already passed data through the connector, taking into account the user's parameter inputs if configured correctly.
The Navigation UI just reads what Table.ToNavigationTable returns and displays it in a pretty format. What you're asking is for this UI to be able to know how it got the values it got. Not really possible since we do not have access to the UI itself, nor can we change what Table.ToNavigationTable returns.
Best,
Spyros
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?
- artemus6 years agoMicrosoft Employee
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 parametersAnd 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.
- Anonymous6 years agoNot applicable
It works for me.
Thanks a lot!