Passing parameter into report

Hi,
I am using RUN_REPORT_OBJECT to call my report from the menu. How
do I pass parameters or values to my report? Is there another
built-in function to do this? Please provide some sample codes.
Thanks.
null

Make this thing:
PL_NAME := 'TEMP';
PL_ID := GET_PARAMETER_LIST(PL_NAME);
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
IF ID_NULL(PL_ID) THEN
MESSAGE('PL/SQL held against Button failed to execute');
RAISE FORM_TRIGGER_FAILURE;
END IF;
ADD_PARAMETER(PL_ID, 'PARAMFORM', TEXT_PARAMETER,'NO');
ADD_PARAMETER(PL_ID, 'AGENTE1',
TEXT_PARAMETER,:BLOQUE_RANGO_IMPRESION_AG.AGENTE1);
ADD_PARAMETER(PL_ID, 'AGENTE2',
TEXT_PARAMETER,:BLOQUE_RANGO_IMPRESION_AG.AGENTE2);
RUN_PRODUCT(REPORTS,CAMINO

Similar Messages

  • 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>

  • How to pass parameter into a source variable of a invoke activity

    I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
    BTW, I have created the mapper file (.xsl) file.
    could anyone tell me how to do that?
    Thanks,
    Victor

    Hi.
    How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
    But I created only processes where input value doesn't matter. I haven't use mapper yet too.

  • 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

  • How to pass parameter into extract function (for XMLTYPE)

    I have a table PROBLEMXML with XMLTYPE field xml_column. In this column there are several deffinitions for the problem. There is no max amount of deffinitions and it can be no definition at all. I need to return all definitions for every problem as a string wirh definitions separated by ";".
    Query
    SELECT extract(prob.Def,'/Definitions/Definition[1]/@var') || ';'|| extract(prob.Def,'/Definitions/Definition[2]/@var')
    FROM PROBLEMXML j ,
    XMLTABLE (
    '/problem'
    PASSING j.xml_column
    COLUMNS probid VARCHAR (31) PATH '/problem/@id',
    Def XMLTYPE PATH '/problem/Definitions') prob
    where PROBLEM_ID =1;
    returns exactly what I want a;m.
    But
    declare
    my_var varchar2(2000) :=null;
    n1 number;
    n2 number;
    begin
    n1:=1;
    n2:=2;
    SELECT extract(prob.Def,'/Definitions/Definition[n1]/@var') || '|'|| extract(prob.Def,'/Definitions/Definition[n2]/@var') into my_var
    FROM ETL_PROBLEMXML_STG_T j ,
    XMLTABLE (
    '/problem'
    PASSING j.xml_column
    COLUMNS probid VARCHAR (31) PATH '/problem/@id',
    Def XMLTYPE PATH '/problem/Definitions') prob
    where PROBLEM_ID =1;
    dbms_output.put_line(my_var);
    end;
    returns NULL.
    Is there is a way to pass parameter into extract function?

    I need to return all definitions for every problem as a string wirh definitions separated by ";".In XQuery, there's the handy function "string-join" for that.
    For example :
    SQL> WITH etl_problemxml_stg_t AS (
      2   SELECT 1 problem_id,
      3  xmltype('<problem id="1">
      4   <Definitions>
      5    <Definition var="var1"></Definition>
      6    <Definition var="var2"></Definition>
      7    <Definition var="var3"></Definition>
      8   </Definitions>
      9  </problem>') xml_column
    10   FROM dual
    11  )
    12  SELECT j.problem_id,
    13         prob.probid,
    14         prob.def
    15  FROM etl_problemxml_stg_t j,
    16       XMLTable(
    17        'for $i in /problem
    18         return element r
    19         {
    20          $i/@id,
    21          element d { string-join($i/Definitions/Definition/@var, ";") }
    22         }'
    23        passing j.xml_column
    24        columns
    25         probid varchar2(30)  path '@id',
    26         def    varchar2(100) path 'd'
    27       ) prob
    28  ;
    PROBLEM_ID PROBID               DEF
             1 1                    var1;var2;var3

  • How to pass parameter into transaction iview ?

    Hi experts,
    I want to know "how to pass parameter into transaction iview ".
    Regards,
    Krishna Balaji T

    Hi Krishna,
    Not sure if this can help you.
    1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
    Passing a parameter to a transaction iview
    2) Passing a parameter from the portal to R3 (helpful info for you)
    Passing a parameter from the portal to R3
    3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
    Create SAP Transaction iView using SAPGUI for Windows
    Please check the following link for Transaction Iviews
    http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
    Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
    Hope that helps and award points for helpful suggestions.
    Ray

  • 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

  • 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.

  • 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.

  • How to pass parameter into cursor for loop ?

    Hi Experts,
    I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below How to achieve this?
    for j in 1 .. l_bom_components_tbl.COUNT LOOP
    Thanks

    Maybe i failed to describe in detail,so here i go:
    I have two for loops:
    for i in 1 .. l_bom_header_tbl.COUNT LOOP --1st For Loop
    V_bom_header_tbl.organization_code :='DSC';
    V_bom_header_tbl.assembly_item_name:= l_bom_header_tbl(i).assembly_item_name ;
    k:=1;
    I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below: How to achieve this?
    for j in 1 .. l_bom_components_tbl.COUNT LOOP *2nd For Loop*
    v_bom_components_tbl(k).Assembly_Item_name := l_bom_header_tbl(i).assembly_item_name ;
    k := k + 1;
    end LOOP;
    end loop;
    end;
    I want to pass a paramter into second for loop in such a way that it accepts from the first for loop
    for j in 1 .. l_bom_components_tbl.COUNT LOOP -2nd loop
    Edited by: ILovePlSql on Mar 22, 2010 12:25 PM

  • 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.

  • 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

  • Passing parameter into SQL statement in Crystal Reports

    Hi all,
    I would like to call Crystal Reports in JSP. I can handle it well now. But I hope to let user input their selection criteria before printing out the report. I know how to get the parameter value in JSP, but I really dunno how to pass these parameter values into the SQL statement in Crystal Report. Actually, is it possible to do so?
    If anyone has idea, please tell me. Thx Thx!
    Regards,
    Betty

    Dear Sir,
    I want to use Crystal Report as a web base using JSP. But, I am getting how to call .rpt file in .jsp file & passing of parameter.
    If you have any idea, please reply as early as possible
    Thanking U.
    My userid = [email protected]
    Regds
    Pankaj..

Maybe you are looking for

  • JVM Coredump with libengine.so as the problematic frame

    Hi Experts, Our application is running over Tuxedo 9.0, and JVM 1.5.0_07-b03 mixed mode. We are experiencing coredumps frequently in production environment. The hs_err file shows the following information: # An unexpected error has been detected by H

  • Using ipod as hard drive error..

    hello i have tried about 5 times now to use my ipod as hard drive..it keeps giving me an error for a song saying "the parameter is incorrect". I don't know what to do, when it happened to one of the songs i deleted it..bc i don't listent it but i nee

  • What is version number for ipad2?

    Is version 5.0.1. an ipad2?

  • QEMU boot fail

    I've setup a virtual drive in QEMU and have installed Arch, but when I boot it up, it comes up with this error: :: Checking Filesystems /dev/sda1: The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid

  • FTP Connection Issues Dreamweaver CS5.5

    I can't ftp into the top level directory of any of my hosting accounts with dreamweaver cs5.5 This is becoming a major issue and I'm aware now of other users with the same issue. First  log in to an ftp server works fine - the test case directory is