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.
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.
- Anonymous6 years agoNot applicable
It works for me.
Thanks a lot!