PaulNieuwelaar / alertjs

Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
https://www.magnetismsolutions.com/our-products/alertjs-alert-popup-for-d365
Other
96 stars 38 forks source link

Unable to call a function inside a webresource from OK button #21

Closed crmprocorp closed 6 years ago

crmprocorp commented 6 years ago

Unable to call a function inside a webresource from OK button. I am using the following var iFrameWindow = Alert.getIFrameWindow(); iFrameWindow.document.UploadExcel();

Where UploadExcel is my webresource js function.

Bhaskar

PaulNieuwelaar commented 6 years ago

Hi Bhaskar,

The function will be against the iFrameWindow, rather than the iFrameWindow.document.

Try just: iFrameWindow.UploadExcel();

Hope that helps, Paul