Page 1 of 1

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

Posted: Wed Aug 24, 2011 4:17 am
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

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

Posted: Thu Aug 25, 2011 5:48 am
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.

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

Posted: Thu Aug 25, 2011 6:34 pm
by jkoo
That's what I want.

Thanks.

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

Posted: Fri Aug 26, 2011 12:02 am
by Andrew
Hello,

Great :biggrin: