Page 1 of 2
Parameter button
Posted: Thu Aug 24, 2017 12:01 pm
by rodrigo.avots
Hi!
How to leave the parameter button off when loading a report?
Tks!
Re: Parameter button
Posted: Thu Aug 24, 2017 9:15 pm
by Edward
Hi Rodrigo,
Please set ShowParametersButton="False" parameter for the StiWebViewer.
Thank you,
Edward
Re: Parameter button
Posted: Fri Aug 25, 2017 12:14 pm
by rodrigo.avots
Sorry!
I need the parameter panel not to appear in the report. When you click the parameter button, panel appears.
Tks.
Re: Parameter button
Posted: Fri Aug 25, 2017 11:24 pm
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
Re: Parameter button
Posted: Mon Aug 28, 2017 1:13 pm
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.
Re: Parameter button
Posted: Tue Aug 29, 2017 3:33 am
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
Re: Parameter button
Posted: Tue Aug 29, 2017 11:48 am
by rodrigo.avots
Hi!
I need item C.
Tks.
Re: Parameter button
Posted: Wed Aug 30, 2017 1:01 pm
by rodrigo.avots
Hi!
Email sent.
Re: Parameter button
Posted: Wed Aug 30, 2017 6:27 pm
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.
Re: Parameter button
Posted: Wed Aug 30, 2017 7:10 pm
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>