Pass parameter to reports server

1 – I’ve created a report with the following query
select * from scott.emp where depno = :pdep
2 – then I configured an oracle portal to access this report
3 – then in the portal in the tab optional parameters I put the parameter pdep
4 – Executing through the option Customize in the portal, putting a value to the parameter pdep, the report runs perfectly
5 – Runnig the report through a pl/sql like:
htp.tableData(htf.anchor('MANAGER.RPT_BOLETO.show?pdep=' || i..deptno,htf.img( './docs/FOLDER/GESTETNER/IMGS/B.GIF', calt => 'GERAR BOLETO BANCARIO', cattributes => ' border=0"')),'center');
I get the message PARAMETER MISMATCHE
6 – I observed that if I change the parameter p_pdep the error doesn’t happen, but the parameter don’t go the report server and the report comes blank
How can I pass this parameter to reports server?

Hi Mandeep,
Could you please tell me how can i pass data parameter from forms to report through run_product.

Similar Messages

  • Passing parameter to report title

    I am working with drill down report. My master ( Source ) report has
    Emp #, Emp Name, Address columns.
    I have prompt on Emp Name column. My second (target) has other employee details and report title is “ Individual Detail report for Employee” but my user is asking they want to display report name with employee name .( passing parameter to report title) . I mean in source report if I click on “Roy Rine” target report should display with following title
    “Individual Detail report for Roy Rine”
    Can I do this one with OBIEE? Please help me.
    Thanks for your time

    Its working but it is repeating names . i mean i have 4 people hvae name "Roy Jermon" . if i click on this column
    report is displaying ' INDIVIDUAL REPORT FOR ROY JERMON ROY JERMON ROY JERMON ROY JERMON"
    is ther any way we can control for only one time even if we have mutiple values.
    i am really appriciate for your time.

  • How can I pass parameter from report to form?

    Hi :)
    Now I try to build conference room like this by using form
    and report. And i design that when users click at group report
    then i'll show page that contain questions report and add
    question form. And question form and report must receive the
    same parameter from group report.
    First Problem: is I don't know how group report send the
    same parameter to question report and add question report at the
    same time. And is it possible??? If not please suggest me what
    should I do???
    Second Problem: is I don't know how can I pass parameter from
    report to form. I don't know the way to do it.
    Please tell me!!! Please...
    I look forward to hearing from all of you.
    Thank You.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • Passing Parameter to report (html) from html page

    Hi
    I have a html page use web application server as tool, this page
    link to report, I want to pass the parameter to report
    paramform.
    This is my PL/SQL
    procedure eqp_form(ceqp in out mms_eqp_master.eqp_code%type) is
    htp.tableData(htf.anchor(report.print('msr_eqp_group'),'<font
    color=ffffff>Eqp Group
    Report</font>',cAttributes=>'target=target_blank'));
    How can I do to pass 'ceqp' into report parameter form, before
    running report?

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • Problem while passing parameter from report to report.

    Hi
    I'm using forms and reports 10g, hava a problem while passing the parameter from reports to report.
    i'm using srw.set_hyperlink to call report from report.
    i have created a key value in the cgicmd.dat file called
    faccre802005-2006: report=faccre80 destype=cache desformat=pdf userid=<userid/passwd@cs> server=<servername>
    Now in the format trigger i'm using this key value
    function BTN_DEBITFormatTrigger return boolean is
    temp varchar2(5000);
    IP_ADDRESS VARCHAR2(50);
    SERVER_NAME VARCHAR2(10);
    L_ACCT_CODE VARCHAR2(14);
    begin
    SELECT MAST_INT_DESC,MAST_USER_PGM_ID INTO IP_ADDRESS,SERVER_NAME FROM MAST_INT_INFO WHERE MAST_INT_ID='VISHWA';
    temp := IP_ADDRESS||'?faccre80'||:P_FIN_YEAR||'+server='||server_name;
    temp :=temp ||'+'||'P_PREVIOUS_CODE='''||:ACCT_CODE||''''||'+'||'P_COMPANY_CODE='''||:P_COMPANY_CODE||'''';
    temp :=temp ||'+'|| 'P_FROM_DATE='''||TO_CHAR(:P_FROM_DATE,'DD-MON-RRRR')||''''||'+'|| 'P_TO_DATE='''||TO_CHAR(:P_TO_DATE,'DD-MON-RRRR')||''''||'+'||'P_TRUST_CODE='''|| :P_TRUST_CODE||'''';
    temp :=temp ||'+'|| 'P_UNIT_CODE='''||:P_UNIT_CODE||''''||'+'||' P_FIN_YEAR='''||:P_FIN_YEAR||'''';
    temp :=temp ||'+'|| 'P_LEVEL='''||:P_LEVEL||''''||'+'||'P_HEADER='''||replace(:P_HEADER,' ','%20')||''''||'+'||'P_FORMAT='''||:P_FORMAT||'''';
    SRW.Set_Hyperlink(temp);
    END;
    return (TRUE);
    end;
    Report is coming but not the expected result because parmaeters are not coming from first report to second report.
    If i dont use cgicmd file userid and password are displyed in the URL.
    Pl tell me how to pass parameter from one report to another.
    thanks and regards

    Hi
    I got the solution.
    I forgot to add %* at end of the KEY value.

  • Hw to pass parameter from report to forms

    Dear Friends,
    I m working on Forms n Reports 6i,
    I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
    Hw do i pass any parameter from report to form for acknowledgment.
    Thanking yours
    Chandan

    Hi Rajat,
    using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
    Thanking Yours,
    Chandan

  • Passing parameter in report for order by clause

    how can we pass the name of the column on which we want the order by clause to sort as a parameter through parameter from in a report??

    Hi Guptha,
    We can create a bind parameter in report and we can send it as a parameter or enter in the parameter form.
    The Query will be
    select * from emp
    order by :Order_Bu_Column
    I think it will help you.
    Regards,
    Siva.

  • Multi Pass in Crystal reports server XI R2

    Hi,
    Ex:
    I have a crystal report  which takes country as input parameter. Each country has one responsible person.
    US--- A person
    UK---B person
    INDIA ---C person
    I need to run this report with these three paramters(may increase infuture) and send the exported report to A,B and C as an mail attachment through crystal reports server XI R2.
    I am using Crystal reports designer XI R2 , Crystal reports server XI R2.
    How could I achieve this in crystal reports server.
    Thanks,
    Vijay Kanth

    Vijay,
    These are the step I use... (after the report has been loaded into CRS)
    1) Open CRS and enter through InfoView.
    2) Locate the newly loaded report in the folder tree.
    3) Choose Schedule
    4) Set all of the necessary values to get the 1st iteration of the report to run as required...
    5) Click the Schedule button in the bottom right corner of the scheduling screen.
    6) Find the report in the folder tree again...
    7) You'll notice that a History option has been added below the report name... Click it.
    8) You'll now see the schedule you created in steps 1- 5... Choose Reschedule
    9) Make sure the Create new schedule from existing schedule radio button is selected (this should be the default).
    10) Make the necessary modifications to to the destination and report parameters and again choose Schedule button in the bottom right corner of the scheduling screen.
    Repeat steps 6 - 10 until you have all necessary schedules completed.
    HTH,
    Jason

  • How pass parameter to report?

    i want to have a report which show the orders of a certain customer
    select order_date , customer_name , order_value from orders
    where customer_id = my_variable
    my variable is the parameter to be passed to the report
    How can i pass the value to the report where parameter name is my_variable
    help
    Best Regards
    Mohamed Hammed

    Hi all,
    Finally i got succeed
    here is a sample code
    and here is how to call a report from a form
    1-Form
    Create Button Action
    Custom
    declare
    input_MEMBERSHIP_NUMBER number;
    l_url varchar2(2000);
    begin
    input_MEMBERSHIP_NUMBER:= p_session.get_value_as_number( p_block_name => 'DEFAULT',
    p_attribute_name => 'A_MEMBERSHIP_NUMBER');
    l_url :=
    'http://servername:7778/pls/portal/PORTAL_DB.SPECIALIZATION_REMOTE.show?p_arg_names=input_MEMBERSHIP_NUMBER&p_arg_values='||input_MEMBERSHIP_NUMBER;
    portal.wwa_app_module.set_target(l_url);
    end;
    2-report
    SQL Used in the report:
    select * from PORTAL_DB.SPECIALIZATION_tab where
    SPECIALZATION_DELETE_DATE IS NULL
    AND MEMBERSHIP_NUMBER = :input_MEMBERSHIP_NUMBER
    order by DEPARTMENT_CODE

  • CellWrapper parameter with Reports Server

    I am trying to create a csv file by sending a URL command to the reports server. When I add the parameter cellwrapper=" I get a "bad parameter" message - usually for the parameter following the cellwrapper. I have tried enclosing in single or double quotes - same error. The cellwrapper parm works fine with some other character, like *, but not with quotes. Our output needs to work in MS Excel and has embedded commas so I need the " wrapper. Any ideas would be greatly appreciated.

    Navneet,
    Thanks for this information. I just ran into this same problem yesterday and couldn't get it to work. We're using Dev 6i so patches in 9i don't help. I am running Oracle Reports from a Forms session using RUN_PRODUCT (I understand that's going away in 9i), and when I added a parameter for CELLWRAPPER it wouldn't work. After seeing your message, I decided to add single quotes around the quote using the chr function and it worked. Here's the code:
    ADD_PARAMETER(list_id,'CELLWRAPPER',TEXT_PARAMETER,chr(39)||'"'||chr(39));
    Reports is now putting a set of quotes (") around every field. I hope this is useful to anyone else who runs into this problem. Thanks again for the info.
    - Mark

  • Passing Parameter to Report from a JSP

    <p>I have a report which calls a Oracle stored procedure which requires some  IN parameters. These parameters need to be passed from the JSP. For this scenario if someone has some sample code please post it.</p><p>Thanks.<br /></p><p>&#160;</p>

    <p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

  • Help - Passing parameter to report using page parameter

    I have a SQL Report on a page
    The report query is
    select * from scott.emp where deptno = :department
    The URL for the page containing the report is:
    http://developer03.fis:7777/portal/page?_pageid=95,36455&_dad=portal&_schema=PORTAL
    I have added a page parameter = departnment
    and associated the page parameter to the report bind variable in the Portlet Parameter Values as follows:
    department = Page Parameter, department
    I displayed the page by going to the above URL
    and then added &department=10 to the end of the URL in the browser address.
    I expected the report to display records for deptno = 10, but the query didn't return any records.
    Anyone know what's wrong??
    Thanks Larry

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

  • Pass parameter from report to report generates error

    I am new to Portal. Please help me with this one.
    I created two reports using report wizard. Report A lists termination infor group by leaving reasons. Report A takes two parameters: p_termination_date_from, p_termination_date_to.
    When Report A is returned, user is supposed to be able to click on termination reason and go to report B, which has more detail of who is terminated under that reason. Report B takes three parameters:
    p_Leaving_reason,
    p_termination_date_from,
    p_termination_date_to.
    All these three are passed from Report A.
    I use link to pass p_leaving_reason, but not able to use link to pass termination dates. So I use "a href= ..." to pass termination dates in Report A. The report is created without error. But when I run it, it gives me the following error:
    Error: Unable to perform query (WWV-10202)
    ORA-01858: a non-numeric character was found where a numeric was expected (WWV-11230)
    Here is my Report A Statement:
    ===========================================
    select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
    from tableA a
    WHERE
    a.ACTUAL_TERMINATION_DATE >= ''||:P_TERMINATION_DATE_FROM||''
    AND
    a.ACTUAL_TERMINATION_DATE <= '<a
    href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
    GROUP BY a.LEAVING_REASON, a.MEANING;
    And Report B select statement:
    ================================
    Select * from tableB b
    where b.termination_date>=:p_termination_date_from
    and
    b.termination_date<=:p_termination_date_to;
    I appreciate your help.

    Update:
    Now I put a to_char in front of a.actual_termination_date, it does not give me that error any more. But it doesn't return any row.
    Looks like it ignores the value I put in the parameter form. Please help. thank you.
    Here is the updated statement for report A:
    ==============================================
    select a.LEAVING_REASON, a.meaning, count(distinct(a.EMPLOYEE_NUMBER)) people
    from tableA a
    WHERE
    to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') >= ''||:P_TERMINATION_DATE_FROM||''
    AND
    to_char(a.ACTUAL_TERMINATION_DATE, 'dd-mon-yyyy') <= '<a
    href="report_b?p_arg_names=P_TERMINATION_DATE_TO&p_arg_values='||:P_TERMINATION_DATE_TO||'">'||:P_TERMINATION_DATE_TO||'</a>'
    GROUP BY a.LEAVING_REASON, a.MEANING;

  • Pass parameter to report paramater form from a form

    I defined parameter in a form. I am trying to pass the parameters to a report's parameter form. Is there any way to accomplish this?
    Thank you!

    Maybe this example will help. This can be added in a when button pressed event to run the report.
    DECLARE
    pl_id ParamList;
    subheader varchar2(1000);
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the 'tmpdata' parameter list afresh.
    pl_id := Create_Parameter_List('tmpdata');
    ** Add 1 data parameters to this parameter list
    */ -- subheader is a parameter created in Oracle Reports
    subheader := :variable.txt_message_yes;
    Add_Parameter(pl_id,'SUBTITLE',TEXT_PARAMETER,subheader );
    **Pass a Parameter into PARAMFORM so that a parameter dialog will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ** Run the report synchronously, passing the parameter list
    */ -- ABC is the report name
    Run_Product(REPORTS, 'ABC', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;
    null

  • Passing Parameter from report to form

    I have a report, link, and form developed. They all work just fine execpt that when the form comes up it is not linked to he record that it was called from. I have read the links on passing parameters and still do not understand what I have to do.
    Here is the basic scenario. I have a report that is a list of account codes for a project. There is a link from the account code to the acount code form where the user can change the status (active/inactive) of the account for a project. If the user clicks on the link for account 1000 thenI would expect that the form opens with account 1000 in update mode.
    How do I do it. It seems a very simple concept. What am I missing?
    Jerry
    [email protected]

    I am obviously missing something. In editing the link, I have a user parameter of atab. This is the column that is linked in the report. What do I use as the default value. Does it make a difference if the table does or does not have an index on the atab? The PK is an ID.
    Please help
    Jerry

Maybe you are looking for

  • Error while doing goods receipt

    Dear All, against Po when i am doing Goods receipts (migo) i am getting this error, " G/L Account 379998 does not exisr in co COde"    and for this i went to FS00 and tried to create GL account for co code, for this i am getting error as" corporate g

  • Interface on asa.

    Hi , I have connected a firewall inside interface to l3 switch. on l3 switch int gi0/1 no switchport ip address 192.168.10.1 255.255.255.0 no shut     on firewall int gi0/1 nameif inside security level 100 ip address 192.168.10.2 255.255.255.0 If i p

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it al

  • It takes time before the system is working properly

    Hi, This morning something strange happened. Turn on the iMac, the chime is there but when using the audio control keys (F4-F15-F16), nothing happened. Trying to quit an application (like iMail) from the dock does not work either. The icon in the doc

  • My images will not auto resize for viewing

    This is somewhat embarrassing. When viewing images from the web, if they're too large to fit the current window, they get re-sized to fit. Okay. I have a file/page of thumbnails generated by XnView and when I click, the image is loaded, everything is