Forum Discussion
Custom Connector and Navigation Tables
- 6 years ago
What you need to do is use Table.View, it is very powerful as it lets you reinterpate any code that transforms or drills into a table. In paticular you want to include a defination for the handler OnSelectRows:
View= (state) =>
Table.View(null,
[
GetType = () => ...,
GetRows = () => ...,
OnSelectRows = (selector) =>
let
condition = RowExpression.From(selector),...,
in
@View(newState)
])
The selector will be the abstract syntax tree of the query. If the code returns an error, then the view is handled by default logic and the next higher view in the stack will be tried.
artemus What the difference between?
dataFunction(value) and dataFunction([Name], [Parameters])
Oh sorry, ignore everything with [Parameters] I was using that for letting users select functions.
- Anonymous6 years agoNot applicable
What should I call instead? dataFunction([Name])??? what represents that function? artemus
- artemus6 years agoMicrosoft Employee
Yea, just remove the second parameter from the function.
You define the dataFunction, which returns the table result for the id value passed into the function.
- Anonymous6 years agoNot applicable
What should thatndatafunction return? and what the difference between datafunction([Name]) and datafunction(value) in OnSelectRows? artemus