SSRS not using default parameter values - sql

I have a report in which I did everything the same (with respect to parameters) as I always do, but for some reason when I preview the report in Data Tools, default values for SystemName parameter isnt used.
Here is a screenshot:
Default and Available values are both set to a query embedded in the related dataset and no setting is different than the other parameters.
Has anyone experienced this before? Does anyone know what can cause this?
Additional screenshots:
Photos

Found solution to my problem. The problem was my query in the dataset for the systemname parameter had blank entries. So I added a where clause to filter null and blank fields and problem was solved. I assume blank comes first when things are sorted so thats why i was geting a blank default value

Related

SSRS Action to Change Value of Variable

I'm using SSRS 2008 R2 to create a report which is a directory of contacts so people can find this easily. I've got the report working but the list is huge so I want to add dynamic filters by setting text boxes up that if anyone clicks on it, the results will be filtered.
I've set up a test report with a text box with an action to re-open the report but with the parameter set to ="A" to only pull back contacts beginning with the letter A. However, when I click this, I get the following error:
The report parameter 'Initial' is read-only and cannot be modified.
(rsReadOnlyReportParameter)
As an alternative, I've thought about adding a variable to the report and basing the parameter on this value. The only thing is that, although there's plenty out there showing how to change the value of a variable, I cannot seem to find a way to set up an action to change one.
Any ideas?
No worries everyone - I've found the answer. The first solution works but the parameter has to be set to hidden, not internal as I had set it up.

SSRS - Fields working in Data Set, but won't appear in report

I have a data set that gets its values from a stored procedure, and I'm positive that the stored proc is working correctly since I'm getting results in SQL Server. However, when I call the fields in an expression (for example, =Fields!CustomerName.Value) and preview, it just displays a blank spot in its place. If I simply typed some text in that spot, the text does appear when I run it.
The DataSet IS working, and it's refreshed to show all of the fields. They just don't display anything in the report, despite definitely returning values when I check in SQL Server. Does anybody have any suggestions as to what steps I could take to fix this?
Thanks.
Try referencing your dataset explicitly, by changing this:
=Fields!CustomerName.Value
To this:
=Fields!CustomerName.Value,"MyDatasetName"

SSRS how to show report without executing it immediately

So, the problem is that report on SSRS is executing immediately after opening. I use query based default parameters.. And i saw the solution with adding additional parameter without default value. It doesn't work for me because of the textbox which cannot be hidden (i tried to hide it and report stop working).
So is there a way to hide this additional parameter? or maybe another way to solve this issue?
The problem is happening because you are setting a required parameter as nullable or you are giving it a default value that is invalid. To fix the problem, remove the default values. When you go to the report it will not be able to run until you give it the required value(s).
There can be two solutions to it.
Set the default of the parameter in question to such a value that would absolutely have no matches in dataset. Say for example, the parameter is Location. Give the defalut value as "Mars". (Unless of course you build software of extra terrestrial beings). This way the report will execute pretty fast, without any errors.
Set the default value of the parameter to be NULL. Add a dataset filter like below:
=IIF(ISNOTHING(Parameters!Location.Value), TRUE, FALSE)
Using IsNothing function you can ask dataset to return rows only when the parameter has values.
Let me know if either approach works out.

Custom code to fix #Error showing in SSRS reports

I have a few reports built using Report Builder 3 for MSSQL 2008 Reporting Services.
Some fields in my report are showing "#Error", instead of this I want to show only a simple "-". Is there any built-in function or custom code to overcome this?
I'd still really like to see your formula but you seem determined not to show it, so I'll take a wild stab at answering without it. I imagine that you are doing something like dividing the field on the current row by the field on the previous row. However, this would give you Infinity on the first line rather than #Error so there is something else going on. But let's run with this anyway since we don't have your formula.
The most common way to solve this is to check for Nothing being returned for the Previous function, usually indicating that you are on the first row (assuming your field always has data). This has the advantage of also working on fields that are not guaranteed to have a value.
=IIF(IsNothing(Previous(Fields!MyField.Value)), "-", Fields!MyField.Value / Previous(Fields!MyField.Value))
Here is another way you could do it using the row number, which will always check for the first row regardless:
=IIF(RowNumber(Nothing) = 1, "-", Fields!MyField.Value / Previous(Fields!MyField.Value))
This assumes that the error is being caused by the Value formula and not by some other mechanism such as applying an expression to other properties like Format, Color which is invalid when there is no previous row.

How to filter a Sharepoint List Column with a Textbox Control Value using a "Contains" query?

I'm using a data view to display a list (Sharepoint 2010) that has several columns including one that has a Name column. I've provided the user with a text filter on the page to send values to filter the Name column in this list. The problem I'm facing is that the filter only works for exact matches and not partial matches.
I tried to overcome this problem by using Sharepoint Designer to:
create a parameter that uses the textbox control value.
Filtering the Name column with this parameter and setting the comparison to "Contains"
Unfortunately if the default value of the Parameter is blank, the list does not display any data. If the default value of the parameter is set to part of a name in the list, the list displays names that contain that string. However, when changing the value in the text box and searching, the list does not return results. Please let me know if you guys know how to fix this. Any help is much appreciated and let me know if you need any additional information. Thanks!
Managed to find a solution to my problem. I used a custom javascript solution designed by jvossers (http://instantlistfilter.codeplex.com) that involves the list being filtered instantly much like Google's search!
The only downside of this solution is that it only filters the items currently displayed on the screen. Therefore, if you have a data view web part which limits the amount of items displayed on the page, this solution won't help you. In order to facilitate this solution, display all the row items on the page (by increasing the item limit per page to a larger number than your total list rows) and then add this code into a content editor web part on the same page. Worked brilliantly for me. '
By the way if you are using jQuery 1.3.x or higher, you should modify the script a little as described in the disscussion here: http://instantlistfilter.codeplex.com/Thread/View.aspx?ThreadId=49123