Help creating Databand filter at run-time
Posted: Sun Nov 29, 2009 4:14 pm
In my report, I have a drop-down list with a list of employees plus an option "All Users". Because of the "All" option, I can't hardcode the filter in the Databand so I am trying to create a filter at runtime.
In the report form, I have a button with an onclick event:
In the report form, I have a button with an onclick event:
Code: Select all
if (userID > 0) {
StiFilter userFilter = new StiFilter("ReportData.userID == " + userID.ToString());
Data1.Filters.Add(userFilter);
}
ReportData.Connect();