Adding Additional Parameter in Oracle Reports -- Is this Possible?

Hi,
Please help me with this predicament: There are several reports being called through a single form, wherein a common parameter list is being used. Now I need to add another parameter called BLANKPAGES to one report only. Is it possible for me to put this script inside that one report's trigger?
ADD_PARAMETER ( pl_id , ' BLANKPAGES ' , TEXT_PARAMETER , ' NO ' ) ;
What are my other options?
Thanks in advance,
Jansen

Try this
if :report_name = 'NEW_REPORT' (user substr if needed) then
ADD_PARAMETER ( pl_id , ' BLANKPAGES ' , TEXT_PARAMETER , ' NO ' ) ;
end if;

Similar Messages

  • How to pass Parameter to Oracle Report from portal

    Dear All
    I create a report use Oracle Report, and the file name is "Account.rdf"
    This report have a start date parameter and a end date parameter. I put this
    report to the report server, and then add a new entry to the cgicmd.dat file,
    so i enter the URL into IE and pass the start date and end date parameters to
    the report.
    And now, i want to put this report into portal, but how can i config the
    start date parameter and the end date parameter?? i want provide a interface
    to the end-user, so user can select which date he want to display. It is
    possible?? How can i config?? Would you give me some idea.
    Thanks for your help.
    Tony

    You will have to Register your .rdf in Oracle Portal. The following document gives details.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=170178.1

  • Pass a ViewObject as a data parameter into Oracle Reports

    Can I pass a ViewObject as a data parameter in an Oracle Reports jsp Report?

    you can use impliment this script to your query get data from file
    function AfterPForm return boolean is
    infile text_io.file_type;
    linebuf varchar2(3000) := '';
    filename varchar2(100);
    v_employee_id varchar2(2000);
    begin
    filename := :P_file_name; /* you can pass the file name like this c:\temp\test.txt */
    infile := text_io.fopen(filename,'r');
    loop
    text_io.get_line(infile,linebuf);
    v_employee_id := v_employee_id| |linebuf| |' ';
    end loop;
    if text_io.is_open(infile) then
    text_io.fclose(infile);
    end if;
    exception when no_data_found then
    text_io.fclose(infile);
    v_employee_id := replace(rtrim(v_employee_id),' ',',');
    :p_employee_param := 'and employee_id in ('| |v_employee_id| |')';
    /* you can use either 'where employee_id in ('| |v_employee_id| |')' or
    'and employee_id in ('| |v_employee_id| |')' */
    return (TRUE);
    end;
    I think it will help you to solve your problem. Do not forget to put &v_employee_param
    Good Luck
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by gvardhan:
    The file will have one EmployeeID per line as follows
    100
    200
    ...<HR></BLOCKQUOTE>
    null

  • Lexical Parameter in Oracle Reports . . .

    Hi all,
    I am trying to pass a value to a query in oracle reports . . .
    the use of the parameter is to add 2 additional columns to an existing query, if a bind parameter is set to 'Yes' else the parameter carries a value NULL;
    Here is the code I have written in After Parameter Form:
    if :P_ROLL_DETAIL_PRN='Yes' then
    :P_CUSTOM_CODE:=NULL;
    :P_CUSTOM_CODE:=:P_CUSTOM_CODE||'wdd.LOT_NUMBER' ||','||'wdd.SUBLOT_NUMBER';
    else
    :P_CUSTOM_CODE:='';
    end if;
    P_Roll_detail is the bind parameter . . and P_CUSTOM_CODE is the Lexical Parameter . ..
    It works for value 'No' of P_ROLL_DETAIL .. . but for Value 'Yes' I get an error . . .
    REP-0499: Column '' selected by the query is incompatible with report defination
    Kindly help...
    Regards
    Jagan

    Lexical parameters can not be used to change the number of selected columns. Consider selecting max number of columns always, but populating last two columns with either NULL values or table columns based on the parameter. Also, manipulations can be done in the layout model using format triggers.

  • Blank report viewer control when adding a parameter to rdlc report

    Hi guys,
    I am currently generating a rdlc report in Visual Studio 2010 and embedding it into an asp page using a reportviewer control. My dataset is based on entity framework. The report runs fine and returns plenty of data in the format I want.
    Whenever I add a parameter to the report the reportviewer control on my page is just blank.
    I'm setting the parameter "available values" from a field in the same dataset used to generate the report but even if I add an empty parameter with no available values the reportviewer control is still blank.
    This is the same in both Internet Explorer 8 and Firefox 5.
    Any ideas where I'm going wrong?
    Thanks in advance.

    Hi,
    please check your report viewer property and make sure the parameter prompts property is true in your code
    rvReportViewer.ShowParameterPrompts =
    True

  • How to use LIKE function with a parameter in Oracle REPORT builder??

    how could i use parameter inside a LIKE function in Oracle reports builder?
    it works in SQL plus, but not in report builder!!
    Example:
    select code,desc from item_master where desc
    like '%&give_desc%'; ---works in SQL
    like '%:give_desc%' ---doesn't work in report builder!!

    Hi Renil,
    You will need to use the wildcard character (%) and the concatenation character (||) to join to your user parameter.
    i.e. like '%'||:give_desc||'%'
    Regards,
    John

  • Oracle forms is this possible?!?

    hi, all.
    I am a java developer and i am not familiar with oracle forms 10g.
    Recently i had a project about digital signing of web forms(on java). So the idea was: We have applet that runs in the client browser, it uses the JSObject to collect all input fields and it's values from CUSTOM web form and create xml document, that must be signed. This applet is like a lib.
    I must do the same thing with a oracle form.
    Is this possible: collect the oracle form's items on the client??? The form is custom i.e. unspecified items and count items.
    If this is possible the next step is to verify the signed xml on the server. So how does oracle forms work. Is there a server side. What is the architecture? Could the xml be passed to the server and how the oracle form's items must be accessed on the server(i need them to verify the xml).
    I will be glad if you could help me soon.
    Excuse me for my bad english :(.
    Best regards.

    What do you mean? :( As i said i am not very familiar with oracle forms.
    Here is simple scenario of usage:
    Oracle developer creates a oracle form. In some way i have to deliver for example jar. He adds it to to his project and in some way specifies that that jar signes his form.
    The form is in module so i guess i have access to it.
    What i learned for now is that there are VBeans that could help to do this(item collection). I found that this beans are graphical components too i.e. we can place awt Componets in them, but may be i don't need to use them. I read that the VBean is on the middle trier, but when i wirte JOptionPane.showMessage(..) it is displayed on the client i can't understand why. I need to collect the items in the form not in the bean.
    The question is can i collect in some way the form's items on the client. Oracle form runs in some applet could this help me? Totally confused. The documentation for oracle forms is very unclear for me.
    I forgot to say that there are some classes in the oracle forms lib like "RadioButtonItem", TextFieldItem and so on. Are theze coresponding to form items? May do some connection between them?!?
    Edited by: user9536806 on Oct 1, 2008 3:06 AM
    Edited by: user9536806 on Oct 1, 2008 3:11 AM

  • Need help on passing a parameter in Oracle report

    Hello guys ...i Have a custom report which takes..TRX number and Org id as input Parameters.where TRX number is mandatory and ORg id is optional.
    here is my question ..if i dont pass the org id,it should take the id of the Organization where i am running the report.how can this functionality achieved...
    thanks....

    Hi,
    You can use NVL function in form, where you are passing the parameters. So replace the *:ORG_ID* with
    NVL(:ORG_ID, :CUR_ORG_ID). Or If you are saving the current Org_id in a table / passing it to the report using another parameter, you can do the same in the report also.
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • How to define Lexical Parameter in Oracle report.

    Dear all,
    I need to know that how i will define lexical parameter in query of report builder
    i have like this
    SELECT R.EXCEPTION_MESSAGE EXP_MESSAGE,
    ER.PROD_ID PRODUCT,
    ER.TNAME SEGMENT1 ,
    DECODE(R.STATUS,'Y','ROW',
    'L','TABLE',
    'Z','CIB LEVEL',
    NULL) STATUS,
    NVL(COUNT(*),0) CNT
    FROM EXCEPTION_RECORDS ER,CIB_PROC_TABLES_RULES R
    WHERE ER.TABLE_ID=R.CIB_TABLE_ID
    AND ER.EXP LIKE '%'||R.EXCEPTION_MESSAGE||'%'
    AND ER.BRWR=:v_brwr
    &v_where
    GROUP BY R.EXCEPTION_MESSAGE,ER.PROD_ID,ER.TNAME,R.STATUS
    ORDER BY 2
    It is giving an error

    V_WHERE should be defined same way as regular parameter. It should acquire certain value that makes the query syntaxically correct bofore the sql is run, usually in the After Param Form trigger, e.g.
    v_where := 'WHERE 1=1';
    ...

  • About passing multiple values in parameter for oracle report

    https://docs.google.com/file/d/0B0dx7wf68mD0QzdpbWU4UGNURTQ/edit
    Hi all,
    i want to pass multiple value using , to separate them 1,2,3....
    here is my query
    SELECT DISTINCT
    oh.header_id
    ,oh.org_id
    ,to_char(oh.ordered_date,'DD-MON-YYYY') d_date
    ,to_char(oh.ordered_date+31,'DD-MON-YYYY') d_validity
    ,oh.ship_to_org_id
    ,oh.invoice_to_org_id
    ,oh.cust_po_number d_po_num
    ,rcust.customer_id AS customer_id
    ,oh.order_number d_salesorder_no
    ,oh.cust_po_number d_project
    ,oh.attribute1 second_addr
    ,oh.attribute2 remark1
    ,oh.attribute3 remark2
    ,substr(oh.transactional_curr_code,1,3) as currency
    ,tyl.name ordertype
    ,oh.salesrep_id
    ,rat.name as d_payment_term
    ,rat.description d_payment_desc
    ,rsa.name
    ,rsa.email_address as sales_phone
    ,rcust.customer_name||' - #'||rcust.customer_number d_to_custname
    ,rcust.customer_name d_cust_sign
    ,rcust.attribute1
    ,rcust.customer_number
    -- ,raddr.ship_to_flag
    ,oh.sold_to_contact_id AS attn_id
    ,rcust.party_id
    ,tyl.name AS SO_type
    -- ,net_org.ORG_LOGO
    FROM
    oe_order_headers_all oh
    ,ra_customers rcust
    ,ra_addresses_all raddr
    ,ra_site_uses_all rsite --double_line
    ,ra_terms rat
    ,hz_party_sites hps
    ,hz_contact_points hcp
    ,ra_salesreps_all rsa
    ,oe_transaction_types_tl tyl
    -- ,apps.ar_contacts_v acv
    -- ,net_org
    WHERE oh.sold_to_org_id = rcust.customer_id
    AND oh.payment_term_id = rat.term_id(+)
    --AND        rcust.customer_id = acv.customer_id(+)
    AND oh.salesrep_id = rsa.salesrep_id
    AND oh.order_type_id = tyl.transaction_type_id
    AND rcust.party_id = raddr.party_id
    AND raddr.address_id = rsite.address_id
    AND rcust.party_id = hps.party_id
    AND hps.party_site_id = hcp.owner_table_id(+)
    AND hcp.owner_table_name(+) = 'HZ_PARTY'
    --AND        hcp.contact_point_type (+)='PHONE'
    AND tyl.LANGUAGE = userenv('LANG')
    --AND          raddr.ship_to_flag IS NULL
    AND upper(tyl.name) in ('SW SALES CONTRACT','SW-NSC SALES CONTRACT','TILES SALES CONTRACT','VBP SAMPLE ORDER', 'VBP INTERNAL ORDER')
    AND oh.order_number =:P_CONTRACT_NO
    and oh.org_id = :P_ORG_ID
    --and            net_org.org_id = :P_ORG_ID
    &CP_Param
    and after para form
    function AfterPForm return boolean is
    begin
    :CP_Param := 'where oh.order_number in ('||:P_CONTRACT_NO||')';
    return (TRUE);
    end;
    it said ora-00933 but my query can run i dont need the multiple values para, can anyone help me how to modify the report so it can pass multipel values thanks

    HI I tried changing the parameter width to a larger value, it can output , and the field where I show the order_number i used source P_CONTRACT_NO,
    it will display as 102005000,102005001 and I also tried using the column from the query directly, it will be separated , it has some other problem
    I have the header part and main part,
    and also there are page numbering, with the order number field set as order_number it will output single number , but the page order is wrong
    102005000,102005001 will be like header page: 102005000 1/4 102005001 2/4, main page 102005000 3/4, 102005001 3/4
    DO you have any idea how I can set the page numbering setting so it will output as header page:102005000 1/2 102005000 2/2
    header page:102005001 1/2 102005001 2/2
    ?? thanks

  • Hierarchy Report - is this possible through Crystal Report???

    Hello friends
    We have a requirment as follow:
    In Row : Hierarchy
    In Column: Qty
    we have 3 levels of hierarchy: level1 , level2 and level3
    we want level1 in row and rest two levels in column along with qty
    Row: :Level1
    Col: Level2, Level3, Qty
    please let me know whether its possible through Crystal Report or not,,,I tried out this in BEx (BW) but we cant do that

    Hi Aloke,
    This is possible,
    Create a group on Level1
    In Detail place Lavel2 ,Level3,Qty
    You may insert totals if required.
    Thanks,
    Sastry

  • Hierarchy Report - is this possible through BO???

    Hello friends
    We have a requirment as follow:
    In Row : Hierarchy
    In Column: Qty
    we have 3 levels of hierarchy: level1 , level2 and level3
    we want level1 in row and rest two levels in column along with qty
    Row: :Level1
    Col: Level2, Level3, Qty
    please let me know whether its possible through BO or not,,,I tried out this in BEx (BW) but we cant do that
    Edited by: Alok Kashyap on Feb 2, 2009 9:03 AM

    Hi Alok,
    As I understand you want to set different levels of hierarchies for different Columns objects in the report.
    BO doesnu2019t have the concept of Row and Column Level Hierarchy because when you select any value BO Select all values in column we canu2019t refer any single value in column and we canu2019t refer all related values as record thus Row level hierarchy is not possible.
    You can use Custom Hierarchies to set different hierarchies for different objects.
    Lets Say you Want Object in  Column A to follow Level 1 include that object in Level1 Hierarchy.
    Define Level 2, Level 3 Hierarchy and Include Object in Column 2 in those hierarchies thus Column 2 follows Level 2 and Level 3 Hierarchy.
    When there is confusion about which Hierarchy Level  to follow when at same level it asks user which way to go.
    I Hope this Helpsu2026
    Thanksu2026
    Pratik

  • Crystal Reports 2008 SP3 Additional parameter values are needed

    I recently upgraded to Crystal Reports 2008 SP3, and now when I try an export a report from the Crystal Reports Designer, I get the error "Additional parameter values are needed before this report can be saved or viewed with data.  Click 'Ok' to enter the missing values or 'Cancel' to proceed without data".  I am trying to export the report to Crystal Reports format.  The report is getting data from a MS SQL 2005 stored proc. I tried building a new simple report (just took all the fields in the result set and put them in the details section) using the same stored proc, and get the same error when I try to export.  
    FYI, before I try to export I always preview the data in the report, so the parameters are defiantly set correctly.
    This was working correctly in Crystal Reports 2008 SP2.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Error deploying oracle report JSPs in Jdeveloper.

    Hi,
    I am trying to deploy and run a report created using oracle Report tool(comes with oracle 10g developer suite). I did the below steps.
    1. I created a web layout report in oracle reports tool.
    2. Open Jdeveloper (which comes in developer suite).
    3. Create a new project in Jdeveloper. selected to create new "report component" from new. Copied my oracle report to this jsp page.(Report run time was automatically added to the libraries of the project created)
    4. Run using embedded oc4j and report was successfully run.
    5. Created a deployment profile for WAR. Created a war successfully. Then created an EAR.
    6. Right click deployment profile and configured standalone oc4j connected(connection1). Tested the connection. The test connection was success.
    7. Then right clicked the deployement profile and clicked deploy to connection1.
    8. The EAR file was deployed but in the standalone OC4J, it is showing few errors.
    07/05/02 17:04:47 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:04:47 Errors parsing jar:file:/D:/OC4J/j2ee/home/applications/webapp1/webapp1/WEB-INF/lib/reports_tld.jar!/META-INF/taglib.tld
    07/05/02 17:06:11 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:06:11 Error: loading Tld's into cachedConfigTable: null
    Can anyone tell me how to correct this error?
    -regards,
    K
    6.

    I can successfully deploy the EAR after including the Report Runtime in the dependencies of the deployment profile in Jdeveloper. But I am getting the below error.
    Reports Error Page
    Wed May 02 18:35:53 GMT+05:30 2007
    java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.reports.rwclient.RWClient.getTrace(RWClient.java:1321)
         at oracle.reports.jsp.JspTagUtil.getRWClient(JspTagUtil.java:59)
         at oracle.reports.jsp.RwTag.setPageContext(RwTag.java:54)
         at oracle.reports.jsp.ReportTag.setPageContext(ReportTag.java:101)
         at oracle.jsp.runtime.OracleJspRuntime.getTagHandler(OracleJspRuntime.java:1298)
         at MyReport.jspService(_MyReport.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Any help?
    -K

  • Passing SQL-Parameters to Oracle-Reports from java

    hello,
    i want to write an application in the following way:
    on a java-frontend an user can select values for different
    parameters. these values should be to transferred to the sql-
    query of the reports rdf file. what is the syntax of an
    parameter passed from java to oracle reports.
    does this work with runtime.exec()... ?
    does anybody have an example.
    any help would be very appreciated.
    greetings
    Thorsten Lorenz

    In order to pass the parameters to report rdf, you can create user parameters in the oracle report builder, hook up the parameters with query. For example, you can create user parameter P_DEPTNO, then create a sql query: select * from dept where deptno = :P_DEPTNO. When you run this report, you give P_DEPTNO=10 as parameter, the rdf will generate report that only prints out department 10's information.
    Once you have this kind of report created, you have several ways to achieve what you want.
    1. use rwrun60. In your java program, you can invoke rwrun60 via runtime.exec(cmd) where cmd = rwrun60 report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
    2. similarly, use rwcli60. the cmd would be:
    cmd = rwcli60 server=repserver report=dept.rdf userid=scott/tiger@orcl destype=file desformat=pdf desname=dept.pdf p_deptno=<value_from_java_app>
    3. use rwcgi60. Instead of using runtime.exec, you should use java URL object to run the report in the web environment.
    option 2 & 3 takes advantage of powerful functionality of reports server, and it is much more scale than option 1.

Maybe you are looking for

  • Strange error in online Adobe form for the date field

    Hi Experts, I am facing strange problem with online Adobe forms. I could able to save data when i click save button on the form. But some times in the form the date field is throwing error message 'MMDDYYYY field is invalid' when i click on save butt

  • Need to stop posting a line item in PR using BADI ME_PROCESS_REQ_CUST

    Hi All, I have a requirement to check the combination of the GLaccount and project and if the combination is not allowed i need to show an error message and to stop the user from saving the Purchase Requisition. For this i have coded in BADI ME_PROCE

  • 10.2.0.4 Patch problem

    Hi all very good morning, i have installed Oracle 10.2 on Linux and up on that i have applied 10.2.0.4 after all these i was creating database through DBCA. at 84% it is giving a warning. Warning is: Error securing Database Control, Database Control

  • Could not complete -- command, not enough memory(RAM)

    I usually have 16GB of RAM but because of some issues I must work with 4GB RAM for the moment. I recently installed Mavericks on my macbook pro, and also Photoshop CC, and never had any problems. But since I use the 4GB photoshop is giving me a hard

  • DUAL SIM PHONE OPTIONS

    I need to get a dual sim phone so that i can have my own personal mobile sim in it and my work mobile sim in too However, I need the option to be able to USE ONE SIM ONLY , so that I can 'turn off' my work mobile when I am not working. I was looking