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

Similar Messages

  • Help with Parameter Form

    Hello, I have a somewhat complicated Report and I am hoping that I can create the Parameter Form in Reports (I would rather not use Forms because I don't know it as well)
    Here's my problem:
    Right now I have 2 fields that I need help with.
    The first one is called "Report Name" and I have it coded to a bind variable that will search for a series of "work units" such as 02% or 03%
    This works as coded, the problem comes with the other "Work Unit" field. What I have right now is a LOV that queries for work units that start in either 02 or 03. This variable will narrow down the report findings to the specific work unit selected. What I want is for this list to be dependant on what the user choses for report name.
    For example if the user choses ReportName1 the report query finds work units with 02%, but the "work unit" field still displays the list of work units 02% and 03% and the user must know to only chose the certain work units for the specific "Report Name" selected.
    If there is a way to somehow have the "Work Unit" field be dependant on the "Report Name" field please give me soem ideas of how to do it.

    Thats what I was worried about.
    Well I have been trying to learn forms for some time now but I can't quite get the hang of it yet.
    I don't really have anyone who knows it here, so I'm kind of learning on my own.
    Thanks for the response.
    Arin

  • Parameter form help

    Hi everyone,
    i have a table TEST with data as below:
    WITH TEST AS
         (SELECT 'A' AS CODE, '1' AS ID  FROM DUAL
          UNION ALL
          SELECT 'A', '2'      FROM DUAL
          UNION ALL
          SELECT 'A', '3'      FROM DUAL
          UNION ALL
          SELECT 'A', '4'      FROM DUAL
          UNION ALL
          SELECT 'B', '5'      FROM DUAL
          UNION ALL
          SELECT 'B', '6'      FROM DUAL
          UNION ALL
          SELECT 'C', '7'      FROM DUAL
          UNION ALL
          SELECT 'C', '8'      FROM DUAL
          UNION ALL
          SELECT 'C', '1'      FROM DUAL     )
    SELECT *  FROM TEST;
    OUTPUT:
    C I
    A 1
    A 2
    A 3
    A 4
    B 5
    B 6
    C 7
    C 8
    C 1so in my report i have parameter form with 2 fields as "CODE" and "ID",so the data in "CODE" is displayed through SELECT statement in LIST OF VALUES parameter.
    so when i select the data in "CODE" field,i want to display only the corresponding ID's with respect to "CODE" in "ID" field
    for example:
    if i select CODE ='A' then "ID" field should populate with values 1,2,3,4 automatically with respect to "CODE"
    My request is this possible in report builder parameter form ??
    if yes then plzzz guide to the solution
    Regards,
    Santosh.Minupurey

    Hi santosh,
    you can use list of values for report parameter.
    under user parameters select your parameter. Go to property pallete.
    There is a property called list of values. There you can write your query for LOV.
    But i dont know it is possible to populate paramter item at run time based on another parameter item selection.
    Regards
    Sankar MN

  • Help with 10g Reports Parameter form Fonts

    Hi
    We are trying to upgrade to 10g from 6i developer, when we try to run a report, the parameter form fonts comes out ugly.., on a Linux plat form , the fonts we have on the parameter form are Ariel 8, 10 and 12. Any idea what to do to fix these?.

    Please try this question on the Reports forum. I know that there is a way to handle this.
    Frank

  • Report Builder 6i returns ORA-01483 in after parameter form trigger ?

    Can anybody help me ?
    I've been working on a report with report builder 6.0.8.11.3,
    and whenever i run the report the after parameter form trigger
    returns REP-1401 and following ORA-01483.
    I've been trying to change the values of some user parameters
    from within the trigger code, none of them is a date or a number
    parameter, these are character variables who would be referenced
    lexically to change a table name dynamically when the trigger
    fires. Aditionally I'm using a cursor to obtain data and then
    modify the parameters.
    How can i get this thing to work ?
    Thanks in advance for your reply...

    hello,
    this might be related to the usage of number(1) as type/length
    of your parameter. this is a known problem. it should be solved
    by using e.g. number(2) as the type/length of your parameter.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • JSP HTML parameter form to call report - Dependent  drop down list

    I have a report parameter form developed using HTML & JSP to call oracle reports6i.
    First parameter "STATES", Second Parameter "CITY"
    I have a master-detail relation betwen STATE & CITY table.
    I want the parameter form drop down lists dependant. ie if the user chang STATE value in the first drop down, the second drop down list CITY shoud
    change automatically.
    Please help
    Thanks
    Vimal

    Vimal,
    This is not functionality that's available in the Reports generated parameter form. In order to do this you'll need to build the parameter form yourself as a true HTML form and code the javascript to link the fields.
    Hope this helps,
    Danny

  • Problem in reports6i parameter form customization

    I am calling report developed under reports6i using rwservlet from j2ee web application. I was able to successfully customize the parameter form internal to report using Report Escapes properties, Before Form value and After Form value. I am using header.htm and footer.htm to render header and footer related html. I am able to use style sheet file also. Everything is working fine with this file. But when I try to repeat the same changes to another report (rdf), it is not taking the changes. No matter what I do, report is taking the settings from parameter form builder tool. When I run the report outside of web ie., from report builder, it is showing the parameter fields and labels I have made changes to, but when I run as web report it is taking the parameter fields and labels that report builder tool has. I am frustrated and do not understand, everything working fine with one report is not working with the other. Is that a bug? or am I missing something? Please help. I really appreciate your help.
    Thanks in advance,
    Raju

    Thanks Philipp for the response. Yes I verified whether server picking the changes. That's how I found its only picking from the parameter form builder. Whatever changes I made to the actual parameter form I was not seeing. But I was seeing whatever changes I made in the parameter form builder. I do not want to use parameter form builder wizard. It's kind of weird and that's why I do not see logic behind what's going on? I am wondering is it a bug in the reports developer tool. I am using oracle reports6i (Report Builder 6.0.8.11.3).
    Thanks,
    Raju

  • Oracle Reports 10.1.2.3 output shows question marks, parameter form shows correct Arabic

    Hi
    Following is our environment
    Oracle Application Server     10.1.2.3.0
    Microsoft Windows 2003 Enterprise Edition Service Pack 2
    Oracle Database 11.2.0.2.0
    NLS_LANG     AMERICAN_AMERICA.AR8MSWIN1256
    When client runs the report on browser (IE), the parameter form appears fine with Arabic characters.
    Inserting the parameters in Arabic also look fine and characters display in Arabic but when report is generated, the output shows the inserted parameters as ????
    On server, regional settings are ALL Arabic. Also the registry has NLS_LANG setting of AMERICAN_AMERICA.AR8MSWIN1256.
    Report output is same for both html and pdf formats. For PDF subetting, uifont.ali file has been modified but the issue does not seem to be PDF related since the html format reports also shows ???
    It is a 3 tier setup hence there is no question of having NLS_LANG registry settings for client PCs that are running Windows OS with Arabic regional settings that match the server.
    Interestingly, the same report when run from a different application server having same architecture runs fine. The other application server has exact same version of OAS. Database supports Arabic and is configured as such.I tried comparing the different configuration files on both servers but apparently I cannot find the place where I should change something for the reports to show correct Arabic.
    SELECT * FROM NLS_PARAMETERS
    WHERE parameter IN ('NLS_CHARACTERSET','NLS_LANGUAGE');
    NLS_LANGUAGE
    AMERICAN
    NLS_CHARACTERSET
    AR8MSWIN1256
    I am writing this after doing quite some research but seems like I am unable to find a solution to this.
    Any help will be appreciated.

    Thank you Paul for your reply.
    I think you misunderstood me. I understand that it is all volunteer work and I never said I was looking for "quick" or "sure" response. I did not even use the words IMMEDIATE or URGENT in my post. I found it strange because I personally believe that there are many volunteers providing great support to others and yet my post somehow went unnoticed. In my personal opinion, however, if you do not wish to reply then you should just ignore rather than being rude. No one can force anyone to do the good work that people are doing here at oracle forums and they are all doing this out of choice. Let me also assure you that me and people like myself really appreciate their efforts.
    Having said that, I wish you had taken time to read about my issue. There is infact a registry setting that specifies the NLS_LANG and it is already set under both Infrastructure and Middle Tier in the registry. I mentioned it earlier. The value is AMERICAN_AMERICA.AR8MSWIN1256 and I believe this is correct for Arabic characters.
    What is confusing for me is the fact that if browser was not capable of showing Arabic characters then the static Arabic words in the reports layout (field name for instance) would also show as garbage or question marks. They appear to be fine. Since we are just passing some parameters in Arabic language and not saving anything in the database, the DB characterset does not come into play for now. Although the DB characterset is also set to store Arabic data. We are displaying the parameters that we are passing through the parameter form in the output of the report and this is where we see question marks (????).
    Finally, if it was a browser issue or a DB characterset issue, then in my limited knowledge, I believe that the report that we are running using the other Application Server that is pointing to the same database should also show the same behaviour. That is not the case as it displays the same report perfectly. Client machine is the same in both cases using Windows 7 and IE as browser.
    http://appserver1/reports/rwservlet?admin/myreport           (connecting to db1)    works fine
    http://appserver2/reports/rwservlet?admin/myreport          (connecting to db1)     show question marks
    Above URLs are examples. The point I am trying to make here is that the issue has to be with the new application server and it cannot be registry settings as I have double checked the entry and it exists in all Oracle Homes ie Infrastructure and Middle Tier. So maybe it is some configuration file setting that I am missing here.
    Any help will be appreciated.

  • Multi value select LOV in report builder 10g parameter form.

    Hi All,
    I have a requirement to show a set of records by getting user input through the report parameter form.
    employee Table.
    emp_id emp_name
    1 A
    2 B
    3 C
    4 D
    5 E
    In the report i am getting emp_id input from the user through list of values (LOV query is "select emp_id from employee where emp_id =:emp_id").
    This condition is working for me. now user want to select multiple emp_id from the LOV. so that the sql query will get the related records from the employee table.
    so the LOV query will work like the following "select emp_id from employee where emp_id in (:emp_id)".
    can enybody help me to acheive the above.
    Thanks
    Leo.
    Edited by: user13359272 on Oct 24, 2012 5:25 AM

    By all means feel free to post your question as often as you like!
    In webforms DDE runs on the middle tier; it might do what you want against your local OC4J now, but it surely won't open a thing when you run it against an application server.
    Maybe you should enlighten us with your requirement, maybe there is a better solution for your problem.
    cheers

  • Not getting Reports Parameter Form in web-forms environ

    I am not able to get a report parameter form to appear for a
    report called from forms via a 'run_product' command. It works
    fine in client/server mode. In web-forms the report just goes
    ahead and runs without the needed parameters. I have tried
    explicitly passing a parameter list with the 'paramform' set to
    'yes' and this did nothing. I have this on a NT box with latest
    Dev2 patches applied.
    1. Is the reports parameter form supposed to work in web-forms
    mode?
    2. How do you set it up to work, if it is supposed to work?
    Thanks for any replies.
    null

    I guess you have to use web.show_document - I found this article
    on DevConnect:
    Article-ID: <Note:68647.1>
    Circulation: PUBLISHED (EXTERNAL)
    Platform: GENERIC Generic issue
    Subject: How to show Reports HTML PARAMFORM when
    calling Reports
    from Forms
    Modified-Date: 09-AUG-1999 18:02:04
    Document-Type: BULLETIN
    Content-Type: TEXT/PLAIN
    Impact: MEDIUM
    Component: SQLREP
    PURPOSE:
    This bulletin explains how to overcome the current restriction
    of calling an Oracle Report from Oracle Forms and showing a
    PARAMETER FORM. This is currently not possible when using the
    RUN_PRODUCT built-in with
    WEB DEPLOYED APPLICATIONS.
    DESCRIPTION:
    When you call an Oracle Report from Oracle Forms using
    RUN_PRODUCT in Client-server, you can specify an optional
    parameter called PARAMFORM to display the parameter form defined
    in the Oracle Report.
    For web-deployed applications, the PARAMFORM parameter can be
    set to HTML to produce a HTML version of the parameter form.
    When calling Oracle Reports from an Oracle Form using
    RUN_PRODUCT and specifying PARAMFORM=HTML in the parameter list,
    the Oracle Reports parameter form doesn't show the in the client
    browser. If the Oracle Reports Cartridge/CGI is used and
    PARAMFORM=HTML is specified, then the Oracle Reports parameter
    form does appear in the client browser.
    Oracle Forms does not use either the Cartridge or the CGI with
    RUN_PRODUCT, and it's these thin clients that produce the HTML
    Oracle Reports parameter form.
    As a workaround to this problem, you can use either the
    Cartridge or the CGI with the WEB.SHOW_DOCUMENT Oracle Forms
    builtin. This does require either the Oracle Reports Cartrige
    or the CGI to be installed. Neither of these are necessary if
    the parameter form isn't required.
    INSTRUCTIONS:
    The following items need to be installed:
    1. Oracle Reports Multi-tier Server.
    2. Oracle Reports Web Cartridge
    or
    Oracle Reports Web CGI.
    Here is a typical URL that can be specified in a browser
    to run a report using Oracle Reports Cartridge implementation:
    http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+
    destype=cache+desformat=html+userid=scott/tiger@mydb+paramform=ht
    ml
    For CGI implementation:
    http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html
    The Oracle Reports parameter form now is shown. This can be
    used with WEB.SHOW_DOCUMENT issuing the request to execute the
    report to the Oracle Reports Multi-Tier Server instead of using
    RUN_PRODUCT.
    The following code may be added to a program unit, which then
    issues the request to run the report:
    IF get_application_property(user_interface) = 'WEB' then
    /* Use Cartridge configuration with WEB.SHOW_DOCUMENT. */
    WEB.SHOW_DOCUMENT('http://your_webserver/r30ows?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    /* OR for CGI configuration. */
    WEB.SHOW_DOCUMENT
    ('http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
    server=repserver21+report=emp_30.rep+destype=cache+desformat=html
    userid=scott/tiger@mydbparamform=html', '_self');
    ELSE
    /* use RUN_PRODUCT for client-server with PARAMFORM=Yes. */
    Add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'YES');
    RUN_PRODUCT
    (REPORTS,'emp_30.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid);
    END;
    RELATED DOCUMENTS:
    Developer/2000: Guidelines for Building Applications, Deploying
    Applications on the Web (for detailed instructions on setting up
    the Oracle Reports Cartridge and CGI)
    Laura (guest) wrote:
    : I am having the same problem with Dev 6 on NT. The parameter
    : screen for reports works in client/server but not web using
    run-
    : product. I am getting error REP-0788: Warning the value of
    the
    : restricted LOV parameter is not among the selectable values.
    : Any reports without a parameter screen work fine with run-
    : product.
    : Any help would be appreciated.
    null

  • Making parameter form appears

    Dear All,
    i have a problem regarding showing parameter form that made by report developer when i call the report from my form
    first i use winXP sp3, database 10g ,developer suite 10g
    the problem is as follow:
    the report run perfectly from report builder and the parameter form appears but when i call the report from the form the report appears without parameter form screen and this make report empty
    notice1 :  i call any other report it is appears successfully
    in a short way (how can i make report parameter form appears when i call it from a form )
    i call the report through the following procedure
    procedure open_my_report (p_repname varchare2) is
    report id  report object;
    reportserverjob varchar2(100);
    report_status varchar2(20);
    begin
    report_id := find_report_object('myreport');
    set_report_object_property(report_id,REPORT_FILENAME,'c:\developersuitehome_1\reports\'||p_repname||'.rep');
    set_report_object_property(report_id,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    set_report_object_property(report_id,REPORT_DESTYPE,FILE);
    set_report_object_property(report_id,REPORT_DESNAME,'c:\reports\'||p_repname||'.pdf');
    set_report_object_property(report_id,REPORT_DESFORMAT,'pdf');
    set_report_object_property(report_id,REPORT_SERVER,'rep_raysoft');
    reportserverjob := run_report_object(report_id);
    if rep_status = 'FINISHED' then
    copy_report_object_output (reportserverjob,'c/'||prepname||'.pdf');
    host('c/'||prepname||'.pdf',no_screen);
    message('report '||p_repname||' completed successfully');
    else
    message('error when running '||p_repname||' report .');
    end if;
    end;
    notice2: i try to activate the parameter form by adding this line in the procedure
    set_report_object_property(report_id,REPORT_OTHER,'paramform=yes');
    but it desn't make any differance
    so i will be so apreciated if anyone can help me
    thanks
    regards
    yasser elbighily

    Dear All,
    thanks for your attention
    really i modify my code to be appear as follow
    PROCEDURE OPEN_MY_REPORT (p_repname Varchar2) IS
    v_report_id Report_Object;
    vc_ReportServerJob VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    v_reportservername VARCHAR2(50):='rep_raysoft'; /* THE NAME OF THE REPORT SERVER*/
    vjob_id VARCHAR2(100); /* job_id as number only string*/
    BEGIN
    /* Get a handle to the Report Object itself. */
    v_report_id:= FIND_REPORT_OBJECT('MYREPORT');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,'C:\DevSuiteHome_1\reports\'||p_repname||'.rep');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,FILE);
    /* Define the report output format and the name of the Reports Server
    as well as a parameter form to be displayedwhen required. */
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,v_reportservername);
    if p_repname = 'REPCENTERSPREADING' then
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=yes');
    else
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'paramform=no');
    end if ;
    vc_ReportServerJob := RUN_REPORT_OBJECT(v_report_id);
    message(vc_ReportServerJob);
    message(vc_ReportServerJob);
    vjob_id := substr(vc_ReportServerJob,length(v_reportservername)+2,length(vc_ReportServerJob));
    message(vjob_id);
    message(vjob_id);
    /* If finished, check the report status . */
    vc_rep_status := REPORT_OBJECT_STATUS(vc_ReportServerJob);
    IF vc_rep_status='FINISHED' THEN
    /* Call the Reports output to be displayed in a separate browser
    window. The URL for relative addressing is valid only when the Reports
    Server resides on the same host as the Forms Server. For accessing a
    remote Reports, you must use the prefix http://hostname:port/ */
    WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||'?server=rep_raysoft','_blank');
    ELSE
    message ('Report failed with error message '||vc_rep_status);
    END IF;
    END;
    and it helps me to display the parameter form but i face another problem that is when i enter values for my parameter it gives me the following error
    REP-52007: Parameter form format error.
    note: i test the report directly from report builder and it work successfully without any problem
    so can anyone help me please
    yasser elbighily

  • Parameters that do not show up on default parameter form

    Reports upgraded to 6/6i from SQL*ReportWriter/Oracle Reports 2.5 contain parameters that both do and do not show up on the default parameter form.
    Is there any property that can be set in the Object Navigator to disable or enable a parameter on the default parameter form. I know I can create a parameter form and specify which parameters are on it, but user created parameter forms look a bit different from the default parameter form in character mode.
    null

    You can read "Selecting parameters to include in the Runtime Parameter Form" topic in the Reports on-line help.
    I hope this will help you.
    Helena

  • Parameter form using LOV based on SQL  to pass param to Discoverer portlet

    Hi all
    I have a design issue:-
    I want to create a parameter form in Oracle Portal to allow users to select the department using searchable LOV (like the torch that is there in various oracle products) and pass the selected parameter to the Oracle Discoverer worksheet portlet. The LOV values is required to come from a SQL query which in turn is dependent on User_name varia ble from the session.
    I am looking for any out of the box portlet which can be configured to achieve the same. Any help or pointers in this regard would be greatly appreciated.
    Thanks
    Puneet

    Hi,
    Please refer to the answer in this question Re: OC4J Memory question
    It is similar to your requirement.
    Thanks,
    Sharmila

  • Report Parameter form not showing list of values in Report svr

    I was using reports 6i where I used to have list box in report parameter form. I now converted recompiled my reports in 10g and when I run I am not geting the list of values. I get the values as a list below the field
    ex.
    ITEM :___________
    box,book,pencil,rubber,
    dvd,floppy...
    previously it was coming as a list in the item field
    thanks
    MG

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/params/pmp_creating_list_of_values.htm?tp=true
    If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field.
    Regards

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

Maybe you are looking for