SSRS Parameter values in Dropdown not Labels?

I'm fairly new to SSRS and I am trying to set up a report with parameters in VS2010 against SQL Server 2012.
I've come across two distinct problems, the first appears to be a bug. When I create a parameter I set the values to the key and the Label to the friendly name for the key value from my dataset. (e.g. select customerid, firstname + ' ' + lastname
as customername - putting customerid as the value and customername as the Label) When my report runs on IIS the parameter always shows the id whether the Label is set to customer name or not. Has any one come across this?
The second problem could be a problem with my set up, if I try and preview a report I get an error saying the windowsbase.dll assembly cannot load. I have repaired both VS 2010 and SQL Server 2012 and the problem still persists. Again any ideas?
regards,
Anthony

Hi Tanman321,
According to your description, you have one problem about the labels in parameters. The other problem is missing some assembly file when previewing report. Right?
In this scenario, if we get the error "Could not load windowsbase.dll", we should add reference in Visual Studio. Please see the link:
Finding WindowsBase.dll . If the .dll file is corrupted, you can download this file on Microsoft site:http://www.microsoftfixit.us/windowsbase-dll/
For your first issue, we haven't encountered this issue as we tested in our local environment. We suggest you check the dataset and data fields in your parameter and preview this in Visual Studio first. If it still exists, please try to restart the Report
Server.
If you have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • Missing Parameter Values - I'm not using parameters linking to sub

    I'm developing reports for use in an aspx environment using Visual Studio 2010 and CR 13.
    I have a main report and a subreport. Each report is linked to the database with a view that is connected to a dataset.
    When I place the subreport in the main report I edit the change links option and select identical fields from each report.
    When I run the code with the subreport commented out I get what I expect on the page.
    When I uncomment the subreport I get "Missing parameter values"
    Here's the code that I uncomment for the subreport. I've already checked to ensure that there is data in the dataset.
    mySection = CaseAssignmentRpt.ReportDefinition.Sections("dsCaseOffender")
    mySubObj = mySection.ReportObjects("srCaseOffender")
    mySubRep = mySubObj.OpenSubreport(mySubObj.SubreportName)
    mySubRep.SetDataSource(dsCaseAoffender)
    Do I need to do anything special to my dataset for the two fields to get linked?

    Hi Chris
    Nothing special needed - just making sure that the data is exactly what the report and subreport expect. It is quite typical for this issue to come up if the dataset contains date that is not as expected (e.g.; field formats (including nulls / spaces, etc, missing fields, and so on).
    See if following the dataset troubleshooting wiki will help:
    Troubleshooting Issues with VS .NET Datasets and Crystal Reports - Business Intelligence (BusinessObjects) - SCN Wiki
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Parameter value selected is not getting into paramater variable.

    Hi,
    I have a parameter variable in which there is a list of values(2007,2006,2005,2004).
    By default, parameter value is 2007. But when I select any other value form the list, variable doesnot show that selected value at all. Someday back variable was showing me value , but now its not showing. Please give me some suggestion.
    Thankyou,
    Poonam

    Hi,
    While declaring the Parameter do not assign directly,  i mean Declare the paramter and do not use the DEFAULT option with the parameter, instead of this assign the 2007 value in INITILIZATION event, then ones you select it then the value will come into this parameter
    Regards
    Sudheer

  • SSRS Parameter value from another parameter

    Hello Everybody,
    I have a parameter that I need to get it value from another parameter.
    The first parameter @rdt is a date - 11/01/2012
    The second parameter @mm is the year and month = 2012
    I tried putting in a select inside the query but it did not work
    SET @mm =  (SELECT cast(year(@rdt) as char(4)) + cast(month(@rdt) as varchar(2)))
    Then I put it as a default value inside the parameter and it still did not work
    =cast(year(Parameters!rdt.Value) as char(4)) + cast(month(Parameters!rdt.Value) as varchar(2))
    Any ideas or suggestions ?
    Thanks in advance

    Hi Msj99,
    I have tested the expression provided by
    Visakh16 that it works fine , you will get the value as Integer type "YYYYMM", you can also use expression as below to get the string type of @mm (YYYYMM):
    =Year(Parameters!rdt.Value)&Month(Parameters!rdt.Value)
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Parameter  value "Half year " is not accepting by while updating time dimen

    Hi,
    while i am updating "Time" dimention i am getting an error as parameter value "Halfyear" is not valid value. But system is  accepting Daily, Monthly, Quarterly and yearly under Level parameter.
    So please advise me how to proceed on this.
    Regards,
    M.Chandra Sekhar Chowdary

    Hi,
    This is definitely not the answer you might be expecting. We have it as 'DAY' for the level property values for H1 and H2(completely not reasonable). But you can process the TIME dimension with this 'value' for half year provided you dont have dates as your time members (which may be the case).
    Try using 'DAY' and process the dimension as a work around. We could wait if there is any other valid reason behind this (not taking 'halfyear').
    Thanks

  • Missing parameter values message when exporting report

    Post Author: Gr_Pr
    CA Forum: .NET
    Using .NET 2005, CR XI R2, and the Crystal SDK for .NET 2005 to generate reports. Basically CR is my application's reporting tool. So, we create a report in CR XI R2, then distribute that report to our users loading it into the .NET application using the Report Document class.
    We have a small problem.
    Our user's have the ability to use pre-defined 'prompts' that will pass parameters to the reports. Let's say that the prompt will pass in (5) pre-defined parameter values, but the customer wants to run their own 'custom' report using our prompt, but their 'custom' report contains (6) parameters.
    If I let the Report Viewer load the report, the user will be prompted for the missing parameter value that was not supplied by the 'prompt'.
    If I run the report without loading it into the Viewer and try to export the report directly to PDF I receive an error message from CR stating I have 'Missing Parameter Values' then the report errors out.
    Has anyone come across this? Is there something I missed?
    I am not real sure as to why you would be prompted by the Viewer and not by the Export Class. This worked fine when using the RDC component, I was prompted for the missing parameter value by both options.
    Any help would be greatly appreciated.

    Hi,
    The report has it's own ADO Datasource set in crystal reports, so I just pass the log on information to the report object before doing anything else.
    this.DataSourceConnections[0].SetConnection("ServerName", "Database", "sa", "Password");
    I then do a refresh before applying the parameter values (I do this because the user can preview the report more than one time by using a preview button on the parameter form without re-loading the report object)
    this.Refresh();
    Then I set all parameter values followed by setting the recordselection formula.

  • Ssrs parameter default value not showing ,when available values is binded to query dataset

    I have developed a report using sql server data tools for vsiual studio2012 ,i have defined few parameters ,on one of the parameter when available values is binded to a dataset query, the report default value is  not showing in report preview .
    Many Thanks
    Chandra

    Hi Chandra,
    According to your description, you have set the default value for a parameter, but it's not displayed when initially running the report. Right?
    In this scenario, since you have set the available values bind to query, so your default values should be within these available values. If these default values are not within the available values, the default values will be not displayed. So please check
    the default values.
    Reference:
    Add, Change, or Delete Default Values for a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Not seeing parameter values in SBO while running a crystal report w/Zebra

    I am using the crystal reports addon for SAP Business One.  I created a report which prints a label (1"x3") on a zebra thermal printer.  If I run the report within SAP Business One with a default printer other then the zebra printer I see the drop downs for the parameter values.  However when I select the values and print it , the label does not print correctly.  It appears as if crystal thinks the label is 3"x1".  If I try to run the report with the zebra printer as a default printer within SAP Business One, the drop downs for selecting the parameters are gone.
    If I run the report within crystal 2008 directly, I have no problems with printing the label properly as long as the Zebra Printer is not the default printer.  I have updated crystal 2008 with all available service packs and updates.  I have made registry entries on the server and workstations to allow more than enough values to be seen in the parameter dropdowns.
    Does anyone have any idea why the report will not work when being executed within SAP Business One?

    Susan,
    I'm not sure if the attached thread is relevant for you? I am also searching related to issues with Zebra, although mine are with PLD.
    Re: Crystal Reports viewer(runtime) barcode printing problem

  • Any way to pass Multiple Values for a single Label in the Parameter?

    I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
    One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter. 
    PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
    Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
    QUESTION:
    Any way to pass Multiple Values for a single Label in the Parameter?
    I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
    it correct.
    I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
    Note: We are using Report Builder 3.0

    Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
    Try creating either a function or stored procedure using the code below (compliments to
    http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string: 
    CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
    RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
    BEGIN
    DECLARE @SeparatorPosition INT
    DECLARE @ArrayValue VARCHAR(1000)
    SET @Array = @Array + @Separator
    WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
    BEGIN
    SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
    SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
    INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
    SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
    END
    RETURN
    END
    Once created you can do things like this:
    SELECT * FROM Parse('John,Bill,David,Thomas', ',')
    SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
    WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
    This is what your SQL query would probably look like:
    SELECT OperationID, OperationName FROM dbo.Operations
    WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
    You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value.

  • Ssrs 2008 r2 parameter values

    In a new ssrs 2008 r2 report, I need to display 2 of the parameter values in the heading of the report. One of the parameter values in the name and customer number. The second heading value is the city and state where the particular customer is located at.
    The customer table has the following values:
    a. cust_id int primary-id,
    b. customer_name varchar(50),
    c. cust_address1 varchar (50),
    d. cust_address2 varchar (50),
    e. cust_city_state varchar(40),
    f. cust_zip_providence varchar(30),
    g. cust_country varchar(30).
    Thus I need to place the  paramter values of customer_name and cust_city_state that are obtained from a dropdown list in the heading.
    when I try =first(customer_name) in the heading, the value is only good for the first customer name. After that, the wrong parameter value is displayed.
    Thus can you tell me and/or show me code of what I can do to place the parameter values
    of customer_name and cust_city_state in the heading of the report?

    Follow below steps,
    1. Create 3 Data set.
     DS1 = select * from customertable
     DS2 = select distinct customer_name from customertable
     DS3 = select distinct cust_id from customertable
    2. Add two parameter, customer name and customer number
     --------parameter 1
     - supply Name property for 1st parameter
     - datatype for the parameter is string
     - Available value property, Select dataset DS2, Select Field Value as "Customer_Name"
     --------parameter 2
     - supply Name property for 2st parameter
     - datatype for the parameter is string
     - Available value property, Select dataset DS3, Select Field Value as "Cust_id"
    3. Add a blank tablix/table.
     -- Select TableRow2 and right click to add new group i.e insert group.
     -- Group properties window will be openned,
     -- Select Group On Expression 1st.
     -- Select the parameter(Parameter1/customer name) by double clicking in the expression window
     -- Select Group On another Expression 2nd.
     -- Select the parameter(Parameter2/Cust Id) by double clicking in the expression window
     -- Now in the general tab you need to checked "Repeat Group Header"
     -- press ok to close the group properties window.
    4. Now from DS1 drag the field City and State in TableRow3 columns.
    5. Drag the Customer Name and Customer Id/Number in TableRow1.
    6. In case if First(Fields!CustomerName) appears then remove First function as simply "Fields!CustomerName". Similarly for Customer Number.
    7. Finally we need to set the filter condition of the table property. Open the table property by right clicking. On the "Filter" tab choose the expression as "Fields" items and double click "CustomerName" to add in the expression. Similarly add second
    field "CustomerNumber" in the expression. Check the operator "=" and choose the value as "Parameter" items respectively.
    Regards, RSingh

  • Large Number of Multi-Select Parameter Values does not generate Report

    I have a SSRS Report that requires 4 multi-select parameters.
    The report is deployed on a SharePoint website with SSRS integration.
    I calculated, if the user selects 'Select All' for one specific customer, there could be at most 2700 possible parameter values among the 4 parameters.
    In some cases, when a user selects 'Select All' and clicks Apply, nothing happens.  No icon showing Processing Report.
    If a user selects 'Select All' and the total number parameter values are under 500 for a specific customer, there is an icon showing Processing Report.
    I followed the instructions at:
    http://social.msdn.microsoft.com/Forums/en-US/b02ccb5d-6019-4d63-bd6c-8baff24fffd8/sql-server-limit-on-the-number-of-multivalue-parameter-selections?forum=sqlreportingservices
    That did not help.
    Thanks in advance.

    Install the latest update of SQL Server :
    2008 SP2 : http://www.microsoft.com/en-us/download/details.aspx?id=12548
    2008 R2 SP2 : http://www.microsoft.com/en-us/download/details.aspx?id=30437
    2012 SP1 : http://www.microsoft.com/en-us/download/details.aspx?id=35579

  • Read Query String Parameter Value in SSRS

    Hi,
    We have Project Server 2010 and Sharepoint Server 2010 env and using SSRS 2008 R2 for reporting purpose in Native mode.
    Here I am displaying the SSRS Project report in Project Server page using Report Viewer web part like below.
    Here I want to read projuid query string parameter value (Highlighthed above in URL ) in SSRS by using any way, so that I can pass that
    projuid value in my SSRS report parameter to filter and make this report dynamic.
    Right now I have to select the ProjectName (Label) which passes ProjUID
    as value from the Parameter, but I want it should read the projuid
    from URL so that this reports will display the project the data for the opened Project automatically
    Thanks and let me know in case we can achive this using OOTB or some custom functions.

    Hi,
    For the report parameter, you can get the value from database query or some embedded funcitons etc. or even some customerized function.
    You may consider to create your own code for the report to read the projuid from application or URL. The customer code can be used to get the values from the applicaiton or from the url etc. Then report can call the customer code function to get the value.
    refer link
    https://technet.microsoft.com/en-us/library/ms155798(v=SQL.100).aspx
    https://support.microsoft.com/kb/920769?wa=wsignin1.0
    Thanks,

  • Parameter weirdness: Report not using user selected parameter value

    I am writing my first report and cannot for the life of me figure out how to deal with this issue.
    When I call a report and pass the parameters in, it appears that the user cannot then change the parameter values and run the report again even though the parameters are displayed. When user hits run report, the values revert to what was passed in by original
    call.
    Scenario
    Report B has Parameter Period : Month, Quarter, Year displayed in a drop down list.
    Report A calls Report B and passes it the parameter: Quarter.
    Report B loads. User now changes parameter to Year via the drop down parameter list and hits Run Report.
    Instead of loading the report with user selected value (Year), it reverts back to the parameter it was called with, Quarter.
    I have tried changing the refresh option on the parameter to always, but no joy.
    The only way that seems to work is to put textboxes on the report to change the parameter.
    How can I stop this behaviour, and use the users new selection. 
    This should be really straight forward, and its driving me nuts that its not allowing the user to change the parameters
    Any help would be much appreciated.
    Thanks Jon

    Hi Jon,
    Did you use SSRS 2012? Based on my test, the issue is occurred in SSRS 2012 Business Intelligence Development Studio (BIDS). When we deploy the report to report server, it will disappear.
    In this situation, we can add another duplicate parameter to work around this issue. Please add two parameters in the report, and then hide one of the parameter. We can pass the parameter value to the hide parameter. If we want to select other values, we
    can change the visible parameter values.
    Alternatively, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/. If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
    level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Replacing NULL and EmptyString('') with "Unknown" in SSRS parameter dropdown

    All,
    What I want to do is, in the SSRS parameter drop down, instead of showing NULL and Blank values(), i want to categorize them as "Unknown", so, if the user selects "Unknown" from the SSRS drop down parameter, he should be able to see all
    the records that have NULL values or empty strings in that particular column in the result set.
    Can you tell me, how should I handle it in my main stored proc as well as in the dataset?
    Right now, i have something like this:
    Where
    (t1.name in (select value from dbo.Split(@TName,',')) OR @TName IN ('All'))
    -- Where t1.Name has empty strings and NULL values. Both of these values should be categorized under "Unknown"
    -- How would the dataset query look like? Right now I have this query for populating the drop down for that parameter:
    Select All
    UNION
    Select Distinct Name
    Order BY 1

    Hello,
    Please refer to the following stored procedure:
    SELECT
    CASE WHEN TName IS NULL OR TName = ''
    THEN 'Unknown' ELSE TName END AS TName
    From DemoTable
    Then, use following query code to get the parameter values:
    SELECT Distinct
    CASE WHEN TName IS NULL OR TName = '' THEN 'Unknown'
    ELSE TName END AS TName
    FROM DemoTable
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • SSRS Matrix report to show or hide year column based on parameter value "Date" selected.

    Hey experts!
    I have a requirement an ssrs matrix report should display columns (year/s) based on parameter value (date/s). 
    My Dataset fileds are: Product, Year_name, Month_name, Date
    Currently my report output looks like this-
    Param Date: 2013-08-01 00:00:0.000
    Product +Calender2011      +Calender2012     -Calender 2013........                        +Calender2014
                             Total
                      Total Jan13  Feb 13  Mar13..  Dec13   Total           Total
    Abc                      100
                        220
    10      20         30.......  20       250              400
    Xyz 110
    200 50      80         40.......  30       450              600
    My requirement:  if I'm selecting Date parameter value as '2013-xx-xx' I should only able to see Year column 'Calender2013' and rest of the years should hide. Similarly If I'm selecting Date parameter value as '2014-xx-xx' I should only able to
    see Year column 'Calender2014' .
    Appreciate your kindly help. 
    Afan

    Hi Afan,
    According to your description, you want to only show the selected year on your report, right?
    In this case, you need to get the year from the date parameter using the expression below
    =Year(Parameters!Date.Value)
    And then use the expression below to get the year from Year_Name field.
    =Right(Fields!Year_Name.Value,4)
    Then add a filter to the dataset to filter the data like below
    Expression:=Year(Parameters!Date.Value)
    Operator:=
    Value:=Right(Fields!Year_Name.Value,4)
    Reference
    http://msdn.microsoft.com/en-IN/library/dd255287.aspx
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Problem with Business Rules

    Hi, I just started with a simple Business rules sample. All the time only the first condition in the rule set seem to be executed and the result is same inspite of conditions not matching the first condition. Am I doing something wrong? Thanks, Prabu

  • MIC / VENDOR Trend analysis in Graphical mode

    Dear Freinds, please explain me how top perform trend analysis in graphical mode for a material procured from a vendor over a period of time. Report should display the charecterstics recorded for Material / Vendor combination. I am not using SPC char

  • Unable to connect server localhost

    Never had this problem in the past now suddenly i am unable to contact the server localhost, internet is working but certain pages doesn't work how can i solve this? thnks in advance Roel

  • BT Line product not allowing broadband

    Hi, Im trying to order broadband from a company that isnt BT, but when I put my BT phone number into their internet ordering page it says my phone line has a product or service that is making my phone line incompatible. Any idea what this might be? A

  • How do i turn off related links?

    i get tired of getting related link info. they pop up every time i go to a different site -- i want to get rid of this -- please help!