Data_parameter

Dear All,
How I can use DATA_PARAMETER in 10g forms to pass record group to report.
Thanks for advance

Mohammed,
You probably forgot to populate the record group.
The creation of the record group does not execute the select statement. You must invoke the POPULATE_GROUP built-in to do it.
Hope this helps,
Pedro das Neves
([email protected])

Similar Messages

  • Pass DATA_PARAMETER to Report in 10g

    I have a form which will pass a Record Group to the Report as a parameter list, it works in 6i but when I migrate to 10g,
    the report cannot be run.
    In the Form :
    A record group named 'Q_QUERY'with 2 columns named 'APPLY_AGT' & 'STATUS' was built and populated.
    l_Param_Name := 'Q_QUERY';
    l_Param_Value := 'Q_QUERY';
    add_parameter (l_PARMLIST_ID, l_Param_Name, DATA_PARAMETER, l_Param_Value);
    Then will call the report using RUN_REPORT_OBJECT
    And just before calling the report , I am sure the data is already in the Record Group.
    In the Report :
    A Queries named 'Q_QUERY' as the Data Source
    And there is just 2 columns named 'APPLY_AGT' & 'STATUS'
    If I run as above, the system will show "Unable to Run Report".
    If I removed the "add_parameter (l_PARMLIST_ID, l_Param_Name, DATA_PARAMETER, l_Param_Value);" statement,
    the report can be called successfully.
    Am I missed something or it really can't do this in 10g ?
    Fyi, I have checked the TEXT_PARAMETER can be pass to report successfully, just DATA_PARAMETER can't.
    Please help, thanks!

    Use the following URL to see the exact reprt error in the server:
    "http://*rep_server:portno*/reports/rwservlet/showjobid*XXXX*?server=*rep_server*&statusformat=xml"
    just replace the words between *s  with their values. It will give u an idea as to what went wrong.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Passing using data_parameter instead of text_parameter

    hi,
    can any one show how to pass parameter using data_parameter?
    regards

    there are many examples in the online help.

  • How to pass record Group from Forms with DATA_PARAMETER to Reports Server

    How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
    We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
    How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
    Thanks,
    Arif

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

  • Passing record group (data_parameter) to reports server

    Hi Frank,
    I am using web.show_document for passing parameters to reports.
    It is working fine with text_parameter.
    Is it possible to pass record group thro' web.show_document?? If not possible,give alternate solution by example.
    Regards-
    Onkar Vidwans
    INDIA

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

  • Set_report_object_property

    I have included a rdf file as a part of a form. now I am trying to call that report . but before doing so I have to set certain user defined parameters for that report. I basically have two user defined parameters . so I am using the set_report_object_parameter to set the property for REPORT_OTHER.
    My question is how do you set this property for more than one user_defined parameter to that report.This is the help I get in the form builder
    FUNCTION GET_REPORT_OBJECT_PROPERTY
    (report_id REPORT_OBJECT,
    property NUMBER
    FUNCTION GET_REPORT_OBJECT_PROPERTY
    (report_name VARCHAR2,
    property NUMBER
    Built-in Type unrestricted procedure
    Enter Query Mode yes
    Parameters
    report_id Specifies the unique ID of the report. You can get the report ID for a particular report using FIND_REPORT_OBJECT .
    report_name Specifies the unique name of the report.
    property One of the following constants:
    REPORT_EXECUTION_MODE: Returns a string value of the report execution mode, either BATCH or RUNTIME
    REPORT_COMM_MODE: Returns a string value of the report communication mode, either SYNCHRONOUS or ASYNCHRONOUS
    REPORT_DESTYPE: Returns a string value of the report destination type, either PREVIEW, FILE, PRINTER, MAIL, CACHE or SCREEN
    REPORT_FILENAME: Returns a string value of the report filename
    REPORT_SOURCE_BLOCK: Returns a string value of the report source block name
    REPORT_QUERY_NAME: Returns a string value of the report query name
    REPORT_DESNAME: Returns a string value of the report destination name
    REPORT_DESFORMAT: Returns a string value of the report destination format
    REPORT_SERVER: Returns a string value of the report server name
    REPORT_OTHER: Returns a string value of the other user-specified report properties
    It is working okay for one paramaeter but
    HOW DO I SET FOR MORE THAN ONE USER DEFINED REPORT_PARAMAETER ???
    Thanks
    aruna

    I am currently using that. But somehow that seems to give me REP 0999 error when I am using generate to file delimited or html option. Now this is happening when I have break groups in my report, oterwise it is working fine.
    Any help regarding this
    aruna
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Helena Markova ([email protected]):
    I think that it would be better for
    you to see RUN_PRODUCT built-in in Forms help. You will see using of a parameter list (Parameters of type DATA_PARAMETER are pointers to record groups in Form Builder) there.
    I hope this will help you.
    Helena<HR></BLOCKQUOTE>
    null

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    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 a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **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
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • Calling Report From Oracle Forms

    Hi
    I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
    Thanks.

    As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
    Adi

  • How and where should I create a parameter list

    Hi, I4m trying to create a parameter lists but I don4t know where and how.
    I guess as a program unit but as function or procedure, sorry I4m new on this for that I4m finding this a bit difficult. Please, someone could help me to understand this:
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    ** If it does, then delete it.
    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 a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** 'EMP_QUERY' in the report, and the record group named
    ** 'EMP_RECS' in the form.
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    **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
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

    Hi,
    What you've pasted the code here is absolutely correct.
    You'll have to write the code in Forms builder.
    You can either paste the same code in a procedure & call that procedure
    from button's When-Button-Pressed trigger or paste the code in
    your button's When-Button-Pressed trigger like this :
    DECLARE
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    However, don't write the code in a function as you will need to return some value from the function.
    Thanks,
    Mayur Shah
    [email protected]

  • Pass a set of Records form Form to a Report

    Hi,
    Lets say that I've already fetched a set of records on Oracle Form, and I want to pass these reocrds to a Report " on the Report I dont wana use range or where clause to give me these recods"
    Any ideas how to do that please?
    Thanks!

    Passing a (Forms) Record Group as DATA_PARAMETER to Reports:
    First example:
    Forms code (in WHEN-BUTTON-PRESSED trigger) calls reports module
    and sends record group "rg_dept" (populated from :SYSTEM.LAST_QUERY) as parameter:
    DECLARE
    rg_id_l RECORDGROUP;
    rg_name_l VARCHAR2 (30) := 'RG_DEPT';
    status_l NUMBER;
    pl_id_l PARAMLIST;
    pl_name_l VARCHAR2 (30) := 'PARAM_LIST';
    BEGIN
    rg_id_l := FIND_GROUP (rg_name_l);
    IF NOT ID_NULL (rg_id_l) THEN
    DELETE_GROUP (rg_id_l);
    END IF;
    rg_id_l := CREATE_GROUP_FROM_QUERY (rg_name_l, :SYSTEM.LAST_QUERY);
    status_l := POPULATE_GROUP (rg_id_l);
    IF status_l <> 0 THEN
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    pl_id_l := GET_PARAMETER_LIST (pl_name_l);
    IF NOT ID_NULL (pl_id_l) THEN
    DESTROY_PARAMETER_LIST (pl_id_l);
    END IF;
    pl_id_l := CREATE_PARAMETER_LIST (pl_name_l);
    ADD_PARAMETER (pl_id_l, 'Q_1', DATA_PARAMETER, rg_name_l);
    RUN_PRODUCT (REPORTS, 'rec_group', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id_l, NULL);
    END;
    Reports module must have query with the same name as parameter in ADD_PARAMETER
    statement (in this code - "Q_1"), and SQL Query Statement in Reports must have
    same number and type of columns as record group, for example:
    SELECT ROWID, 1 deptno, 'x' dname, 'x' loc FROM DUAL
    And - we can't pass a DATA_PARAMETER to a child query in Report Builder.
    Data passing is supported only for master queries.
    Second example:
    Forms transfers to Reports records from "dept" block,
    using non-query record group (populated from Forms "dept" block in a LOOP):
    DECLARE
    rg_id_l RECORDGROUP;
    rg_name_l VARCHAR2 (30) := 'DEPT';
    row_count_l NUMBER;
    rgc_id_l GROUPCOLUMN;
    pl_id_l PARAMLIST;
    pl_name_l VARCHAR2 (30) := 'PARAM_LIST';
    BEGIN
    rg_id_l := FIND_GROUP (rg_name_l);
    IF NOT ID_NULL (rg_id_l) THEN
    DELETE_GROUP (rg_id_l);
    END IF;
    rg_id_l := CREATE_GROUP (rg_name_l);
    rgc_id_l := ADD_GROUP_COLUMN (rg_id_l, 'deptno', NUMBER_COLUMN);
    rgc_id_l := ADD_GROUP_COLUMN (rg_id_l, 'dname', CHAR_COLUMN, 14);
    rgc_id_l := ADD_GROUP_COLUMN (rg_id_l, 'loc', CHAR_COLUMN, 13);
    GO_BLOCK ('dept');
    FIRST_RECORD;
    row_count_l := 0;
    LOOP
    row_count_l := row_count_l + 1;
    ADD_GROUP_ROW (rg_id_l, row_count_l);
    SET_GROUP_NUMBER_CELL (rg_name_l || '.deptno', row_count_l, :dept.deptno);
    SET_GROUP_CHAR_CELL (rg_name_l || '.dname', row_count_l, :dept.dname);
    SET_GROUP_CHAR_CELL (rg_name_l || '.loc', row_count_l, :dept.loc);
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    IF row_count_l = 0 THEN
    MESSAGE ('Nothing to print'); PAUSE;
    RETURN;
    END IF;
    pl_id_l := GET_PARAMETER_LIST (pl_name_l);
    IF NOT ID_NULL (pl_id_l) THEN
    DESTROY_PARAMETER_LIST (pl_id_l);
    END IF;
    pl_id_l := CREATE_PARAMETER_LIST (pl_name_l);
    ADD_PARAMETER (pl_id_l, 'Q_1', DATA_PARAMETER, rg_name_l);
    RUN_PRODUCT (REPORTS, 'REC_GROUP_REPORT', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id_l, NULL);
    END;
    This works in Forms 6i. In Forms 9i we must use RUN_REPORT_OBJECT instead of RUN_PRODUCT
    (see Oracle MetaLink document 110495.1 "Passing a Record Group to Reports Using RUN_REPORT_OBJECT").
    Regards,
    Zlatko Sirotic

  • Find the location where forms is installed

    I want to run a report directly from form without showing
    parameter form. For this i use
    HOST('c:\orawin95\bin\r22run32.exe report = path of report
    userid = ' || get_application_property(username) || '/' ||
    get_application_property(password) ||'/'||
    get_application_property(connect_string) || 'parameter = YES
    destype = PRINTER batch = yes background = yes')
    Here I have a problem to find the location (ie c:\ or d:\ ..)
    where the forms is installed.
    Pls reply ,if anybody the solution.

    Why you don't use RUN_PRODUCT or RUN_REPORT_OBJECT function ?
    With RUN_PRODUCT or RUN_REPORT_OBJECT, forms will find where is
    report.
    Examples for RUN_REPORT_OBJECT:
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
    BEGIN
         repid := find_report_object('report4');
         v_rep := RUN_REPORT_OBJECT(repid);
    END;
    or example for RUN_PRODUCT :
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

  • Call Oreacle report from Oracle form

    Hi,
    I need call a Oracle report from Oracle Form and found the the following procedure from this forum. I have 2 parameters 'start_date' and 'end_date' passing to called report. The following example just have onle parameter
    'departmentno' passing. Is that mean I need to call add_parameter twice like the following?
    add_parameter(plid, ''start_date' , TEXT_PARAMETER,:control.start_date);
    add_parameter(plid, ''end_date' , TEXT_PARAMETER,:control.end_date);
    In the following example:
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    Thanks for clarification!!
    Michael
    PROCEDURE pass_parameter
    IS
    plid paramlist;
    the_param varchar2(15) := 'tmpdata';
    BEGIN
    plid := get_parameter_list(the_param);
    /* check if 'tmpdata' exists */
    IF NOT id_null(plid) THEN
    destroy_parameter_list(plid);
    END IF;
    /* if it does destroy it */
    plid := create_parameter_list(the_param);
    /* create it afresh */
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    /* associate the param in the form with the param in the report */
    add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    /* to suppress the parameter form displaying */
    run_product(REPORTS, /* product name */
    'formrep.rdf', /* Oracle Reports module */
    SYNCHRONOUS, /* communication mode */
    RUNTIME, /* execution mode */
    FILESYSTEM, /* location of the Reports module */
    plid, /* handle to the parameter list */
    null
    END;

    this my code on when_button_press
    declare
    rec_grp recordgroup;
    col1 groupcolumn;
    col2                    groupcolumn;
    col3                    groupcolumn;
    col4                    groupcolumn;
    col5                    groupcolumn;
    col6                    groupcolumn;
    col7                    groupcolumn;
    col8                    groupcolumn;
    pl_id paramlist;
    i number :=1;
    begin
    rec_grp := find_group('emp_rec');
    if not id_null(rec_grp) then
    delete_group(rec_grp);
    end if;
    rec_grp := create_group('emp_rec');
    col1 := add_group_column('emp_rec','Empno',CHAR_COLUMN,8);
    col2 := add_group_column('emp_rec','Ename',CHAR_COLUMN,30);
    col3 := add_group_column('emp_rec','job',CHAR_COLUMN,15);
    col4 := add_group_column('emp_rec','Mgr',CHAR_COLUMN,8);
    col5 := add_group_column('emp_rec','Hiredate',DATE_COLUMN,10);
    col6 := add_group_column('emp_rec','Sal',CHAR_COLUMN,10);
    col7 := add_group_column('emp_rec','comm',CHAR_COLUMN,10);
    col8 := add_group_column('emp_rec','Deptno',CHAR_COLUMN,4);
    loop
    go_block('emp_r');
    go_record(i);
    add_group_row(rec_grp,i);
    set_group_char_cell('emp_rec.empno',i,:emp_r.empno);
    set_group_char_cell('emp_rec.ename',i,:emp_r.ename);
    set_group_char_cell('emp_rec.job',i,:emp_r.job);
    set_group_char_cell('emp_rec.mgr',i,:emp_r.mgr);
    set_group_date_cell('emp_rec.Hiredate',i,:emp_r.Hiredate);
    set_group_char_cell('emp_rec.sal',i,:emp_r.sal);
    set_group_char_cell('emp_rec.comm',i,:emp_r.comm);
    set_group_char_cell('emp_rec.deptno',i,:emp_r.deptno);
    i := i + 1;
         exit when :system.last_record='TRUE';
    end loop;
    pl_id := get_parameter_list('para1');
    if not id_null(pl_id) then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list('para1');
    add_parameter(pl_id,'Q_EMP',DATA_PARAMETER,'emp_rec');
    add_parameter(pl_id,'paramform',text_parameter,'no');
    run_product(REPORTS,'D:\ora\daily.RDF',synchronous,runtime,filesystem,pl_id,NULL);
    end;
    ---------and this is my reprot query----------
    select Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,Deptno
    from emp
    where empno=:emp_rec
    order by empno;
    but it show error at run time
    Rep-1340
    plzz solve this problem to me
    fahad

  • Dynamic query in 10g

    i am calling a report from a 10g form. i wanna to pass a dynamic query from form to report. I am able to perform this with 6i but can't using 10g. is there any way to create a dynamic query in reports 10g
    thanks

    Actually, i am creating the whole query upon based on a condition in form, then i am passing this query to report via a data parameter. following is the some part of code, which i am using
    IF :CONTROL.VOUCHER_FORMAT='S' THEN
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvno ='''||:vno||''' AND bvrm.bvdate='''||:VDATE||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE='''||:VTYPE||''' GROUP by bvdate,bvno');
    else
    V_QUERY:=('select bvno vno,bvdate vdate from bvrm where bvrm.bvdate BETWEEN '''||TO_DATE(:FROMDATE,'DD/MM/YYYY')||''' AND '''||to_date(TO_DATE(:TODATE,'DD/MM/YYYY')+1)||''' and ccode='''||:PARAMETER.ccode||''' and fycode='''||:PARAMETER.fycode||''' AND BVRM.BVTYPE = '''||:VTYPE||''' GROUP by bvdate,bvno');
    end if;
    RG_ID:=CREATE_GROUP_FROM_QUERY(RG_NAME,V_QUERY);
    NUM:=POPULATE_GROUP(RG_NAME);
    ADD_PARAMETER(PL_ID,'Q_MAIN',DATA_PARAMETER,RG_NAME);
    after this code, i am calling the run_report_object normally. this code works fine with 6i, but doesn't with 10g     
    thanks

  • Running a Report

    hi, we have converted our Forms3.0 to Forms6i, some of these run reports from a trigger.
    the old command was
    acadhist := 'runrep ReportA
    paramform=yes reg_num=' &#0124; &#0124; TO_CHAR (:stud_m.reg_no ) ;
    host (acadhist ) ;
    which worked fine.
    in Forms 6i i am trying to use Run_product that works fine to run the report but i don't know how to pass in the parameter. my command line looks like the following.
    RUN_PRODUCT(REPORTS,'ReportA.rdf',SYNCHRONOUS,RUNTIME,FILESYSTEM,to_char(null),null);
    Anyone any ideas?
    Eileen

    Here's an example of Run_Product:
    ** Create the 'tmpdata' parameter list afresh.
    pl_id := Create_Parameter_List('tmpdata');
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** 'EMP_QUERY' in the report, and the record group named
    ** 'EMP_RECS' in the form.
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    **Pass a Parameter into PARAMFORM so that a parameter dialog will not appear for the parameters being passing in.
    Add_Parameter(pl_id,'v_diar_id', TEXT_PARAMETER, vr_diar_id);
    Add_Parameter(pl_id, 'DESFORMAT', TEXT_PARAMETER, 'PDF');
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'YES');
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, 'empreport',SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    Also, keep in mind that using web.show_document in replace of Run_Product works very well for reports on the web.
    Here's an example I have:
    web.show_document('http://webaddress/dev60cgi/rwcgi60.exe?server=servername&report=report_name.rdf&userid=username/pw@db&destype=cache&desformat=PDF&p_variable='&#0124; &#0124;vr_variable&#0124; &#0124;'&p_ name='&#0124; &#0124;vr_name,'_blank');
    I hope this helps you.

  • How to pass Parameters between two forms

    im trying to do this but i could not find any way for this.
    can any one help me how can i pass parameters between two forms
    in forms4.5. any help will be appreciated
    thanks.
    null

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

Maybe you are looking for