Parameter button
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Parameter button
Hi!
How to leave the parameter button off when loading a report?
Tks!
How to leave the parameter button off when loading a report?
Tks!
- Attachments
-
- FilterParameter.png (13.37 KiB) Viewed 5560 times
Re: Parameter button
Hi Rodrigo,
Please set ShowParametersButton="False" parameter for the StiWebViewer.
Thank you,
Edward
Please set ShowParametersButton="False" parameter for the StiWebViewer.
Thank you,
Edward
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Re: Parameter button
Sorry!
I need the parameter panel not to appear in the report. When you click the parameter button, panel appears.
Tks.
I need the parameter panel not to appear in the report. When you click the parameter button, panel appears.
Tks.
- Attachments
-
- PanelParameter.png (7.72 KiB) Viewed 5554 times
Re: Parameter button
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
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
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Re: Parameter button
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.
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 (13.39 KiB) Viewed 5535 times
-
- Image2.png (9.36 KiB) Viewed 5535 times
-
- Image3.png (12.2 KiB) Viewed 5535 times
-
- Image4.png (7.19 KiB) Viewed 5535 times
Re: Parameter button
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
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
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Re: Parameter button
Hi!
I need item C.
Tks.
I need item C.
Tks.
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Re: Parameter button
Hi!
Email sent.
Email sent.
Re: Parameter button
Hello, Rodrigo.
Here is a code that hides the Parameters panel.
Thank you.
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>
-
- Posts: 21
- Joined: Tue Nov 22, 2016 2:15 pm
Re: Parameter button
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>
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>