Question?
How to avoid prompt for parameter when parameter is a link to subreport stored procedure?
Main report
Processes all records
Under specific conditions a subreport is called
Main report field link-to subreport
Link-to stored procedure parameter
Run prompts for a parameter value --- which if you provide one the main report will only process the subreport for that ONE parameter value [the subreport is built as expected]
Issue: expect the subreport to process all values passed from main report
Criteria for subsreport x must be in data string
Main report abcd - subreport not called
abcdx - subreport called link parm is abcd, pass to stored proc value abcd
Subreport display “this is OK”
ccdm - subreport not called
cdcc - subreport not called
dcccx - subreport called link parm is dccc, pass to stored proc value dccc
subreport display “this is OK”
stored proc ALTER PROCEDURE [dbo].[sp_SUBREPORT1]
@key varchar (4)
AS
Select t.match
From test_data1 t
Where t.key = @key
How to avoid prompt for parameter when parameter is a link to subreport stored procedure?
Main report
Processes all records
Under specific conditions a subreport is called
Main report field link-to subreport
Link-to stored procedure parameter
Run prompts for a parameter value --- which if you provide one the main report will only process the subreport for that ONE parameter value [the subreport is built as expected]
Issue: expect the subreport to process all values passed from main report
Criteria for subsreport x must be in data string
Main report abcd - subreport not called
abcdx - subreport called link parm is abcd, pass to stored proc value abcd
Subreport display “this is OK”
ccdm - subreport not called
cdcc - subreport not called
dcccx - subreport called link parm is dccc, pass to stored proc value dccc
subreport display “this is OK”
stored proc ALTER PROCEDURE [dbo].[sp_SUBREPORT1]
@key varchar (4)
AS
Select t.match
From test_data1 t
Where t.key = @key