Forum Discussion
Anonymous
3 years agoNot applicable
Event call in powerbi embedded through Javascript api
Hi, i want to create custom dialog box for 'saveas' event in embedded powerbi application. As per document, when we click on save option it should call 'saveAsTriggered' event, but it is not calling that event.
Powerbi documentation for reference.
Below is my code
report.on('saveAsTriggered', (evt: any) => {
console.log('call')
})
report.on('saved', (evt: any) => {
const { reportObjectId, reportName, saveAs } = evt.detail;
let saveAction = '';
if (saveAs === true) {
saveAction = 'Create';
} else {
saveAction = 'Edit';
}
'saved' event is calling after save, but 'saveAsTriggered' event is not calling.
Any suggestions?
1 Reply
- AnonymousNot applicable
Hi Anonymous ,
Please take a look at this topic.
Best Regards,
Jay