Parameter button

Stimulsoft Reports.WEB discussion
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Parameter button

Post by rodrigo.avots »

Hi!

How to leave the parameter button off when loading a report?

Tks!
Attachments
FilterParameter.png
FilterParameter.png (13.37 KiB) Viewed 5561 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Parameter button

Post by Edward »

Hi Rodrigo,

Please set ShowParametersButton="False" parameter for the StiWebViewer.

Thank you,
Edward
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Parameter button

Post by rodrigo.avots »

Sorry!

I need the parameter panel not to appear in the report. When you click the parameter button, panel appears.

Tks.
Attachments
PanelParameter.png
PanelParameter.png (7.72 KiB) Viewed 5555 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Parameter button

Post by Edward »

Hi Rodrigo,

It looks like you have some variables with RequestFromUser checkbox checked against them and this is what forces the report to request the variable values and to display the parameters panel.

Please check the following page about this: https://www.stimulsoft.com/en/documenta ... iables.htm

Thank you,
Edward
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Parameter button

Post by rodrigo.avots »

Hi!

I did that.
I have 2 problem:
1) Now I'm getting trouble with parameter button being disabled, not letting the user use the filter.
2) I've also trouble dropping the fields used in the datasource filter(Image1, Image3).

Tks.
Attachments
Image1.png
Image1.png (13.39 KiB) Viewed 5536 times
Image2.png
Image2.png (9.36 KiB) Viewed 5536 times
Image3.png
Image3.png (12.2 KiB) Viewed 5536 times
Image4.png
Image4.png (7.19 KiB) Viewed 5536 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Parameter button

Post by Edward »

Hi Rodrigo,

Could you please confirm that you need the report to work as one of the following order of actions?
a.
1) The report with default parameters is rendered, no variables have been requested from the user. The variables selection panel is visible with their default values.
2) The user select different variable values from the variables panel and re-renders the report.

b.
1) The variables selection panel is shown for the user, but the report is not rendered yet
2) The user selects a variable and clicks submit to render the report.

c.
1) The report is rendered, no questions asked.
2) User clicks the parameters button, the variables selection panel appears
3) User selects a different from the default value for some variables and clicks submit to re-render the report.

Or is there any other sequence of actions you would like to appear?

Also could you please send the mrt file with your report for analysis to support[at]stimulsoft.com ?

Thank you,
Edward
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Parameter button

Post by rodrigo.avots »

Hi!

I need item C.

Tks.
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Parameter button

Post by rodrigo.avots »

Hi!

Email sent.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Parameter button

Post by HighAley »

Hello, Rodrigo.

Here is a code that hides the Parameters panel.

Code: Select all

<cc2:StiWebViewer ID="StiWebViewer1" runat="server" />
<script type="text/javascript">
    //Where jsStiWebViewer1 - "js" + viewer Id
	jsStiWebViewer1.oldInitializeParametersPanel = jsStiWebViewer1.InitializeParametersPanel;

	jsStiWebViewer1.InitializeParametersPanel = function () {
	jsStiWebViewer1.oldInitializeParametersPanel();
        if (jsStiWebViewer1.controls.buttons.Parameters) jsStiWebViewer1.controls.buttons.Parameters.setSelected(false);
        if (jsStiWebViewer1.controls.parametersPanel) jsStiWebViewer1.controls.parametersPanel.changeVisibleState(false);
        jsStiWebViewer1.InitializeParametersPanel = jsStiWebViewer1.oldInitializeParametersPanel;
    }
</script>
Thank you.
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Parameter button

Post by rodrigo.avots »

Tks!

But, I'm using StiMvcViewer.

I changed to this code and it worked

<cc2:StiMvcViewer ID="jsMvcViewer" runat="server" />
<script type="text/javascript">
//Where jsStiWebViewer1 - "js" + viewer Id
jsMvcViewer.oldInitializeParametersPanel = jsMvcViewer.InitializeParametersPanel;

jsMvcViewer.InitializeParametersPanel = function () {
jsMvcViewer.oldInitializeParametersPanel();
if (jsMvcViewer.controls.buttons.Parameters) jsMvcViewer.controls.buttons.Parameters.setSelected(false);
if (jsMvcViewer.controls.parametersPanel) jsMvcViewer.controls.parametersPanel.changeVisibleState(false);
jsMvcViewer.InitializeParametersPanel = jsMvcViewer.oldInitializeParametersPanel;
}
</script>
Post Reply