How to is lexical paramter in oracle reports

I have a query like,
select * from t1 where &c1=:v_srep;
where t1 is tablename
c1 is column name
How do I create &c1 and how should I populate it ?
Thanks,

Pl see
How to use lexical paramter in oracle reports

Similar Messages

  • How to use lexical paramter in oracle reports

    I have a query like,
    select * from t1 where &c1=:v_srep;
    where t1 is tablename
    c1 is column name
    How do I create &c1 and how should I populate it ?
    Thanks,

    From Oracle 8.1.5 database, we can use dynamic ref cursors.
    With dynamic ref cursor we can really avoid the use of lexical parameters in Reports.
    With static ref cursor this is not possible in all cases.
    For example, if we need dynamic WHERE, we practically can't use static ref cursor.
    But, problem is that Reports needs static ref cursor type for building Report Layout.
    Solution (as i know, first published in my post in MetaLink Reports Forum,
    thread "Report based on Ref Cursor or PL/SQL Table", 24-Aug-01) is:
    in package specification we must have both ref cursor types,
    static for Report Layout and dynamic for ref cursor query.
    Dynamic ref cursor examples:
    "Dynamic Table in the Second Query with Oracle Reports"
    http://www.quest-pipelines.com/pipelines/plsql/tips03.htm#JULY
    "Using a Collection Instead of a Temporary Table in Complex Reports"
    http://www.quest-pipelines.com/pipelines/plsql/tips03.htm#NOVEMBER
    Regards,
    Zlatko Sirotic

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

  • How to generate Excel files in Oracle Reports

    Hi,
    I've already built a JSP using oracle reports and Deploy on the report service. I also add a button to the left of the JSP.The next thing I want to do is:when user click on the button, the system will prompt a excel file contains the same content as the JSP file.
    Can anybody teach me how to do? Thanks very much

    Hi Ni,
    It may not be possible to see the output of the SAME report in Excel as well. You will have to design another report which can open in Excel. You can follow this demo:
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/excel/index.html
    Then you can add an action to your button so that it opens the new report in a new browser window. This new browser window will open MS Excel and show the report inside Excel.
    The reason that you can't output the SAME report in HTML as well as MS Excel is because we use page contentType to specify the application that the browser should open the document in (the application can be MS Word, MS Excel, etc). For example,
    <%@ page contentType="application/vnd.ms-excel" %>
    But we can only specify one contentType for a JSP, so the report can either be viewed as HTML or inside MS Excel.
    Navneet.

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

  • How to type chinese character in Oracle Report builder 6i?

    Hi,
    Does anyone know how to include the chinese character in the rdf file under Oracle Report Builder 6i?

    Hi,
    please check with this link
    [https://blogs.oracle.com/ankitkaushik/entry/displaying_multilingual_data_i ]
    Hope this link will help you
    Thanks & Regards,
    pallis

  • How to pass bind variable into oracle reports 6i - Parameter form

    Hello All,
    I want to pass bind variable into Oracle Reports 6I - Parameters.
    I have tried out that but got the below error :-
    rep-0781 : Bind variables are not allowed in the select statement
    Kindly help me is there any option which allow me to pass bind variables into Oracle reports 6I.
    Thanks
    HARSH SHAH

    Hi,
    may be its not possible to use :P_PARAM1 in user parameter of oracle 6i reports
    but u can full fill user requirement using oracle forms
    create a form as like as report parameter window
    then create parameter list and run report
    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, 'PARAMFORM', TEXT_PARAMETER, 'NO');
      Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id, NULL);
    END;
    thanks
    mostafiz mitul
    Dhaka Bangladesh

  • How to grant access to a Oracle Report  Program

    Hi hussein,
    I am checking/debugging our clients registered customized report program setup.
    I want to grant the program to my ID so I can test print and see its output.
    The steps I followed are the ff:
    A.
    System Administrator resp: Concurrent Program > Executable :
    Executable : CEC2CREC
    Application : ABC Customizations
    Execution Method : Oracle Reports
    Execution File Name: CEC2CREC
    B.
    System Administrator resp: Concurrent Program > Define :
    Program : Bank Reconciliation Report ( 2 Column )
    Short Name : CEC2CREC
    Application : ABC Customizations
    Executsble Method : Oracle Reports
    Executable Name : CEC2CREC
    I want to grant this program "Bank Reconciliation Report ( 2 Column )" to my USERID.
    I followed these steps:
    - Login to System Administrator responsibility
    - Navigate to Security > Responsibility > Define
    - Query the "ABC Customization" responsibility
    But I can not find any "ABC Customization" responsibility
    Is there other way to test run the program?
    Thanks a lot
    Edited by: yxes2009 on Sep 14, 2009 3:23 AM

    Hi,
    System Administrator resp: Concurrent Program > Executable :
    Executable : CEC2CRECApplication : ABC Customizations
    But I can not find any "ABC Customization" responsibility According to the above, "ABC Customizations" is an executable file (concurrent program) and not a responsibility. From (Security > Responsibility > Define), query the responsibility which is assigned to the user, and check the "Request Group" which is attached to this responsibility, then navigate to (Security > Responsibility > Request) and add "ABC Customization" request to the request group.
    Regards,
    Hussein

  • How to execute this statement from oracle reports

    have to use the following command from oracle reports.
    In oracle forms we can use the HOST command but what about oracle reports2.5.
    I have to email the attached file 100245.pdf from oracle reports to the given email id
    uuencode 100245.pdf 100245.pdf | mailx -s "test" [email protected]

    > u can execute any exe using host that host must contain a bat file
    Incorrect. There is no HOST command in PL/SQL.
    And please note that this is the Database » SQL and PL/SQL forum - and not the Oracle Forms or SQL*Plus forum.
    Also, when using the SQL*Plus HOST command for example, you can execute any executable and not just a BAT file. SQL*Plus on Windows uses the Win32 API call CreateProcess() - and it has no limits as to what/which executable can be executed.

  • How to handle UMLAUT characters in oracle reports 10g

    Hi All,
    we are facing issues while developing the report in 10g. There are few hardcoded values which have ä in it. We register these reports into Oracle Applications R12.  The report gets completed normal. But in the report output it displays as ö in (ungelöscht) or sometimes a1/2.
    Can anybody help in how to resolve this issue?
    Thanks
    Nikunj.

    please find the link i already ask this question
    [link]http://www.orafaq.com/forum/m/409062/135627/?srch=barcode#msg_409062[link]
    Hope its help you
    Regards
    Shahzaib ismail

  • How to display pagewise total in Oracle reports?

    Hi,
    I want to display pagewise total in all pages as well as report total at the last page of the report.
    I have tried Reset at : Page, Print on : All pages
    But nothing is working.
    Please suggest what else I need to set to achieve the requirement
    Thanks in Advance
    Sudeep

    Create a user parameter for line count and another to hold the value of total at end of page,
    create formula column in your query group, where the column to be summarised exists,
    See how many lines of records/transaction can be printed on your page, count them in a formula column and when the printable record been retrived assign the total to
    the user parameter you have created.
    set the property 'PRINT OBJECT ON' to 'ALL BUT LAST PAGE'
    put you summary item just below this field and set the property 'PRINT OBJECT ON' to 'LAST PAGE', the final total will be displayed on last page.

  • How to select the Printer in Oracle Reports 6i R2 (Windows 7)

    Hi,
    In a client site they have more than one printer suppose one is dot matrix and other one is laser printer or some other brands.
    They take printouts in both. Recently I installed Oracle Forms & Reports 6i R2 Runtimes in some Windows 7 32 bit PCs. In those PCs, its not allow to choose the printer, it print with windows default printer.
    So Is there any way to give an option to select the printer...??
    Thank You.

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • How to Display PDF File on Oracle Report 10g

    Dears,
    i have a PDF File on the server,
    also i need to display this file into rdf report.(Embed the PDF file into Report)
    Regards

    Dear Inol,
    I have the same problem I want to embded a PDF, word Doc OR Image in report 10g.
    And I put the read from file property YES and File Format OLE2
    and it doesnt work by run_web_report by repport server. while in run report layout it works.
    And my report server on the same Pc "The file path on the same server". or you can say that im working on the server where the path of the file exists and it doesnt work also.
    So what do you think that i have to do to solve this problem.\
    by the way i try to Genarate the report to a file in spacefic path then open it. and it didnt work also.
    any help will be apreciated.
    thanks in advance.
    Ashraf

  • How to setup Registry editor both oracle report 2.5&6.0

    Hi all,
    I have two versions of developer2000 one in C: drive another in
    E:drive. I want to access either one without changing
    registry each time.
    What I have to do? How to set up registry editor?
    thanks
    suresh
    null

    Hi all,
    I have two versions of developer2000 one in C: drive another in
    E:drive. I want to access either one without changing
    registry each time.
    What I have to do? How to set up registry editor?
    thanks
    suresh
    null

  • How to print date with prefix in oracle reports?

    Hi Everyone,
    Please help to get solution for this problem.
    How can we generate View image: oracle Reports in Oracle Reports RDF ?
    we can print date , but i want to print date and st in smaller case and in top right side of date.
    for eg  31st   st should be small and in top right part.
    Please refer the image : i have inserted link for image.
    Thanks in advance,
    HP

    You just go into the paper layout---> ...
    No, first step is to ask the question in the Reports forum :-)
    Edit: TIP: How to find a forum or community

Maybe you are looking for

  • My experience with new HP ENVY 17-j113el : 1200 euros spent to buy a lot of problems...

    Good morning, In April 2014 I have bought a nice, full-loaded, expensive (1200 euro) portable PC, HP ENVY 17-j113el. Before I was using a smaller, cheaper HP G62 notebook: never have had any problem in three years, great prodct for the price. With ni

  • SAVE_TEXT IN CO01

    Hi,        I had requirement,I need to populate the Long text in CO01. Iam using the FM SAVE_TEXT. But it doesnt worked.Iam using the Following code to save long text DATA: BEGIN OF tlinetab OCCURS 100.           INCLUDE STRUCTURE tline. DATA: END OF

  • Entry at material G/L acoount at MIRO...

    there is one schedulling agrrement with item numner 20. looking at its order history i found out some points:- 1) for initial accounting docs created during MIRO, there was no entry at raw material stock G/L account. 2) in between there were two docu

  • Working around bogus top-level folders in catalog

    I have a catalog originally created on Mac and then moved to Windows, and it has two poison top-level folders that cause various SDK methods to fail.  For example, they cause catalog:setActiveSources({folder}) to have an assertion failure.  For one o

  • FDM Performance Issue

    Hi all, We are having issues while uploading and importing our financials into Hyperion. 1) I cannot upload the file. Once I chose the file and select upload it starts to process, but then the processing screen goes white and freezes. Sometimes the u