Mail button missing on mobile view

Stimulsoft Reports.JS discussion
Andrew
Posts: 3918
Joined: Fri Jun 09, 2006 3:58 am

Re: Mail button missing on mobile view

Post by Andrew » Sat Feb 01, 2020 1:54 pm

Hello,

Going to release the product in a week or two!
mrapi
Posts: 216
Joined: Sat Dec 20, 2008 1:08 am

Re: Mail button missing on mobile view

Post by mrapi » Tue Feb 11, 2020 12:03 pm

Hi,it works,I have 2 suggestions:
1.make the options window responsive as in image some controls are outside the device screen
Image
2.add a loading icon or a text while report is sent,there are 3-4 seconds delay where user doesn't know what the app is doing.there is the code I use for sending mail: viewtopic.php?f=27&t=57332&p=153417#p153339
thanks
Lech Kulikowski
Posts: 2177
Joined: Tue Mar 20, 2018 5:34 am

Re: Mail button missing on mobile view

Post by Lech Kulikowski » Fri Feb 14, 2020 9:26 am

Hello,

We will try to decrease size of that form in the next builds.

Thank you.
mrapi
Posts: 216
Joined: Sat Dec 20, 2008 1:08 am

Re: Mail button missing on mobile view

Post by mrapi » Fri Feb 14, 2020 10:02 am

thanks.what about second suggestion?
Lech Kulikowski
Posts: 2177
Joined: Tue Mar 20, 2018 5:34 am

Re: Mail button missing on mobile view

Post by Lech Kulikowski » Fri Feb 14, 2020 12:09 pm

Hello,

You can use the following code:
viewer.jsObject.controls.processImage.show();

Thank you.
mrapi
Posts: 216
Joined: Sat Dec 20, 2008 1:08 am

Re: Mail button missing on mobile view

Post by mrapi » Sat Feb 15, 2020 12:07 pm

what is the best event to call this?

I've tried this:

const jsControls = this.viewer.jsObject.controls;

if (this.options.toolbar.showSendEmailButton) {
this.viewer.onEmailReport = function (args) {

const xhr = new XMLHttpRequest();

xhr.onreadystatechange = function () {
jsControls.processImage.show();
if (this.readyState === 4) {
jsControls.processImage.hide();
if (this.responseText === 'OK') {
alert('Mail sent!');
} else {
alert(this.responseText);
}
}
};

thanks
Lech Kulikowski
Posts: 2177
Joined: Tue Mar 20, 2018 5:34 am

Re: Mail button missing on mobile view

Post by Lech Kulikowski » Thu Feb 20, 2020 9:24 am

Hello,

You should hide progress in any case - if result success or no.

Thank you.
Post Reply