Managed to raise a custom event but this is still not picked up by the report.on function within the iframe. I have tried the table template which uses the categorical DataViewMappings but this does not show the data in the manner I need.
All I want is to click on a row and have the report.on function be notified.
Not sure why this seems to be so hard but is the simplist way of showing data.
report.on('dataSelected', event => { debugger; return; });
Next attempt consisted of in the click
let myEventData = []; myEventData[0] = this.innerHTML; let myHTMLElement = this; raiseCustomEvent(myHTMLElement,"dataSelected",myEventData); console.log(this.innerHTML);
Wondering if I should try WindowPostMessageProxy. I guess it is my lack of knowledge of the product but this seems really hard to do something which looks quite simple. Thanks for taking the time to reply.