Leave Report Designer Confirmation

Stimulsoft Reports.WEB discussion
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Leave Report Designer Confirmation

Post by ChrisHolland »

Is it possible to turn off the "Leave" confirmation dialog for the HTML Report Designer?

See attached screenshot.
Attachments
PrtScr capture.jpg
PrtScr capture.jpg (9.74 KiB) Viewed 2533 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Leave Report Designer Confirmation

Post 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.
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: Leave Report Designer Confirmation

Post by ChrisHolland »

That works, thank you.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Leave Report Designer Confirmation

Post by Lech Kulikowski »

Hello

We are always glad to help you!

Thank you.
nitesh
Posts: 6
Joined: Tue May 12, 2020 5:09 pm

Re: Leave Report Designer Confirmation

Post 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
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Leave Report Designer Confirmation

Post by Lech Kulikowski »

Hello,

Please use the code provided in the previous post.

Thank you.
nitesh
Posts: 6
Joined: Tue May 12, 2020 5:09 pm

Re: Leave Report Designer Confirmation

Post by nitesh »

I tried, but I don't see any property in the designer object as scrollbiMode .
designerInstance.options.scrollbiMode is undefined

Thanks
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Leave Report Designer Confirmation

Post by Lech Kulikowski »

Hello,

Please clarify where do you set that option?

Thank you.
nitesh
Posts: 6
Joined: Tue May 12, 2020 5:09 pm

Re: Leave Report Designer Confirmation

Post 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
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: Leave Report Designer Confirmation

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply