开发者

SSRS Checking whether dataset returned erroneous rows

开发者 https://www.devze.com 2023-03-13 06:37 出处:网络
I have a dataset that calls a stored procedure in an SSRS report. If the dataset has no rows, it returns a different set of fie开发者_开发百科lds than when it has rows.This causes all of the fields to

I have a dataset that calls a stored procedure in an SSRS report. If the dataset has no rows, it returns a different set of fie开发者_开发百科lds than when it has rows. This causes all of the fields to display #ERROR.

Is there a way to check if the dataset is returning the appropriate fields, so I can hide the dataset rows?


I found the answer to this question

The solution for this is to check the IsMissing property on the dataset field:

Set the row's "Hidden" property to -

=IIF(Fields!FieldThatShouldBeThere.IsMissing,true,false)

Frank

0

精彩评论

暂无评论...
验证码 换一张
取 消