Showing parameters in a Report, URGENT

I'm trying to show the parameters selected by a user in a form
in the header section of the report(Reports6i). The labels
remain the same but the selections keep changing. PLEASE
HELP,URGENT

Hi Aarthi
This is a solution for your problem. Hope this solves your
problem.
DECLARE
     pl_id ParamList;
     pl_name VARCHAR2(10) := 'tempdata';
frmparam number(5);
begin
     pl_id := Get_Parameter_List(pl_name);
     IF not Id_Null(pl_id) THEN
     destroy_parameter_list(pl_name);
     end if;
     pl_id := Create_Parameter_List(pl_name);
if :ctlblk.deptno is not null then
frmparam := :ctlblk.deptno;
else
frmparam := 'ALL'
end if;
Add_Parameter(pl_id, 'dno', TEXT_PARAMETER,frmparam);
-- dno is the parameter in the report, u may c that before
-- executing the report in your parameter form
end if;
RUN_PRODUCT
(REPORTS,'C:\MYREPORTS\empreport',SYNCHRONOUS,RUNTIME,FILESYSTEM,
PL_ID,NULL);
end;

Similar Messages

  • Show parameters expanded in reporting services

    I have a report that I created with visual studio. At the moment you have the parameters like this:
    Is it possible to show them like this:

    Of course, if you click on the drop down you see it like that. But I need to show this by default, without any click.
    When they open the report they must see all the available filter options.

  • Showing parameters selected in a form in the report.

    Hi Arun,
    Thanks for your update.What I'm exactly trying to do is
    I created a form in Forms 6i in which the user enters a couple
    of parameters .Then I'm calling a report created in 6i with
    RUN_PRODUCT option.I'm using the values entered the FORM
    as parameters for the report and I'm able to run the report.
    How ever I have to show those parameters which are
    being passed from FORM to REPORT in the header section of the
    report so that user can see the selections he/she has made.
    Say if I have 2 elements in the form
    DEPT NO and COMMISSION when I call the report from the form
    I want to see those in the Header Section of the report.
    If no selections are made in FORM then
    I want to see something like this.
    DEPT NO : ALL COMMISSION :ALL
    Again thanks in advance,
    Arathi

    Hi Arun,
    Thanks for your update.What I'm exactly trying to do is
    I created a form in Forms 6i in which the user enters a couple
    of parameters .Then I'm calling a report created in 6i with
    RUN_PRODUCT option.I'm using the values entered the FORM
    as parameters for the report and I'm able to run the report.
    How ever I have to show those parameters which are
    being passed from FORM to REPORT in the header section of the
    report so that user can see the selections he/she has made.
    Say if I have 2 elements in the form
    DEPT NO and COMMISSION when I call the report from the form
    I want to see those in the Header Section of the report.
    If no selections are made in FORM then
    I want to see something like this.
    DEPT NO : ALL COMMISSION :ALL
    Again thanks in advance,
    Arathi

  • Challenge passing parameters to discoverer report

    Hello everyone, I am following the instructions on this website - http://learndiscoverer.blogspot.com/2008/11/metalink-note-304192.html
    Basically, we want to use parameters for discoverer reports, especially date parameters because of some performance issues we have been having with discoverer.
    Here is the process I am using. Please correct me if I am doing anythinng wrong.
    1. Login to apps schema and create context
    CREATE OR REPLACE CONTEXT DISCO_CONTEXT
    USING EUL4_US.DISCO_PKG
    2. Login to eul4_us schema and create package
    CREATE OR REPLACE PACKAGE DISCO_PKG
    AS
    FUNCTION set_context(p_name VARCHAR2,
    p_value VARCHAR2) RETURN VARCHAR2;
    FUNCTION show_context(p_name VARCHAR2) RETURN VARCHAR2;
    END disco_pkg;
    CREATE OR REPLACE PACKAGE BODY DISCO_PKG
    AS
    FUNCTION set_context(p_name VARCHAR2,
    p_value VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    dbms_session.set_context('DISCO_CONTEXT', p_name, p_value);
    RETURN p_value;
    END set_context;
    FUNCTION show_context(p_name VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    RETURN SYS_CONTEXT('DISCO_CONTEXT', p_name);
    END show_context;
    END disco_pkg;
    Then grant access to apps
    GRANT ALL ON DISCO_PKG TO APPS;
    Then import the functions show_context and set_context into discoverer
    3. Go back to apps schema and create synonym
    CREATE PUBLIC SYNONYM DISCO_PKG FOR EUL4_US.DISCO_PKG;
    4. Create discoverer custom folder using the following query:
    SELECT DISTINCT
    pet.run_result_id
    ,papf.employee_number
    FROM
    per_all_people_f papf,
    --hr_lookups hl,*
    per_all_assignments_f paaf,
    hr_all_organization_units haou,
    per_jobs pj,
    per_grades pg,
    pay_people_groups ppg,
    --per_addresses pa,*
    --hr_locations_all hla,*
    per_positions pps,
    per_people_f ppf,
    pay_assignment_actions paa,
    pay_payroll_actions ppa,
    PAY_RUN_RESULTS_V pet,
    --pay_element_types_v1 pet,
    pay_all_payrolls_f papaf
    WHERE
    papf.person_id=paaf.person_id
    AND papf.employee_number=ppf.employee_number
    AND paaf.organization_id=haou.organization_id
    AND paaf.job_id=pj.job_id(+)
    AND paaf.grade_id=pg.grade_id(+)
    AND paaf.people_group_id=ppg.people_group_id(+)
    AND paaf.position_id=pps.position_id(+)
    AND paaf.business_group_id=0
    AND paa.assignment_id = paaf.assignment_id
    AND paa.payroll_action_id = ppa.payroll_action_id
    AND paa.assignment_action_id=pet.assignment_action_id
    AND paaf.payroll_id=papaf.payroll_id
    AND ppa.effective_date BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND ppa.effective_date BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND ppa.action_type ='R'
    AND ppa.action_status = 'C'
    AND paaf.assignment_type = 'E'
    AND paaf.primary_flag = 'Y'
    AND haou.business_group_id=0
    AND ppa.effective_date = TO_DATE(SYS_CONTEXT('DISCO_CONTEXT','PAYROLL_DATE'))
    5. Create a parameter called Payroll Date. Default value is set to NULL and the "Create Condition" checkbox is unchecked.
    6. Create a calculation
    SET_CONTEXT('PAYROLL_DATE', TO_CHAR(:Payroll Date))
    And that's it.
    The thing is, this doesn't work for me.
    But for the same query, if I enter the date value I am substituting, values show up. So it seems for some reason, the context value probably isn't being set or thereabouts.
    I have tried setting the context manually in a TOAD session using:
    declare
    v_ret varchar2(50);
    begin
    --dbms_session.set_context('DISCO_CONTEXT', 'PAYROLL_DATE', '31-MAR-2010');
    v_ret := disco_pkg.set_context('PAYROLL_DATE', '01-MAR-2010');
    dbms_output.put_line(v_ret);
    end;
    And afterwards run the query:
    select sys_context('DISCO_CONTEXT', 'PAYROLL_DATE') from dual
    And results do show up here. So I'm wondering what could be wrong.
    Please help.

    Hi ,
    Are you saying I should create a new workbook that is not based on my custom folder for setting and showing the context value? You don't need to create a new workbook, you can just create a new worksheet in your report workbook, but you will need two sheets to use contexts. The sheet that sets the contexts should not be based on your custom folder, but on a folder that returns a single row. You cannot set and check contexts in a single SQL statement, so you have to have 2 worksheets.
    You can default the contexts using a trigger or initialisation SQL so that the user only has to set the contexts if they are not using the defaults.
    Rod West

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • Default Parameters in Crystal Report

    Hi all visitors
    I have created one crystal report and now i want to set the parameters to my report by using parameters in Crystal Report(  the parameters not from sql).My parameters are datetime datatype. in my report, i create one formula( get date from DocDate field from sql).How can i set the default "Todate" parameter as current date?
    Best Regards,

    Hi,
    So all of the seleciton is done using selecct expert.  They have alot of default values there...but if you go to advanced then you can do much more still.  So if you just want to only use the currentdate then you can just do something like
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    In the above case there would be no parameters needed and would show the currentdates information. You could of course do a varity of >= or <= using the above method. 
    If you want more flexability then you could create a parameter or two . Here is an example.  This is again done in select expert....
    if {?Start Date} <= date("01/01/2000") then
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    else
          {IT_ChangeManagement.Deployment Date/Time} >= {?Start Date} and
          {IT_ChangeManagement.Deployment Date/Time} <= {?End Date}
    The above defaults to the current date if the start date is older than 2000, otherwise it uses the start & end date parmeters.
    Make sense?

  • Add Parameters in html report header

    Hi All,
    I would like to add few parameters/items in the header of my html report. I don't know how to pass my parameters in my main sequence to report file.
    Pls advise.
    Thanks
    toko..

    Hello toko,
    Were you able to find the information you want? As Ray said, there is an example that ships with TestStand that shows how to customize reports that you may want to reference.  You can find it at C:\Program Files\National Instruments\TestStand 4.0\Examples\ModifyingReports. If you have further questions please feel free to post.
    John B.
    Applications Engineer
    National Instruments

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

  • How to show paramerts value on Report

    Hello,
    I have created 4 parameters and added the parameters into the Report>Selection Formula>Record and tested the report which is working with no problem.
    How I can print the parameters the users selected on the report? I would like the parameters values selected to print on one of thage page headers selected.
    I have the following parameters:
    ShcheduleNo
    FromItem_ToItem
    FromLocation_ToLocation
    FromDate_ToDate
    FromItem_ToItem, FromLocation_ToLocation, and FromDate_ToDate parameters are setup as Dynamic, and change the value option for range to "true".
    I am using Crystal Reports 12.0.0.683.
    Thanks,
    J
    Edited by: J K on Dec 3, 2008 6:17 PM

    I did that but they don't appear.
    The user will get a prompt to make the following selection
    Schedule Number - A drop down list showing available schedules
    Item Number - This allows from item to item selection.
    Location - THis allows from location to location selection.
    Date - This allows from date to date selection.
    Thanks,
    J

  • Whenever I try to open Microsoft Word it doesn't open and shows me an error report!

    Whenever I try to open Microsoft Word it doesn't open and shows me an error report! I don't know what to do! Help!!!!
    This is the extra info that comes along with the error report:
    Microsoft Error Reporting log version: 2.0
    Error Signature:
    Exception: EXC_BAD_ACCESS
    Date/Time: 2013-08-30 16:41:14 -0400
    Application Name: Microsoft Word
    Application Bundle ID: com.microsoft.Word
    Application Signature: MSWD
    Application Version: 14.1.0.110310
    Crashed Module Name: MBURibbon
    Crashed Module Version: 14.3.4.130416
    Crashed Module Offset: 0x000072f0
    Blame Module Name: MBURibbon
    Blame Module Version: 14.3.4.130416
    Blame Module Offset: 0x000072f0
    Application LCID: 1033
    Extra app info: Reg=en Loc=0x0409
    Crashed thread: 0
    What should I do??????

    It might be a good idea to also ask here:
    Office for Mac forums

  • How to link Excel tabs so data shows up in one report

    I have a huge excel file with 16 tabs (sheets) of data. Each tab has an excel speadsheet filled. I have the data in Crystal. Each tab shows up as a separate table. I've tried to link each in different ways but can only get one table to show up in the report. I want all the data in one report. If that's possible. It would be very large.

    Graham,
    Thanks for answering,
    Yes I have the tables and can link them (have tried a couple of different ways) One has all the data fields linked between tables and the other way was to run them in series with just one field linked. Either way the Field Explorer on the right side of the screen shows each table and each table lists all the fields. But the problem is that the report only shows data from one table, not all the tables or all the data. The data that it shows is only from the table that I selected the fields from.
    Hope this makes sense. Thanks

  • Why does it stop every few seconds for "buffering" when I try to watch the Daily Show and the Colbert Report?!

    The past couple of weeks whenever I try to watch the Daily Show and the Colbert Report the screen freezes up every 2 or 3 seconds and the message "buffering" comes on. VERY FRUSTRATING!!!

    The past couple of weeks whenever I try to watch the Daily Show and the Colbert Report the screen freezes up every 2 or 3 seconds and the message "buffering" comes on. VERY FRUSTRATING!!!

  • Excel is not showing multiple Drill thru report selection option

    We have created 3 drill thru reports in EIS, excel is not showing Select Drill-Through Report Dialog Box when tying to acess drill thru reports. It defaultly executes the first drill thru report, we want it to list the available reports so that we can select accordingly after view/launch is selected.
    essbase 7.1.6 version SQl server 2000

    Hi,
    This Prompt message would have been set in WAD(XHTML Coding section) in your old project. Now , you cross check your Web template for the same. Your issue will be resolved.
    Regards,
    Suman

  • Showing the XML publisher report in an iframe..

    Hi all..
    Please help me with this question.
    Before: We had a "http page" and we are showing a XML Publisher report which is also in "http" ,in an iframe of the parent page. Previously it was working fine, as both are http.
    *** Basically we are generating a URL of the report and showing it in a iframe of the web application****
    Now: Recently we configured ssl to the parent page (https), and the report sever is still in "http". Because of this difference, whenever we are calling that report,it is showing a security alert and redirecting to totally wrong page.
    Is there any configurations that i can do in the ""report server" to rectify this issue.Please help me with this issue.
    Thank u

    Hi Ravi ,
    can i do it only with the xml Publisher , because when i tried it in the past and get all the staff like Template / DD / CP up and running and started the CR i get an error from the system that he is missing a report directly in the file system... so he searched for the report himself on system like a standard 6i Report. But the template and the dd is stored in the db. So my question again, can I use the XML Puplisher without a Standard Report or can i use a dummy file only for checking and after that he use my template / dd.
    regards
    Kay

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

Maybe you are looking for

  • How do I install Flash Lite 3.1 to a Windows Mobile Device in Australia

    Hi All, I am just an end user not a developer. We have a mixture of devices (Palm Treo Pro, HTC Touch HD) that we want to run a Fash Version 8 website. How do we install Flash Lite OTA on these devices to view the flash content? We are in Australia.

  • Maximum file size that can be ulpoaded at one time

    Hi All, I have an issue in which user is uploading 200 MB file in to KM. But she is getting "IisProxy.dll: 502 Bad Gateway" error. I have tried uploading a document and was successfull in uploading 93 MB document and while uploading above this (93MB)

  • ESS - Family Members Detail screen

    Hello, I am on EP 7,NW04s, ERP 05 and tring to modify the Family Members Detail screen .I have already hidden some of the fields and moved some up and down but the Previous and the Review button and too far down because of the space created by hiding

  • Batch Input. Transaction KSU5 and KOK4

    Hi, I would like to execute transactions KSU5 and KOK4 in background. The system generates this error message 00344: "No batch input data for screen..." When the batch input session is processed online the error does not occur. Regards.

  • FK across schemas in Data Modeling

    Hello, how can I create a foreign key across schemas in SQL Developer Data Modeling? Must both tables be on the same relational model? Otherwise I cannot create the relation because both tables must be displayed on the same diagram in order to draw a