Greyed out parameter with default value - reporting-services

There is a SSRS report with some parameters.
I have two problems. The most important is that one of the parameters ("Código Titular") is greyed although it has a default value and I would like it to be clear that there is a default value. The default value will only appear after the others that come first are set
All parameters are set to not refresh:
Is there a way to make the default value appear at the beginning? And also to prevent the parameter setting to refresh the page?

Related

In SSRS is there a way to change the default properties

It's pretty annoying having to go through all my text boxes and change can grow to False. Is there a setting in report builder to change the default property from True to False?
This is quite easy to do.
Select all the text boxes you want to change the property on; use Ctrl and click to select more than one.
Find the CanGrow property in the Properties Pane, change it to False.
This should work in both Report Builder, and VS.

Disable go to report action for a text box if data is zero or nothing in SSRS

Description
I want to disable links (Go to report action) when data is Zero or Nothing.
I used below expression in go to Report section:
=IIf(IsNothing(Fields!HighwayLampCounts.Value)=0, "rpt_Highway_Online_Koli_Detail","rptNoData")
But, it doesn't work :(
You should put one rectangle over there and then inside that put two text boxes with condition - and show hide as per condition. that could be the solution in this problem.
Many Thanks to rajeshpanchal
I found a better way! Using Nothing in Go to Report works...
Use below expression in Specify a report:
=IIf(IsNothing(Fields!HighwayLampCounts.Value) = True, Nothing, "rpt_Highway_Online_Koli_Detail")
This way link would be eliminated from Null Values...

SSRS Add Blank Page After Every Page

I have a requirement to insert a blank page after every page when an SSRS report is printed/exported to PDF, however this needs to be controlled via a parameter.
The reason for this requirement is that when the report is printed each page of data needs to be printed onto a separate piece of paper, however the majority of printers are set to double sided by default. Users aren't able to change the default setting except on each occasion they print. Unfortunately this double sided print setting isn't applied everywhere so there needs to be an ability to control the addition/removal of blank pages.
I am able to force a blank page to be created after every page by simply setting the size of the report bigger than the page size, though it isn't possible to control page width size via an expression.
My only thought is that this may be possible via custom code but don't really know where to start with that.
If you go to the table properties, you can set an expression for the Page Break Disabled property. This will allow you to disable / enable a page break based on a parameter. In this example I created a boolean parameter called Break. If its set the parameter to True, you will get an additional page after your table. Hope this can get you started!

Changing the text in an SSRS report textbox based on the toggle state of a row group

Apparently this should have been simple. After lots of digging, I'm yet to find anything that works. I have a row group in my SSRS report whose visibility is toggled by a textbox. What I want is to have the text Show in the textbox when it's collapsed, and Hide when it's expanded.
But I can't find any property of the group that can give me its toggle state. I have found in a few forums that it's not possible. As a workaround, I've tried the InScope() function ( as suggested in http://forums.asp.net/t/1601570.aspx/1). But to no avail. Can anyone suggest anything?
I believe you are correct in stating that SSRS does not expose the ToggleState property for use in the report.
In these types of situations, I use report parameters to control the state of the report. For example, you could add a parameter named isGroupVisible to the report with a default value of 1 to represent visible. Set your group's visibility to that parameter, and set your text box value conditioned on the state of isGroupVisible. Then in the text box you set your actions to be go to a report, and set the report url to be the same report with the isGroupVisible = to the opposite of what it currently is.
You can decorate your text box all you want to give the users the indication that it can be pressed to toggle the state of the report.
Draw backs to this approach is that it isn't as snappy as the ajax calls SSRS does to expand visibility--it will post back to the server on each toggle press.
Advantages to this approach include much more flexibility in controlling the state of the report.

Textbox in Reporting Services - show text or hyperlink

I have a report in SQL Server Reporting Services which should show
a text box with a static text for "normal" users
a text box with a hyperlink to open up a new details windows for "super" users
The user level is determined by a parameter being passed into the report.
How can I achieve this? I tried to create a textbox with a text span inside that has a hyperlink, and then just leave it blank for "normal" users, but that doesn't seem to work reliably.
Is there a trick or method to get this to work? I'm thinking I need to add some code to the report to check the user level and then either insert a static text, or a text with a label, into that target textbox. But how do I do that (not having any VB/VBA/VB.NET experience....)
Thanks!
Marc
To make the hyperlink, you should be able to use an expression like
=iif(Parameters!IsSuperUser.Value = True, "http://some link","#")
in the Action property of the textbox, if you set the Action to "Jump to URL".
To control the content of the textbox, use a similar expression in the Value property.
(This is true on SSRS 2005 - I don't have access to 2008)
Edit
Unfortunately, hyperlinks in SSRS aren't formatted in a way to make it clear that they're hyperlinks. The only way to achieve this would be to add similar conditional formatting expression to the Color and TextDecoration attributes to make the field appear in a different colour and underlined when it is a hyperlink.
I haven't got SSRS installed on the machine that i'm writing this on so i can't give you an exact guaranteed bug free answer, but this answer should set you on the right track.
Have two textboxes, both located in the same absolute position (inside a container element if necessary). Fill them both with their correct values. Then just control their visibility by toggling their Hidden property with an expression:
=(Parameters!UserLevel.Value = 'Admin')
Obviously UserLevel is the name of the parameter being passed in to the report. The 'Admin' value is for illustrative purposes, personally i would use an int value to represent the user level, much like using an enum.
Remember that it is the Hidden property you are setting, so you have to reverse the logic you would have used if you were setting a Visible property :)