Is there a property that I can get access to, which defines if the current design has been changed, and therefore there is a pending change (design is dirty). I want to override the onbeforeunload event, so that I can control the saving of changes within the host application.
So ideally I need to be able to set ignoreBeforeUnload to true and check reportIsModified from within a button click in my js code.
Report Designer IsModified
Re: Report Designer IsModified
Hello,
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Thank you.
Re: Report Designer IsModified
Hi Aleksey
Sorry maybe it was the way i explained it. I have your JS designer wrapped into my web site. I need to know when the designer has changes that haven't been saved, so I can prompt the user to make sure changes are saved before leaving the page. Which means I need a property from your designer that I can check to see if the designer has pending changes, and I need to switch off your beforeunload event so it doesnt get in the way of my navigation. By looking in your JS i can see the properties ignoreBeforeUnload which looks like an option setting, and also reportIsModified.
Thanks
Mark
Sorry maybe it was the way i explained it. I have your JS designer wrapped into my web site. I need to know when the designer has changes that haven't been saved, so I can prompt the user to make sure changes are saved before leaving the page. Which means I need a property from your designer that I can check to see if the designer has pending changes, and I need to switch off your beforeunload event so it doesnt get in the way of my navigation. By looking in your JS i can see the properties ignoreBeforeUnload which looks like an option setting, and also reportIsModified.
Thanks
Mark
Re: Report Designer IsModified
Hello,
Yes, you can use designer.jsObject.options.reportIsModified = true, if in the report were changes. And you can turn off our event, you can remove it:
window.onbeforeunload = null;
Thank you.
Yes, you can use designer.jsObject.options.reportIsModified = true, if in the report were changes. And you can turn off our event, you can remove it:
window.onbeforeunload = null;
Thank you.