Display Report Field as Parameter value

 Hi All,
Is it possible to show Programcode as a Parameter value on the report header, I am using ProgramID as a Parameter?
 Please let me know.
Below is the SQl Code
Declare @ProgramID int
Select ProgramCode,Name,Abbrevation from Program
where ID=@programID

Hi NaveenCR,
Per my  understanding that you want to  display the multiple value in the parameter dropdown list to display in the Report  header, right?
I have tested on my local environment and details information below for your reference:
You can create an multiple value parameter(ProgramID) based on the field "ProgramCode"
Using the expression below in the report header to get the multiple value from the drop down list of parameter:
=Join(Parameters!DateKey.Value,",")
Or:
=Join(Parameters!DateKey.Value," ")
If your problem still exists, please tried to provide more details information about your requirement and snapshot of the layout you want.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support

Similar Messages

  • Retrieve All records and display in Report using CAML query in Report Builder if Parameter value is blank

    Hello Experts,
    i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
    by using Following method
    Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
    Here is my existing CAML query.
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>Employees</ListName>
      <ViewFields>
        <FieldRef Name="Title" />
        <FieldRef Name="FirstName" />
        <FieldRef Name="LastName" />
        <FieldRef Name="FullName" />
        <FieldRef Name="UserName" />
        <FieldRef Name="Company" />
      </ViewFields>
      <Query>
        <Where>  
    <Eq> 
        <FieldRef Name="Title" />
      <Value Type="Text">    
       <Parameter Name="EmployeeId"/>    
    </Value>
    </Eq>                  
        </Where>
      </Query>
    </RSSharePointList>
    The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
    Please suggest
    Thank you
    saroj
    saroj

    Your problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
    provides some examples,
    http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
    Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Report based on parameter values

    Morning all,
    I have to create a report which includes Account Number, Account Name, Sales prices. There has to be two optional parameters, Account number (Static) and Product Description (Dynamic).
    I have setup the report with Account Number (Grouped), Account Name. The report works fine, when a user selects a particular account number, the report produces fine.
    Things I would like to do and know about:
    1: when it comes to sales price, it should reflect to what user has selected under Product Description parameter.
    for example if the user has selected Supra, Supra KNT, Rimless, Metal etc from the description parameter, the report should only show those selected prices according to the account number (showing descriptive field value).
    2: Additionally, if user chooses all of the options from the drop down menu (multiple selection dexcription parameter) then the report should show all the prices according to the description (showing the description field value).
    The problem in this case which I think would be is because the description values are quite alot, I mean more than 25 values and if a user selects multiple values, lets say all, how would Crystal adjust that into a report?
    Example of a report
    Parameters
    =============
    Account Number:
    Description: Supra, Supra KNT, Metal, Plastic, Rimless, Rimless KNT (multiple selection)
    Report Layout
    ============
    Account Number --- Account Name --- Supra - Supra KNT - Metal - Plastic - Rimless - Rimless KNT
    (Where Supra to Rimless KNT options are chosen by Descriptive parameter value - if not chosen then report will only show account number and account name).
    If however only Supra is selected then the report would look like this
    Report Layout
    ============
    Account Number --- Account Name --- Supra
    Any ideas how to achieve this kind of report? I have setup the report in a landscape so that we can fit as many description values as possible but I only managed to show 9, rest goes over the page.
    The report in the end has to be exported to excel so I don't mind if it goes over a page.
    Regards
    Jehanzeb

    Jehanzeb,
    You do want to use cross tabs...
    Have your database query produce a table with the following columns:
    Account Info (Number & Name)
    Product Description
    Sales
    e.g.,
    Select AcctNo + " - " + AcctName as AcctInfo,
       ProdDesc,
       sum(Sales) as Sales
    from SalesTable
    group by AcctNo, AcctName, ProdDesc
    Then use record selection to limit the data to the selected products.
    Yes, the layout of a cross tab is a bit strange, in that the design of the cross tab only shows one column for the data, but the table will expand with the underlying data.  If 4 products are selected, there will be 4 columns of sales numbers.  When setting up the cross tab, make the AcctInfo field the row header, and the ProdDesc field the column header, and the Sales field the table cell value.
    HTH,
    Carl

  • Scheduling a Report with Dynamic Parameter Values

    Post Author: etlag
    CA Forum: Publishing
    I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
    I have other reports that are using static values and they can be scheduled without entering the database login.
    Any ideas what I am missing?

    Post Author: amr_foci
    CA Forum: Publishing
    dear etlag
    its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
    and cilck ok
    try it ,, good luck
    Amr

  • Exception is thrown while launching report , after entering parameter value

    I have a cystal report, which prompts for parameter value to be entered. When I enter the value and hit okay, an exception is generated. The call stack of the exception :-
    at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
    at CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
    at CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
    at CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
    at CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
    at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.UserControl.WndProc(Message& m)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.WndProc(Message& msg)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Can you please help me with this. Its strange that I do not have similar issue with other reports which prompt for parameter , However in this case the issue lies with show dialog box button in the parameter panel menu which throws an exception if the user clicks the show advanced dialog box button)

    Thank you . I used the MSI listed. Sorry to bother, but couple of questions ., firstly I cleaned up my system to make sure that I do not have any crystal reports assembly in GAC.
    Then I installed the msi per link suggested above and it did install crystal report 2008 sp3. After installing , I noticed that the gac contained 2 versions of assembly for CrystalDecisions.CrystalReports.Engine (Version - 12.0.1100.0 and File version 12.3.1101.684) and the other
    CrystalDecisions.CrystalReports.Engine (Version 12.0.2000.0 and File version 12.3.2001.684).
    I am little confused, why does it install 2 different version of assemblies.
    Also my application needs reference to the crystal reports assembly and since after installing the MSI, it was registered with GAC, I had to copy the content of GAC to a different folder (temp folder )and referenced the dll from temp folder.
    When I copied the contents of GAC, I could copy the Version 12.0.1100 only but not the other one. I want to use the version 12.0.2000.0 and see what happens, but how ?
    FYI - I tested with version 12.0.1100.o and file version 12.3.1101.684, the issue still exists.
    I hope you can help me
    Thanks.

  • Configuration Manager 2012: Report -software 06B-Parameter Value

    Customer is deploying IE 9 and would like to run the report to show the status.
    However, when they run the report-software 06B, the Parameter Value only list IE7,  no IE 8 and IE 9.
    Please help to solve this question, thanks.

    Yes I know this is an old post, I’m just trying to clean up old posts.
    That report is based on AI (ARP) data and therefore if you didn’t install IE 8 or 9 on a PC it will not be listed.
    http://www.enhansoft.com/

  • Link to Interactive Report Using Report Column as Parameter Value

    I'm using Apex version 4.0.
    I have an interactive report that I want to link to a second interactive report in order to create drill down functionality.
    The user will click on a column in the main report called "Insurance Company Name" which will link to the second interactive report and filter for that Insurance Company.
    I'm just trying to pass the Insurance Company Name to a Page 0 Item and use that value to filter the drill down report. Pretty simple. I don't want to create a declarative filter on the second IR, if that makes sense. My query for the drill down report is something like:
    SELECT *
    FROM MARKETS
    WHERE INSURANCE_COMPANY_NAME = :P0_INSURANCE_COMPANY_NAME
    I can't seem to get this to work-I've created the column link on the Insurance Company Name field in my main report.
    The values I have are:
    Link Text: #INSURANCE_COMPANY_NAME#
    Target: URL
    URL: f?p=&APP_ID.:5:&SESSION.::&DEBUG.::P0_INSURANCE_COMPANY_NAME:#INSURANCE_COMPANY_NAME#
    It links to the drill down report but the drill down report is not filtering for the Insurance Company Name selected. It's not picking up the value for some reason.
    Thanks for the help.

    Possibly the value is NOT in session state when you call the dropdown.. Open up your session state menu option in the developer menu and see if there is a value in the Page 0 item..
    Why don't you just create a page item on the second IR page and use that in your Select statement instead?
    Thank you,
    Tony Miller
    Webster, TX
    What if you really were stalking a paranoid schizophrenic... Would they know?
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Display text fields based on value

    I have a form that has 7 text fields that are to be filled out. I have an ajax process that auto-populates those 7 fields with values based off of the return value of a pop-up dynamic LOV. Is there any way that I can hide the last 5 fields based on a certain value of one of the text fields?
    For example, my fields are:
    P1_Badge (LOV query)
    P1_First_Name
    P1_Last_Name
    P1_Title
    P1_Phone
    P1_Room_No
    P1_Email
    P1_Fax
    The LOV returns a Badge number and populates the rest of the values. But if the Last_Name = 'Smith' then I only want to display Badge, First_Name, and Last_Name and I want to hide the rest of the fields or make them disabled for editing.
    Is this possible without any kind of page submit?
    Thanks,
    Dirk

    Hello,
    Take a look at this page http://apex.oracle.com/pls/otn/f?p=11933:39 it has examples of what you want.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • 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

  • Pass Parameter value through hyperlink?

    Hello and a Happy New Year to everyone!
    I have an ASP.NET web application that I am making. I was wondering if it were possible to pass a value to a CR that has a parameter value.
    In my example, I have a report called rptLicenseReport. This report has a parameter value of FileNo. Which comes from the field File No in the table License Applications in the database (Access) . Of course, CR does its own curly bracket thing for the parameter... but I was wondering if it was possible to have a hyperlink on my main page that points to the report.aspx page (which holds the report viewer, and the report as a whole) while passing the File Number.
    Essentially I would like the link to look like : www.urllinkhere.com/report.aspx?FileNo=6
    and when clicked that path would open the report.aspx page and pass the FileNo into the report. I have tried to make the report and have the link pass just like that but the report comes back with an error stating that there is no parameters chosen/given (thinking off-hand, error is something like that).
    Any help with this problem would be greatly appreciated. For those interested my report is in VB language, not C#.
    Much Thanks!
    --Matt
    Edited by: Matthew Gonzalez on Jan 2, 2009 8:50 AM

    AG,
    Much thanks for the code, I modified it to fit my VB environment and it worked well. What I have it doing is utilizing some of the earlier information on the http requerying having the labelID in the URL get posted to a label. Using your code I then have the label ID set as the parameter source. This worked fine and it now populates the report with the ID of the earlier record selected.
    Here's my code as an FYI and future reference:
    Protected Sub LabelReference (ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
            lblID.Text = CInt(Request.QueryString("FileNo"))
        End Sub
        Protected Sub ReportDocument(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportSource1.DataBinding
            Dim rdoc As New ReportDocument
            Dim rptValue As Object
            rptValue = CInt(lblID.Text)
            rdoc.Load(Server.MapPath("~/files/rptLicenseView.rpt"))
            rdoc.SetParameterValue("FileNo", rptValue)
            CrystalReportViewer1.ReportSource = rdoc
        End Sub

  • Suppressing summarized fields with zero value

    I have a report with many many fields.  I do not want to display the field if the value is zero.  Instead of me going to each field, right-clicking, going to common tab, clicking on suppress and inserting the conditional formula {summarized.fieldname}=0 for each field, is there a quicker way to do this?  Perhaps globally?
    Thanks in advance,
    Zack H.

    Select all your summary fields, right mouse click, select format objects, click on the number tab, click the customize button, then on the number tab check 'Suppress if Zero'

  • Disabling the Enter Parameter Value dialog box

    I'm developing Crystal Reports in a WPF application using CRVS2010
    The issues I'm having are the following:
    I am attempting to pass parameter values to a report. I have been able to set a several paramater values by using the following syntax:
    ReportObject.SetParameterValue("ParameterName1", ParameterValue1);
    ReportObject.SetParameterValue("ParameterName2", ParameterValue2);
    ReportObject.SetParameterValue("ParameterName3", ParameterValue3);
    ReportObject.SetParameterValue("ParameterName4", ParameterValue4);
    Issue #1:
    Each time I run the application sometimes the report will display with the report data and parameter values; Other times, just before the report displays, it will prompt me to "Enter Parameter Value".
    How do I prevent this dialog box from displaying so that the programmed parameter values will display instead?
    Issue #2:
    When the Refresh button on the Viewer control menu is clicked a dialog box prompts ask if the new parameter values should be used or to use the old parameter values.
    How do I prevent this dialog box from displaying and refresh the paramater values?
    I know that there is a ReuseParameterWhenRefresh property that's part of the ViewCore class but I'm not sure how to use it to eleviate the issue I'm having on the refresh.
    Any help that can be provided with this most urgent matter (on my part of course) would be most appreciated.
    Marlon

    One issue per thread please see See [Rules Of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    Take a look at the [sample applications for CR for VS 2010|http://www.sdn.sap.com/irj/boc/samples?rid=/library/uuid/5050d3d0-19dd-2d10-ffb2-ddcd30a3e655].
    Passing parameter sample app woould be able to resolve your issue.
    Hope this helps,
    Bhushan.

  • Missing parameter values - mystery solved

    I've tracked down why I was getting this error to the refresh method of the ReportDocument object.
    The sequence of execution is as follows;
    load report
    get/set parameter values
    set database location
    refresh report
    export report
    The refresh step clears all the parameter values and defaults.  I can't believe that this is correct behavour but hey ho, I'll try and work around it by saving all the parameter values to local storage when I open the report and then reset them after the refresh.
    Is this correct?
    Steve

    No, that is exactly how the refresh is supposed to work actually.
    The reportdocument.refresh call removes saved data. That includes any parameters set on the report.
    99% of people who call reportdocument.refresh do not have a need to do so to be honest.
    If you are using an empty report template (ie a report that does not have saved data) then you should not need to call it at all.
    If you want to call it just to make sure, do it before you do anything else, then pass any information you need to the report object.
    Jason

  • Problem with a Display Only field based on a dynamic LOV

    I have a field/item which is based on a dynamic LOV:
    select DESCRIPTION display_value, STATUSID return_value
    from CTCXFRREQS_STATUS_LOV
    order by 1
    ...and I need it to be display-only on the page. However, if I make it a display-only field, the return value is displayed, not the display value. If I change it to be a select list field, the display value is shown, as I expect and need.
    The field was based on a static LOV before, and it worked perfectly then.
    Has anyone seen this before, and have any suggestions on how to work around it?

    Hi,
    In edit item
    Display As: Display Only
    Save Session State: Yes
    Based On: Display Value of List of Values
    Named LOV: YOUR_LOV
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Displaying parameter value in the report output

    Hi,
    I have a requirement to display the value 'All' in the report when the user selects 'All' from the list box. Can anyone suggest a way?
    E.g.
    My LOV input to the report has following values, 'A', 'B', 'C', 'All'.
    If I select 'All', all the values A, B, C go into the query . But I need to display this I/P parameter as a field in the RTF showing 'All' in it.

    u can try like this
    if they select all u will have 'a,'b','c' as value in the xml tag right so always the string length of that xml field will be same when you select all . SAY STRING LENGTH WILL be 10 when user select ALL
    ( check the string how much is the value when you select ALL and implement this)
    we can try using string length
    <?xdoxslt:ifelse(number(string-length(XML_FIELD_TAG))>=10,'ALL',XML_FIELD_TAG)?>
    or
    <?xdoxslt:ifelse(number(string-length(//XML_FIELD_TAG))>=10,'ALL',//XML_FIELD_TAG)?>
    So it will display ALL when user selects ALL else the selected value.
    if you are not having parameter values as xml tag then you have use like this
    <?xdoxslt:ifelse(number(string-length($XML_FIELD_TAG))>=10,'ALL',$XML_FIELD_TAG)?>
    assign some points if helpful.

Maybe you are looking for

  • MacBook 13-inch Aluminum (Late 2008) to Sony Bravia KDL-40W5800

    Hello forum, I am looking to buy a Sony Bravia KDL-40W5800 (Sony link, Amazon link) in the near future. I am going to be using it to play PS3, watch television and DVDs/Blu-Rays, but also I would like to be able to connect my MacBook to it if I wish

  • How to print Crystal Report within SAP Portal iView?

    Hi All, We are using BOEJ XI 3.0 with integration with SAP NetWeaver Portal.  We are having a problem with printing a Crystal Report. - We use the SAP iView to run a Crystal Report. - Once the report is completed, we want to click on Print to send th

  • How can I move my apps from one computer to another?

    I got a new computer which means I have to sync my Iphone to my new computer. However, this means my apps are going to be deleted off my phone when I do sync it. Does anyone know how to move these apps to my new computer?

  • File Receiver Adapter FCC parameters

    Hi I have a File to File format via PI I have the following structure from the sender File adapter passing to receiver file adapter. The inbound structure as follow <CONTRACT> <HEADER>     <X1>     <X2> <LINE>    <Y1>    <Y2>    <Y3> I have configure

  • Need to ommit the short form letter from the given string

    HI,      I need to ommit the Short form letter from column data. EX : CREATE table #testdata (id int identity(1,1),cust_address varchar(max)) insert into #testdata (cust_address) select 'first street 5N, North' union select 'second street W, west' un