Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια

rousso's .net blog

the .net blog of Yannis Roussochatzakis
Hiding a Report Parameter in SQL Server 2000 Reporting Services

Situation:

You use SQL 2000 Reporting Services, to create a report (probably same applies for SQL 2005, but I have not tried it yet).

You report expects various parameters but the user does not need to specify all of them through the user interface. For example the value of a parameter (say ParamB) can be calculated based on the value of another parameter (say ParamA) that the user selects.

So, you want to hide ParamB from the user.

Solution:

In the Report Parameters Collection Editor select the parameter that you want to hide and clear its “Prompt” field. Then add a Default Value to it (either by using an expression or by using a query).

Quick Tip:

 Notice that when you use a query to get the default value of the hidden parameter ParamB you can always pass to it the Value that the user selected for ParamA (or another parameter).

 

Share
Posted: Πέμπτη, 18 Μαΐου 2006 10:33 πμ από το μέλος rousso
Δημοσίευση στην κατηγορία: ,

Σχόλια:

Χωρίς Σχόλια

Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη