Page 1 of 2

Leave Report Designer Confirmation

Posted: Tue Jul 02, 2019 12:33 pm
by ChrisHolland
Is it possible to turn off the "Leave" confirmation dialog for the HTML Report Designer?

See attached screenshot.

Re: Leave Report Designer Confirmation

Posted: Thu Jul 04, 2019 7:45 am
by Lech Kulikowski
Hello,

You can use the following code:

Code: Select all

<script>
        //where jsStiWebDesigner1 -> "js" + Designer ID
        jsStiWebDesigner1.options.scrollbiMode = true;
    </script>
Thank you.

Re: Leave Report Designer Confirmation

Posted: Mon Jul 08, 2019 8:02 am
by ChrisHolland
That works, thank you.

Re: Leave Report Designer Confirmation

Posted: Tue Jul 09, 2019 7:36 am
by Lech Kulikowski
Hello

We are always glad to help you!

Thank you.

Re: Leave Report Designer Confirmation

Posted: Wed May 13, 2020 4:22 am
by nitesh
I am having same issue in Stimulsoft Report JS, is there a way to fix it there. i am saving the data from the external Html button and when I try to close tab I get this alert though my changes are saved.

Any help appreciated.

Thanks

Re: Leave Report Designer Confirmation

Posted: Wed May 13, 2020 2:55 pm
by Lech Kulikowski
Hello,

Please use the code provided in the previous post.

Thank you.

Re: Leave Report Designer Confirmation

Posted: Wed May 13, 2020 5:12 pm
by nitesh
I tried, but I don't see any property in the designer object as scrollbiMode .
designerInstance.options.scrollbiMode is undefined

Thanks

Re: Leave Report Designer Confirmation

Posted: Fri May 15, 2020 8:48 am
by Lech Kulikowski
Hello,

Please clarify where do you set that option?

Thank you.

Re: Leave Report Designer Confirmation

Posted: Mon May 18, 2020 2:29 pm
by nitesh
Thanks that worked for me, I have placed at the wrong place.

I do have another question.

I am loading my report with the dataset in the report js designer. I want to point it to the preview tab directly instead of the Home tab in the toolbar.

Thanks

Re: Leave Report Designer Confirmation

Posted: Mon May 18, 2020 7:54 pm
by Lech Kulikowski
Hello,

In that case, you can use the viewer component instead of the designer.

Thank you.