External Filter

Stimulsoft Reports.WEB discussion
Post Reply
marco_vinicio
Posts: 7
Joined: Wed Mar 04, 2009 11:55 am
Location: Brazil

External Filter

Post by marco_vinicio »

I will build my own "filter builder".
There's some way to apply filters in datasource's report?
Some thing like this:

relatorio.Dictionary.DataSources["rs_formulario"].DataTable.Select("cod_usuario = 1")

Thanks...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

External Filter

Post by Jan »

Hello Marcio,

You can change/add filters in report, but only before report compilation. Please see example:

Code: Select all

StiFilter filter = new StiFilter("cod_usuario == 1");
StiDataBand data = report.GetComponentByName("DataBand2") as StiDataBand;
data.Filters.Add(filter);
Thank you.
Post Reply