Parameter in the report

Hi Experts,
I want that i shall pass one column name of a table (EMP) and in the report i shall print the column of the database for example if i pass the
string 'Ename' via a parameter to report the report should print all the Enames of the EMp table.
Suppose the user parameter which i have defined in the Report side is param_name and in the SQL query of the report i am writting that
Select :param_name from emp;
but the result it is giving me is.
Param_name1
ename
ename
ename
ename
Can any one suggest.
Regards
Rajat

This is a Reports question and it should be asked in the Reports Forum. but here's a little something you can start with.
You need to use lexical parameter in your select statement of the report.
SELECT &col_name FROM EMPthe lexical parameter will be substituted with the column name in your SQL. For more information search for lexical parameters in the report's builder online-help.
Tony

Similar Messages

  • Showing description of a parameter in the report

    Hi all,
    I have a requirement where I need to show the description of a parameter in the report.
    For eg:
    CODE              DES
    AF          Associated Feature
    BG          Background
    BGA          Background Ambient
    BCA          Bkgrd Comm Ambient
    BC          Bridge/Cue
    CJ          Combination M Jingle
    CS          Combination M Promo
    CT          Combination M Theme  u2026 and so on.
    The parameter is on the DB field u2018CODEu2019. Here when the user selects the parameter value u2018AFu2019 the report should show the description u2018Associated Featureu2019 in the Report Header.
    I am using stored procedures in the report and lookups(coming from a package) for the drop down values of parameters.
    I thought of creating arrays in the formula editor but I could not find a way to pass values to an array variable from a field. (I have to enter all the values in array manually to create it. But we have approx 50 reports which have CODES of more than 40. So itu2019ll be not feasible).
    Is there any way to achieve this requirement?
    Thanks for your help in advance.

    Try to use add command and write the query like this
    select code,description from table where code={?Parameter}
    Now link this command with your stored peocedure using left outer join and place the field in the report header to get the description.
    Regards,
    Raghavendra

  • Display the description of a parameter in the report

    Hi Guru:
    I have a parameter, for each value to be selected, there is a description.
    Now my question is, how to display the description of the value in the report?
    I tried to put the parameter into the report, but it display the value, not the description.
    For example, I have a parameter, for company code, each company code will have a description in the value list of the parameter, after the user pick 1000, I want to put the name of company code 1000 into the report.
    Thanks.
    Eric

    The only way I have found to do this without hard-coding a translation table is to return the value in your dataset.  In your case, cross join your results to
    select company_name from company where company_code = {?comp parm}
    (or something similar...)
    HTH,
    Carl

  • How to get USERID system parameter in the report

    I can pass the user id, password and connect string through the USERID parameter, but how do I get it in the report? (I need to pass the USERID to a different report, I got a error when I use :USERID). Thanks.
    WJ

    There are two steps I used with which to get USERID into the report.
    1) Create a user parameter, P_USER, datatype CHARACTER, width 20
    2) in Report Trigger AFTER PARAMETER FORM (could also be BEFORE REPORT), insert the following line of code:
    :P_USER := USER;
    Now you can create an F_USER variable with P_USER as its source and place it in the report as you would with any other user parameter.
    Regards,
    Steve

  • Pass a form parameter to the report stored procedure

    <CFSET myVar= "1">
    <cfquery name = "mydata" datasource = "myDSN">
        execute MySP
       <cfqueryparam value = "#myVar#" CFSQLTYPE = "cf_sql_integer">
      </cfquery>
       <cfreport format = "PDF" template= "MyReport.cfr"
        query = "#mydata#">
       </cfreport>
    I have above code to generate the report using stored procedure and pass parameter.
    I have to use CFSET to set the value of MyVar.
    I would like to know how I can use user input value in  my text control on the form.
    Your help and information is great appreciated,
    Regards,
    Iccsi,

    Hi ,
    Any help from Oracle please....
    Thanks
    Vishnu

  • DISABLEPRINT parameter within the report 6i

    dear all
    I’ve gone through most of the threads in this fourm ,but i could not find what i need.
    i have one RDF file which i want to disable the print in it for specific users ( user list comes from the application tables).
    this report is run from one of the application forms.
    my problem is that i don't have the FMB file to edit the Parameter list .
    then where to create the parameter DISABLEPRINT and give it a value within the RDF ;
    Thanx in advance.

    thanks for the response
    here
    Re: disable printer from reports
    and here
    Re: How to restrict a user to print a report?

  • Passing multi value parameter to the Drill through report

    Hi
    I have two reports say Report A and Report B.
    Both reports using same parameters.
    I am Navigating from Report A to Report B using Jump to Report option.
    Now when I pass multiple parameter to the Report B it only displays first parameter results.
    In report B I have parameter multi value select to true.
    I would like to know if its possible or not to pass multi value parameter in drill through report?
    I would appreciate if someone can help me here.
    Regards
    Amit

    Yes you can pass multi value parameters to a drill through report.
    It works similar to multi value parameters for subreports, which is discussed in detail in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=163803&SiteID=1
    -- Robert

  • See the value of the parameter in the oracle report

    Hi experts,
    Can you please tell me how can i see the value of any parameter in the report.I am sending one parameter from one form and i want to see it's value in the report.
    Is there any function like message in report.
    another thing can you please tell me that how can i make use of triggers in forms.
    Regards
    Rajat

    another way to see the passed value, create a temp/testing field with source of p_my_parameter.
    Forms Trigger Qs go Forms Forum.

  • Blank report viewer control when adding a parameter to rdlc report

    Hi guys,
    I am currently generating a rdlc report in Visual Studio 2010 and embedding it into an asp page using a reportviewer control. My dataset is based on entity framework. The report runs fine and returns plenty of data in the format I want.
    Whenever I add a parameter to the report the reportviewer control on my page is just blank.
    I'm setting the parameter "available values" from a field in the same dataset used to generate the report but even if I add an empty parameter with no available values the reportviewer control is still blank.
    This is the same in both Internet Explorer 8 and Firefox 5.
    Any ideas where I'm going wrong?
    Thanks in advance.

    Hi,
    please check your report viewer property and make sure the parameter prompts property is true in your code
    rvReportViewer.ShowParameterPrompts =
    True

  • How to change sql server reports parameter direction in report builder 3.0

    Hi All,
    I have created few reports using Report Builder 3.0 with the data source as SharePoint list. i have created a web part page and added the ".rdl"
    file, everything is working as expected. Later, i got a requirement to add a parameter to the report , i did that and when i ran the report in SharePoint page, the parameters shows right side and the parameter ribbon shows the dropdown control on top and "Apply
    button" at the bottom. When i presented this to my manager, he says the parameter ribbon looks bad and suggested to put both the controls together and also instead of displaying at right side vertical, display it horizontal.
    I have below queries
    How can i change the direction of parameter ribbon from vertical to horizontal
    How can i bring the controls together (e.g. dropdown list control and button)
    How can i add buttons on the report in report builder 3.0
    How to get/reflect the data in report without refreshing the page.
    Can someone please guide me, how to achieve the above functionalities..
    MercuryMan

    Unfortunately, where the parameters are located and the button distance away from the parameters are not something you can customize. Here are the options available for customization:
    http://msdn.microsoft.com/en-us/library/bb326214.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to create a user parameter for a report

    Hi,
    I am writing a report in ORACLE 6.0, and I need to create a user
    parameter for my report.
    My database includes fields: item_id, item_cost, and item_desc.
    What I want to do is: set up a user parameter for item_cost, and
    the report will prompt the user to enter number into this
    parameter, then the report will display item_id and item_desc
    depending the user-entered item_cost.
    thanks.
    Jun

    My SQL code is below:
    select item_id, item_invo, item_desc
    from tb_item
    where item_invo=:p_1
    but I got an error message:
    REP-0788:Warning: The value of restricted LOV parameter p_1 is
    not among the selectedble values.
    Would you help me again? Thanks.
    Jun

  • Passing Parameters to a report by only knowing the rdf name fo the report

    Hi all,
    My requirement is that i konw the rdf name of a report and i want to call that report through form but i dont know the parameters in that report. Is there any way to find the parameters or any other method by which i can identify and pass the parametes to the report.
    Thanks in advance

    You don't have the rdf-files? Then i don't know of any way to find that out from the report itself (i guess you only have the rep-files?). Do you have any other forms-modules which already call the report? If so, you could check the calls there.

  • Pass parameter to a report link

    HI,
    This is what I am trying to do:
    I want to create a report with 2 parameters - FromDate and ToDate.
    The report link will be something like this - http://xyx.com/report1FromDate=1jan2012&ToDate=31jan2012
    What I want is the users to change the date range in this URL and the report should automatically filter out the date selected. Is this possible? Has anyone does this before?
    So when the user runs this report and wants to run for some other date, they will just modify the URL and the report will run for Feb as an example shown below:
    http://xyx.com/report1FromDate=1feb2012&ToDate=29Feb2012
    Edited by: 920645 on Mar 21, 2012 11:21 AM

    It's not what you're doing wrong, but there is more right you can do.
    In the Report, on the Customization Form Display Options Tab, make sure "Make Public" is checked for your Bind Parameter (:CNTRYLOC).
    In the Page Properties, on the Parameters Tab, Add a Page parameter for CNTRYLOC. (I usually use the same name for the Page Parameter as the Report's Bind Parm. Warning: These parameters are CASE-SENSITIVE in places.)
    Still on the Page Properties Parameters Tab, Expand the list of Portlets at the bottom and map your Portlet Parameter to the Page parameter you just made.
    Hope that helps!

  • DateTime Parameter in Crystal Report

    hi,
      in one of my crystal reports i'm invoking a procedure which has begin date and end date as parameters.when trying to run the report it's prompting for both date and time. my requirement is just to prompt for date and time is not required. the option of editing the parameter at the report level has been disabled since the parameters dierctly get invoked form procedure , in which i've declared the datatype as
       samp_proc(p_begin_date date,p_end_date date,p_ref_cursor in out).
    can someone help me on this.
    Thanks,
    Sailaja.k

    Hi Sailaja,
    I'm not sure if this is a known issue or if this a bug, but there are workarounds.
    Create a blank report and Insert the original report as a Subreport. Now in the Main report, create a Sttaic parameter of 'Date' type. Create a new Formula called 'Date_conv' and type this:
    Datetime({?Date_parameter})
    Place this formula on the Report Header and place the subreport on the Report Header too.
    Right-click the subreport and select Change Subrpeort Links. Select the formula and move it to the Links to area. Next, from the drop-down on the bottom left select the datetime parameter of the subreport.
    You may suppress all the other sections of the main report. The Report should now prompt for a 'Date' instead of the Date time.
    Another workaround is by creating a registry key called useDateInsteadOfDateTime. Browse to HKEY_CURRENT_USER\Software\Business Objects\Suite 12.0\Crystal Reports\DatabaseOptions and create a string value called useDateInsteadOfDateTime. Set its value as the Database Server Name or the ODBC DSN name.
    I would still recommend using the 1st workaround.
    Hope this helps!
    -Abhilash

  • How to use dynamic parameter when a report is created using Stored Procedures

    Hi all,
    any one have the idea of how to use dynamic parameter in crystal report XI R2
    when report is created using Stored Procedure.
    Regards
    shashi kant chauhan

    Hi
    You can create an SQL command in Database Expert > Expand your datasource > Add command
    Then enter the SQL query that will create the list of values to supply to the user
    eg select field1,field2 from table
    Then edit the parameter of the report.  These will be the SP parameters adn can be seen in field explorer.
    Change the parameter type to Dynamic
    Under the word Value click on Click here to add item
    Scroll down to your Command and select one of the values that you want to appear in the list
    e.g field1
    Then click on the Parameters field - this is essential to create the param
    You can edit other options as required
    That should do it for you.
    I must say that i use CR 2008 connected to Oracle 10g SP, but i reckon this will work for SQL DB and CR XI as well
    Best of luck

Maybe you are looking for

  • Turning off CMD + SCROLL zooming with Apple Magic Mouse?

    Scrolling with Apple's Magic Mouse is extremely sensitive in Fireworks, so sometimes when I use a keyboard shortcut that involves the command key and I accidentally leave it pressed for just a split second after I perform the shortcut and I scroll at

  • Who knows how to make Word the default when closing Apple Works documents?

    step by step if you don't mind? i've never used Apple Script. is this the solution? thanks and Happy New Year

  • Why do application updates continually fail when using AAM

    For more than a week I have tried to use AAM to update 17 applications in need of bug fixes. Of those 17 I have had success with only one application, Acrobat XI Pro. I have attempted with about half a dozen others and they all fail about midway thro

  • How to configure LR2 to use all installed RAM?

         Hoping to find some answers here about a problem I'm having with Lightroom 2.7. First let me give you some details about the computer I'm running LR on. PowerMac G5 1.8Ghz single PowerPC CPU 8 Gb RAM Mac OS X 10.5.8 Lightroom 2.7 Photoshop CS4 T

  • Uruguay applecare

    i have applecare for my iphone 4s, power button is not working. is there any place here in uruguay i can take it to? if not im travelling to panama in a few days. the thing is while im travelling i can not wait for my phone to be repaired.