Multiple Parameter form windows

Hello,
can i open multiple parameter form windows for different reports from forms?
Both forms and reports are 11G.
thanks.

Not sure if you got a fix for this or not yet, but the easy way is to create multiple user parameters entry boxes, kinda like p_item, p_item1, p_item2 and then in the SQL, ITEM=p_item or ITEM=p_item1 etc.

Similar Messages

  • REP-0546 when displaying parameter form

    Hi,
    here is my issue:
    when i run the report from forms with paramform=no the report works fine and produces valid output.
    However when parameter paramform=yes the parameter form window comes up with error:
    REP-0546: The parameter value is invalid
    I am puzzled.
    Any suggestions?

    Hello,
    Reports are 11g, there are no before or after trigger. However there is validation trigger on the parameter. I am running the report from Oracle Forms 11g
    Here is a code snippet:
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_FILENAME);
    hidden_action := hidden_action ||'&destype='||GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_DESTYPE);
    hidden_action := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY (p_report_id,REPORT_DESFORMAT);
    -- hidden_action := hidden_action ||'&desname='||GET_REPORT_OBJECT_PROPERTY (p_report_id,REPORT_DESNAME);
    -- hidden_action := hidden_action ||'&copies=1';
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'
    ||get_application_property(password)||'@'||
    get_application_property(connect_string);
    c_old :='@';
    -- replace spaces with & sign for html page parameters format
    FOR i IN 1..LENGTH(p_report_otherparam) LOOP
    c_new:= substr(p_report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    -- hidden_action := hidden_action ||'&'||v_report_other;
    -- hidden_action := v_report_servlet||'?_hidden_server='||v_report_server||hidden_action;
    -- message('hidden_action = '||hidden_action);
    --message(' ');
    -- Build the string of user parameters dynamically
    -- if parameter list exists build string of parameters dynamically
    if NOT id_null(p_param_list) then
    begin
    FOR idx IN c_rep_params (GET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_FILENAME)) LOOP
    if (idx.parameter_type = 'USER') then
         GET_PARAMETER_ATTR(p_param_list,idx.parameter_name,v_paramtype,v_value);
    if (v_other_params is NULL) then
    v_other_params := '&'||lower(idx.parameter_name)||'='||v_value;
    else
         v_other_params := v_other_params||'&'||lower(idx.parameter_name)||'='||v_value;
    end if;
    end if;
    END LOOP;
    -- message('parameters for the report: '||v_other_params);
    end;
    end if;
    message('Other params: '||v_other_params);
    hidden_action := hidden_action ||'&'||p_report_otherparam||v_other_params;
    hidden_action := v_report_servlet||'?_hidden_server='||v_report_server||hidden_action;
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action||v_other_params);
    --v_string1 := 'http://wdpra99a0227.wellsfargo.com:9003/reports/rwservlet?SERVER=rep_wls_reports_wdpra99a0227_asinst_1&destype=cache&desformat=pdf&userid=fur/devgang@oadev&report=cprofall.rdf&pf_assignment=CN132';
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id, REPORT_OTHER,'pfaction='||v_string1||' PARAMFORM=YES');
    SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action);
    -- SET_REPORT_OBJECT_PROPERTY(p_report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||p_param_list);
    message('pfaction='||hidden_action);
    -- Based on the parameter list make the call to run report
    if NOT id_null(p_param_list) and (upper(p_report_otherparam) like '%PARAMFORM=NO%') then
         vc_report_job_id := RUN_REPORT_OBJECT(p_report_id,p_param_list);
    else
    vc_report_job_id:=RUN_REPORT_OBJECT(p_report_id);
    end if;
    message('Report job id = '||vc_report_job_id);
    /* The report output is not delivered automatically to the client, which is okay
    because the Web is a request model. Thus the next step is to check if the report finished.
    vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    vc_rep_status := report_object_status(vc_report_job_id);
    END LOOP;
    v_rep_job_id := substr(vc_report_job_id,length(v_report_server)+2,length(vc_report_job_id));
    --message(v_rep_job_id);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Report output to be displayed in a separate browser window. The URL
    for relative addressing is only valid when the Reports Server is on the same host
    as the Forms Server. For accessing a Remote Reports Server on a different
    machine, you must use the prefix http://hostname:port/
    --web.show_document ('/<virtual path>/<reports cgi or servlet name>/getjobid='||
    --vc_report_job_id ||'?server='|| '<ReportServerTnsName>','_blank');
    WEB.SHOW_DOCUMENT(v_report_servlet||'/getjobid'||v_rep_job_id||'?server='||v_report_server,' _blank');
    -- copy outputfile to provided destination
    if (v_rep_file_to is not null) and (v_rep_file_from is not null) then
    -- copy in windows
    v_host_string := 'cmd /c copy ' ||v_rep_file_from|| ' ' ||v_rep_file_to;
    message(v_host_string); message(' ');
    -- client_host(v_host_string);
    end if;
    ELSE
    message (SQLERRM);
    END IF;

  • How to Change the Size of the Parameter Form in Report6i

    hi
    Does any one know how to change the size of the "PARAMETER FORM" in Report6i.

    Hi,
    You can change it in the "Parameter Form Window" property of the Report Object.
    In the object navigator, select the Report object and open its property palette. Under "Parameter Form Window" you can change the "width" and "height" properties.
    Regards,
    Siva B

  • Paremeter form Window Properties

    hi
    i would like to ask is it possible to disable the
    maximize ,minimize and horizontal and vertical scroll bar of
    the parameter form window ( reports 6i) while running a report
    sincerely
    rajesh

    Create a shortcut for your forms designer. In the properties of the shortcut set the Run property to maximized. When you open the designer, if the object navigator window is minimized, then maximize it and close the application. Open it again and you should be all set.
    Sudha

  • How to hide the window of Runtime Parameter Form?

    I have a form and I call a report from this form.I have passed some parameters to this report.Before the browser of reports appear the window of Runtime Parameter Form.I want to hide this window of Runtime Parameter Form but I don't know how.
    Please help me!

    When calling the report, set the property PARAMFORM to NO. IF you using parameter list to pass values to report you can do as follows:
    ADD_PARAMETER(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');

  • Parameter form - how to enter multiple values, e.g. IN (:p_status)

    On a parameter form, how would I enter in multiple parameters at reports runtime. In my query I have
    WHERE status IN (:p_status)
    I always get 0 records, no matter what punctuation I put in between the data on the Parameter form. What is the correct way for doing this?

    Hi,
    Try using
    IN (&p_status)

  • How to print a report which is consist a paper parameter form

    Hi !
    I have created a report file with paper parameter form and also create a form. Now , when I try to run this form it display
    REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    After click on submit the query button window dispaly a message run successfuly,But it does not print the report's data, it prints only paper parameter contents.
    i.e. REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
         USER ID     (a combo box with data)
         PASSWORD (a combo box with data)
    I used the following codes
    PROCEDURE RUN_REPORT1(vc_reportoj Varchar2, vc_reportserver varchar2, vc_runformat varchar2,report_otherparam VARCHAR2, pvar varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Reportrequest */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    vfilename varchar2(255);
    vport varchar2(50);
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT(vc_reportoj);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,name_in(':parameter.path') ||'\'||NAME_IN('CTL_REPORTS.REPORT_NAME'));
         if pvar = 'FILE' then
              vfilename := CLIENT_GET_FILE_NAME('c:\',null, 'All Files (*.*)|*.*|',SAVE_FILE);
              if vfilename IS NOT NULL THEN     
              SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, FILE);
                   SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESNAME, vfilename||'.rtf');
                   SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,vc_reportserver);
                   hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new ='') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old ='' and c_new ='') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    end loop;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := 'http://127.0.0.1:8889/reports/rwservlet'||'?_hidden_server='||vc_reportserver|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'pfaction='||hidden_action||''||report_otherparam);
    -- run Reports
                   vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_id);
                   vjob_id := substr(vc_ReportServerJob,length(vc_reportserver)+2,length(vc_ReportServerJob));
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT ('http://127.0.0.1:8889/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||'&_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    ELSE
         RETURN;
    end if;
    This is the part of the procedure.

    See Viewing Pages in Printer Friendly Mode and Selecting a Printer Friendly Template for an Application
    Thanks,
    Vikram

  • Returning to the parameter form in a report after closing the report page

    hi all,
    tell me a way to get the following solution
    how can we return back to the parameter form of a "parameterised
    report" after closing to the report window.
    i ve tried a little bit with "srw_run_report"
    reply me as quick as possible
    prabhakaran

    Try using menu options
    Tools\Parameter Form Builder
    you can either select/deselect any parameter from the list

  • Report 9i parameter form problem, is it a bug?

    Hi all,
    I am using Dev 9i IDS, rel. 9.0.2, running in windows 2000. I've been converting my forms and reports from previous versions to 9i, and I came across an issue with the report's parameter form.
    First, I thought it could be a problem during the conversion , but to make sure I developed a new form and a new report straight in the 9i IDS suite, using Scott's DEPT table. The new form is simple having a button to call the new report which is based on the DEPT table and accepts an user's input for a dept. no.
    The same problem occurs:
    - in the form, if I set PARAMFORM=HTML then it could not open the report parameter form, hence the report could not run.
    - if I set PARAMFORM=YES, then the report parameter form is displayed, then I can enter a value for the department number. BUT, when I clicked the Submit Query button the report failed, and I received the following error:
    REP-52007: Parameter form format error.
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:973)
         at javax.servlet.ServletResponseWrapper.setContentType(ServletResponseWrapper.java:27)
         at oracle.reports.rwclient.RWReportRunner.setContentType(RWReportRunner.java:261)
         at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:135)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:651)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1053)
         at oracle.reports.rwclient.RWClient.doPost(RWClient.java:318)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I have no problem integrating others reports that don't have parameter form using run_report_object. And, I've checked and tried different ways of manipulating the parameter value using to_number in the report's where clause etc., it never worked.
    I guess the only workaround is to create the parameter form in Forms builder. Is there other ways of doing it , or is it a bug of the 9i IDS suites that needs to be fixed?
    - Thanks

    Hi Frank,
    There's a note published on Metalink, note 139546.1, showing a workaround to thi problem. but
    - it is rather lengthy and confusing, may not be practical .
    - it only applies to Forms and Reports 6i.
    However, it shows that the problem comes from 2 items in the source code of the parameter form which is produced by the RUN_REPORT_OBJECT built-in:
    1. <form method=post action=""> where action contains an empty string, it needs to have a valid entry, e.g.
    <form method=post action="http://hostname:port/cgi/rwci60.exe?">
    2. <input name="hidden_run_parameters" type=hidden value=""> where hidden value is also empty. It should contains all parameter values passed to the report parameter form, e.g.
    <input name="hidden_run_parameters" type=hidden value="report%3test+destype%3Dcache+userid%Dscott.....">
    And that is what I found, but I am reluctant to try it in 9i IDS, hoping Oracle has a better solution than that.
    Tho.

  • Calling a JSP Report From HTML parameter form

    Hi,
    I m trying to run a JSP Report from a HTML parameter Form. The JSP reports requires a parameter named userid in the URL with a valid value for database connection.
    eg. URL "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?userid=sysapps/system@trt1". We have created a variable on the server named "parmformjsp" with a value "sysapps/system@trt1". Now i use this variable in the URL as follows, eg. "http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_crdinf.jsp?parmformjsp".
    When i use this URL to call another JSP report from a JSP report it works fine, but the same does not work when calling a JSP report from a HTML form.
    the code for HTML parameter form calling a report is as follows,
    <html>
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Parameter Form</title>
    </head>
    <body>
    <p>Parameter Form</p>
    <form name="form1" method="GET"
    action="http://win2kdb.oracle9iis.com:7778/repdemo/examples/Tools/fm_custrns.jsp?parmformjsp">
    <p>From Date<input type="text" name="p_fmdate" size="20"></p>
    <p>To Date<input type="text" name="p_todate" size="20"></p>
    <p> </p>
    <p><input type="submit" ><input type="reset" value="Reset" name="B2"></p>
    </form>
    <p> </p>
    </body>
    </html>
    If i create an input parameter named "userid" with a valid database connection value, remove the ?parmformjsp part from the action URL then it works fine. How can i call the JSP report using the parmformjsp variable name instead of using the "userid" clause in the URL.Can anyone suggest any workaround....
    Thanks & Best Regards,
    Unmesh

    do it like this...
    DECLARE
    pl_id ParamList := Get_Parameter_List('tmpdata');
    BEGIN
    IF NOT Id_Null(pl_id) THEN
      Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'ROUTE_CARD_CONTROL', TEXT_PARAMETER, :ROUTE_CARD.ROUTE_CARD_CONTROL);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    Run_Product(REPORTS, 'D:\STL_FINAL\CHPREPORTS_FINAL\ROUTE_CARD.REP', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END; what exactly happens when you call the report. if its showing the blank page... may be you are not passing the right parameter name. cross-check that your parameter name in the report is 'ROUTE_CARD_CONTROL'.

  • Help: Parameter form related

    Hi,
    I am working a set of FORM LETTER reports. I'd like to include a parameter form so when user enter multiple ID numbers separated by comma ',', the REPORT will print multiple letters. In my query, I included a line of constraint as:
    where ID IN (:P_ID)
    It did not work. It works if I put it as:
    where ID = :P_ID
    But this would only print one letter at a time.
    Thank you in advance
    Jimmy

    Will you be more specific on this?
    The problem I have is in SQL, doing this:
    SELECT ID FROM TABLE_ID
    WHERE ID IN (&P_ID);
    is perfectly OK.
    However, if P_ID is passed as parameter in the REPORTS query, it does not work. In the REPORTS that I am working on having a where clause as:
    WHERE ID IN (:P_ID)
    the parameter is passed as: :P_ID: 267, 365 etc.
    Thank you in advance.
    Jimmy

  • How can I change LOV Font in a parameter form?

    Dear friends
    I made a report with reports 6i and in it's parameter form I placed an LOV based on a query and I want to change it's font, but it doesn't change anyway. I think it's default font is System.
    The problem is getting more serious when I use arabic windows, because it shows arabic characters as english extended characters and make the LOV unreadable. I would be so glad if someone could help me.
    Thanx.
    B. sadati

    Hi,
    I think changing the font in the Paramater form for the LOV is not possible. Long back there was
    an enhancement request filed for this , i don't think that is implemented yet.
    Prabably you have to have as a workaround is make a pramform out of Oracle Forms.
    cheers :-))
    Arun.

  • Dynamic lovs in parameter forms ... Is this possible?

    Hi
    I am using report developer 10g on windows xp.
    I need a cascading prompt style dynamic LOVs in my report parameter form.
    The first LOV displays a set of values (say for eg. dept list). The second LOV will display another list, based on the value chosen by the user in the first LOV (Eg. List of employee names in that dept).
    My first LOV select statement may look like below for the user parameter say P_DEPT
    select deptno from dept;
    My sencod LOV select stmnt may look like below for the user parameter P_EMP
    select ename from emp where deptno = :P_DEPT
    Each time I try to set the second LOV, report developer complains "Bind variables not allowed in select statement"
    Same error msg comes if I reference the first user parameter(P_DEPT) as a lexical parmaeter.
    How do I acheive the above in report parameter form? Any help is appreciated greatly...
    Thanks
    Suma
    Message was edited by: suma
    user519129

    Hi Brad,
    Thanks for the reply. I had almost given up hope on receiving replies to this message.
    I do agree that it is simpler (and a lot striaght forward) to just use forms to develop dynamic LOVs of cascading prompt style, that is required in my app. But in our shop, we have integrated forms and reports in such a way, that all the report parameters are handled by report developer's own parameter form, rather than coding a separate logic on the forms side to handle the report parameters(as this has to be done on the forms side for every report that we generate, We thought it would be better to use the reports developer to handle the parameter input and then pass the .rdf to forms app). Currently in all our app, the parameter form generated by the report developer is rendered as HTML form on the browser (when the concerned rdf file is called within the forms app) and by submitting this we get the report output)
    Hence I am very keen to get this done somehow on the report developer side.
    I do hope I get some input on this. Also, its a little surprising that such a simple feature is not readily avalibale in the report parameter form. I hope oracle report developer team is reading this message...:)
    Thanks
    Suma

  • REP-3131: Parameter form boilerplate text cannot fit on the page

    Dear members,
    I am getting the following error while running the report :
    REP-3131: Parameter form boilerplate text cannot fit on the page
    can any body tell me how to correct it. I need to add a extra field in the standard oracle report "RECEIPT TRAVELER". when i was trying to run it in report builder 6i i got the above mentioned error. please give ur quick replies.
    thanks
    regards
    sandeep

    When you add your new field into the parameter mask, please check, if the value is too
    long for your parameter mask site. Make a double click on the master attributes of your
    report in the object navigator and look at the size of the parameter mask window.
    Make it bigger, if you want (vertically und horizontally size).
    Check the length of the text of your parameter mask title, too.

  • Values in one field based on another field in the paper parameter form.....

    Hi All,
    I have two fields in the parameter form. One named 'employee number' and the other named 'document number'. Now, there are multiple document numbers for every employee. I'd like the document numbers to be displayed automatically as an LOV or would like to give the user some help when the employee number is entered manually. Please let me know if this is possible in Oracle reports. I read somewhere that I'll have to call the values from the form. if that is the case. then please let me know how to go about it....
    Regards,
    Shri

    Hi Hari,
    Considering both Market Segment and Application fields are dropdown,
    1) define an event for the first dropdown in the get_p method ie., Market Segment field
    2) In the get_v method of the second dropdown get the value of hte 1st dropdown and filter your field accordingly
    Note: The reason for defining an event in (1) is just to do a server submit.. its actually act as a dummy event if you dont want to handle your logic here
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

Maybe you are looking for