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.
What should thatndatafunction return? and what the difference between datafunction([Name]) and datafunction(value) in OnSelectRows? artemus
It should return a table based on its input.
If the user selects the "FooItem", then it will return the table for FooItem, by making the request and downloading that data.
The difference between the two is:
The first one is just a facade so that it shows up as a Table in the UI.
The second one actually gets called to get the data.