存储过程中的SSRS参数默认值不刷新

时间:2018-05-10 12:57:52

标签: sql visual-studio stored-procedures reporting-services ssrs-2012

我有一个检索日期的存储过程:

ALTER PROCEDURE [dbo].[GetFirstContractFirstDate]
    @Classifierid uniqueidentifier = 'C53387E0-AD2B-E511-9421-005056BAB261' 
AS 
BEGIN
    SET NOCOUNT ON;

    SELECT 
        CONVERT(DATE, MIN(o.tisa_RegistrationDate), 103) AS startDate
    FROM 
        Opportunity AS o 
    INNER JOIN
        SystemUserBase AS u ON u.SystemUserId = 'DB159B57-4A3D-E311-93EC-00155D46BF05' 
    LEFT OUTER JOIN
        UserSettingsBase AS us ON us.SystemUserId = u.SystemUserId 
    INNER JOIN
        tisa_Article AS art ON art.tisa_ArticleId = o.tisa_ArticleId 
    INNER JOIN
        tisa_Address AS addr ON addr.tisa_AddressId = art.tisa_AddressId
    WHERE 
        (addr.tisa_ClassifierId = @Classifierid)

在我的SSRS报告中,我有两个参数@Classifierid@startDate

当我第一次运行报表并且选择classifierid的值时,我得到了所需的日期,但是当我更改classifierid的值时,startDate默认值不会刷新。该报告显示第一次检索的默认日期。如何自动刷新参数@StartDate

第一次运行报告

First time the report runs

StartDate未刷新

enter image description here

0 个答案:

没有答案