Multiple parameters

Stimulsoft Reports.NET discussion
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Multiple parameters

Post by Edward »

Please declare a variable "ClientListId" in the report's Dictionary. Type of the variable please set 'object'.

SQL query should like something like this:

select * from Categories where CategoryID in ({ClientListId})

Setting of the Variable must be done exactly as Brendan suggested:
report.Load(....); //Load Template
report.Compile();
report["ClientListId"] = "1, 2, 3, 4";

report.Show();
Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Multiple parameters

Post by Edward »

mir wrote:I've made a master detail report that shows the orders for every client. I have made also a total for every client, and now i want to make a GRAND TOTAL for all the clients.
Example (lets make a count of all the orders) : i have 3 clients. first client has 3 orders, second client 5, and the third one has 8. For every client i would make a count of the orders, and at the end of the report i would like to have a grand total count that shows the total number of orders, 3+5+8=16
Please place a FooterBand with a desired function (you can easily make it using the Summary-Wizard in the Text Editor of the text component) between Master and Detail databands. It is a trick.

Thank you.
mir
Posts: 8
Joined: Mon Jun 30, 2008 8:06 am
Location: Romania

Multiple parameters

Post by mir »

I must be a pain in the ass right now Edward, and I'm sorry for that.

I've tried your solution, but it SUMS up just the first order for every client. Now what ?

Again, I'm sorry :shame:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Multiple parameters

Post by Edward »

In that case please define the sum as follows:

Code: Select all

{Sum(MasterDataBand:DetailDataBand,MyDataSource.MyDataColumn)}
Thank you.
mir
Posts: 8
Joined: Mon Jun 30, 2008 8:06 am
Location: Romania

Multiple parameters

Post by mir »

It works ! :feelgood:

Thank you Edward for your time.

Have a good day !
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Multiple parameters

Post by Edward »

We are working for you. Your success is ours as well.

Do not hesitate to contact us if you have any questions.

Our forum's community is always ready to help our new friends!

Thank you
Post Reply