Variable - Request from user not showing

Stimulsoft Reports.NET discussion
Post Reply
DHarvey
Posts: 24
Joined: Wed Apr 24, 2013 8:52 am

Variable - Request from user not showing

Post 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;
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Variable - Request from user not showing

Post by Alex K. »

Hello,

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

Thank you.
DHarvey
Posts: 24
Joined: Wed Apr 24, 2013 8:52 am

Re: Variable - Request from user not showing

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable - Request from user not showing

Post 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.
Post Reply