Forum Discussion
registerOnSelectCallback not firing
- 8 years ago
If you are working with the Developer Visual, this is a known issue that Microsoft says will be fixed in a future version of the Custom Visual SDK.
For me, I compiled my visual to a package, added it as a custom visual, and finished my bookmark implementation that way. Yes, performing many iterations watching console messages. It's actually not that hard to implement support for bookmarks once you understand how they operate and whether your visual does selection or filtering etc.
Good luck,
Chris
If you are working with the Developer Visual, this is a known issue that Microsoft says will be fixed in a future version of the Custom Visual SDK.
For me, I compiled my visual to a package, added it as a custom visual, and finished my bookmark implementation that way. Yes, performing many iterations watching console messages. It's actually not that hard to implement support for bookmarks once you understand how they operate and whether your visual does selection or filtering etc.
Good luck,
Chris
- ChrisWilliams8 years agoAdvocate II
By the way, this is my implementation in the constructor:
constructor(options: VisualConstructorOptions) { this.target = options.element; this.host = options.host; this.selectionManager = options.host.createSelectionManager(); this.selectionIds = []; this.currentSelected = []; this.selectionManager.registerOnSelectCallback((ids: ISelectionId[]) => { this.currentSelected = ids; } ); } - romanolkhovsky6 years agoRegular Visitor
Two years have passed. Is there a bug still there?