Mail button missing on mobile view

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

Re: Mail button missing on mobile view

Post by Andrew »

Hello,

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

Re: Mail button missing on mobile view

Post by mrapi »

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: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Mail button missing on mobile view

Post by Lech Kulikowski »

Hello,

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

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

Re: Mail button missing on mobile view

Post by mrapi »

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

Re: Mail button missing on mobile view

Post by Lech Kulikowski »

Hello,

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

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

Re: Mail button missing on mobile view

Post by mrapi »

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: 6254
Joined: Tue Mar 20, 2018 5:34 am

Re: Mail button missing on mobile view

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply