Hi, being new I am finding this pretty impossible to figure out. I am creating a standalone html page with a map of point data and a table of the same data.
I would like to have the table reset to show all values when I click on the Reset Tool for the map.
I have created a CDSView and filter which works when called. I presume that updating the filter will update the rows displayed in the Table.
I have been unable to add a callback to the ResetTool that works. I would like to update the filters to show all the points in the reset map view.
From the documentation I have read I think I would have to create a javascript callback of some sort but nothing that I try alters the table contents.
Much appreciated if someone has an example of this they could post, otherwise step by step instructions so I at least know I am going down the right path.
I would also like a similar behaviour when I select a number of points in the map. i.e. to only display the selected rows in the table and “remove” the unselected from the table.
I should be able to figure that out if I could get a working solution to the reset event problem.
The most valuable thing you can do when asking for assistance is to provide explicit details about what you have tried (i.e. real code examples). It's possible there is a bug, or it's possible there is a usage error. With real code to examine it's often possible to determine that quickly one way or there other.
Thanks,
Bryan
···
On Jan 7, 2018, at 00:44, 'Ian' via Bokeh Discussion - Public <[email protected]> wrote:
Hi, being new I am finding this pretty impossible to figure out. I am creating a standalone html page with a map of point data and a table of the same data.
I would like to have the table reset to show all values when I click on the Reset Tool for the map.
I have created a CDSView and filter which works when called. I presume that updating the filter will update the rows displayed in the Table.
I have been unable to add a callback to the ResetTool that works. I would like to update the filters to show all the points in the reset map view.
From the documentation I have read I think I would have to create a javascript callback of some sort but nothing that I try alters the table contents.
Much appreciated if someone has an example of this they could post, otherwise step by step instructions so I at least know I am going down the right path.
I would also like a similar behaviour when I select a number of points in the map. i.e. to only display the selected rows in the table and "remove" the unselected from the table.
I should be able to figure that out if I could get a working solution to the reset event problem.
Hi Again, I have created an example which doesn’t quite work. The call back is being now being called. So some progress. I don’t know how to change the CDSView Filter list.
Is impossibly to pass in another argument to the callback?
At the moment I set it to [] which seems to zoom the map to a single point but does not update the table view.
On Sunday, 7 January 2018 16:44:31 UTC+10, Ian wrote:
Hi, being new I am finding this pretty impossible to figure out. I am creating a standalone html page with a map of point data and a table of the same data.
I would like to have the table reset to show all values when I click on the Reset Tool for the map.
I have created a CDSView and filter which works when called. I presume that updating the filter will update the rows displayed in the Table.
I have been unable to add a callback to the ResetTool that works. I would like to update the filters to show all the points in the reset map view.
From the documentation I have read I think I would have to create a javascript callback of some sort but nothing that I try alters the table contents.
Much appreciated if someone has an example of this they could post, otherwise step by step instructions so I at least know I am going down the right path.
I would also like a similar behaviour when I select a number of points in the map. i.e. to only display the selected rows in the table and “remove” the unselected from the table.
I should be able to figure that out if I could get a working solution to the reset event problem.