Page 1 of 1

Variable - Request from user not showing

Posted: Wed Apr 24, 2013 10:39 am
by DHarvey
Hi,

I was curious if anyone had an issue when trying to use a variable which was set to request from user?

Basically I have a variable called Station. I have set the property "Request from User" set as checked. However when I run my report it does not display the prompt for this variable?

I must admit that I am picking up someone else's code here and it could be set to not to appear. So it may be as simple as setting one of the properties during the init of the StiViewerControl.

Code: Select all


            string myTheme = assistant.SettingsHandler.GetSetting("MainForm", "scheme", "default");
            switch (myTheme)
            {
                case "Blue": StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Blue; break;
                case "Black": StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Black; break;
                case "Silver": StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Silver; break;
                default: StiOptions.Windows.GlobalGuiStyle = StiGlobalGuiStyle.Office2010Blue; break;
            }

            StiOptions.Viewer.Windows.ShowBookmarksPanel = false;

Re: Variable - Request from user not showing

Posted: Thu Apr 25, 2013 11:17 am
by Alex K.
Hello,

Can you please send us a sample report with test data which reproduces the issue for analysis.

Thank you.

Re: Variable - Request from user not showing

Posted: Thu Apr 25, 2013 3:21 pm
by DHarvey
Hi thanks for getting back to me.

I am going to use a work around that a previous customer used (binding variables to text fields).

http://forum.stimulsoft.com/viewtopic.p ... ble#p59782

One last question, is it possible to get the event fired of the submit button on the prompt menu for variables in the preview tab?
I want to rebuild my dataset when the submit button is clicked.

The submit button shown below:
Image

Re: Variable - Request from user not showing

Posted: Fri Apr 26, 2013 8:29 am
by HighAley
Hello.

You could do it in the Begin Render event of the report by checking if the value of the variable is set.

Thank you.