How can catch the event when submit button of variable is clicked?

Stimulsoft Reports.WEB discussion
Post Reply
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

How can catch the event when submit button of variable is clicked?

Post by jkoo »

I have one variable and when new variable value is submitted at report viewer,
I'd like to reload data depending on new variable.
I can do this at report designer by catching GetPreviewDataSet()

protected void StiWebDesigner_GetPreviewDataSet(object sender, StiWebDesigner.StiPreviewDataSetEventArgs e)
{
string value = e.Report.Dictionary.Variables["SearchValue"];

e.Report.RegBusinessObject("test", GetData(value ));
}

Is there way to do this at report viewer?

Thanks
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

How can catch the event when submit button of variable is clicked?

Post by Vladimir »

Hello,

You can use the same event of the report viewer:

Code: Select all

protected void StiWebViewerFx1_GetDataSet(object sender, StiWebViewerFx.StiGetDataSetEventArgs e)
{
    string value = e.Report.Dictionary.Variables["SearchValue"];

    e.Report.RegBusinessObject("test", GetData(value ));
}
Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

How can catch the event when submit button of variable is clicked?

Post by jkoo »

That's what I want.

Thanks.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

How can catch the event when submit button of variable is clicked?

Post by Andrew »

Hello,

Great :biggrin:
Post Reply