Filtering data using web designer

Stimulsoft Reports.WEB discussion
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

I'm trying to create a report that is grouped by Serial Numbers (in this case) and then displays how many faults an item has had and its current location details, as shown in the example.

Image.

The report lists the correct data (as shown above) but I want to filter the data for items that have more than one fault and sort by the highest amount of faults first.

I've tried to filter the data using the expression Count(ColumnName) > 1 but this returns no data, so I assume I am doing something wrong. What would be the correct way of doing this?

Also am I using the right method for generating a report of this kind, I get the feeling I'm making things harder for myself than they really are?

Any help would be great!

Darren
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Filtering data using web designer

Post by Andrew »

Hello,

Unfortunately, the file you tried to upload is corrupted. Could you, please upload it again.

Thank you.
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

Sorry I put the internal web address not the external web address.

The image is:

Image

Thanks,

Darren
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Filtering data using web designer

Post by Ivan »

Hello,

Can you please send us a sample report with data, which reproduces the issue?

Thank you.
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

All my data gets populated from SQL as I load the report, so if I send you a saved report it will not contain the data, only the datasources. How do I save the report so that it saves the data with it?

Thanks,

Darren
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

All my data gets populated from SQL as I load the report, so if I send you a saved report it will not contain the data, only the datasources. How do I save the report so that it saves the data with it?

Thanks,

Darren
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Filtering data using web designer

Post by Alex K. »

Hello,

You can save data in the xml file with using following code:

Code: Select all

using (SqlConnection connection = new SqlConnection())
{
    SqlDataAdapter da = new SqlDataAdapter("Select * from Table", connection);
    DataSet ds = new DataSet("Data");
    da.Fill(ds);
    ds.WriteXml("path");
}
Thank you.
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

I've attached a sample of my report.

I also cannot get the report to sort by the counted column as well.

Thanks
Attachments
888.Report.zip
(17.51 KiB) Downloaded 1051 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Filtering data using web designer

Post by Alex K. »

Hello,

As a way, you can use master-detail report.
Please see modified report in attachment.

Thank you.
Attachments
890.Report2.mrt
(27.77 KiB) Downloaded 217 times
kmt54_99
Posts: 12
Joined: Tue Mar 15, 2011 3:34 am

Filtering data using web designer

Post by kmt54_99 »

Hi,

Thanks for this.

The only problem now is that I cannot get the count to display correctly for each record. I put {Count(Data1)} on the databand but it only works for one record.

Also is there a special way to create the databand you created as when I attempt to do it, I only get one record?

Also is there anyway to make the report sort by the number of faults?

Thanks
Attachments
894.Report.mrt
(56.68 KiB) Downloaded 229 times
Post Reply