BaBernd
14th October 2015, 19:03
Hello to All,
I've created a Sub Report to call it from a main Report in SSRS/BIDS:
Here the steps I've did:
1. I've created a data source LN_SQL as embedded Connection of type: Microsoft SQL Server with the Connection string: Data Source=Servername
2. Then I've inserted a tablix and during creation I was asked for the data source and query. As data source I've inserted the upper mention data source. As Query of type text I've entered the following code:
Select t_qono, t_pono, t_srnb, t_ofbp, t_item, t_nids
from dbo.ttdsls101400
where (t_qono = '120000006')
order by t_pono.
But in the code I like to replace the following Points:
1.) dbo.ttdsls101400: here I will replace the final '400' through the @Company Parameter from the main Report.
2.) '120000006' is the Quotation ID from the main Report where it is defined as: First(Fields!tdsls100_qono.Value, "DataSet1"). How I can replace this explicit Number through a placeholder?
Best Regards
Bernd
I've created a Sub Report to call it from a main Report in SSRS/BIDS:
Here the steps I've did:
1. I've created a data source LN_SQL as embedded Connection of type: Microsoft SQL Server with the Connection string: Data Source=Servername
2. Then I've inserted a tablix and during creation I was asked for the data source and query. As data source I've inserted the upper mention data source. As Query of type text I've entered the following code:
Select t_qono, t_pono, t_srnb, t_ofbp, t_item, t_nids
from dbo.ttdsls101400
where (t_qono = '120000006')
order by t_pono.
But in the code I like to replace the following Points:
1.) dbo.ttdsls101400: here I will replace the final '400' through the @Company Parameter from the main Report.
2.) '120000006' is the Quotation ID from the main Report where it is defined as: First(Fields!tdsls100_qono.Value, "DataSet1"). How I can replace this explicit Number through a placeholder?
Best Regards
Bernd