Some issues in oracle Report need to resolved in BI Publisher

Hi ,
reallay i'm new in Bi Publisher technology (11g)
and i have report bulit using ( oracle Reports Desginer)
now i want to change to BI publisher
but some issues faces me
like
1- Formula Columns
2- PlaceHolder
3- Format trigger
4- Blob data type store images --> how to show the image
5- Lexical Parameters ( ex : &p_where)
i don't like to use converter i want to make new report in BI Publisher
how can i solve these issues in Bi Publisher 11g .

>
i don't like to use converter i want to make new report in BI Publisher
>
you can try to convert oracle reports to bip and you'll see answer to some questions
>
how can i solve these issues in Bi Publisher 11g .
>
lets start from http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/index.html
Some questions to BI-Publisher
Some questions to BI-Publisher

Similar Messages

  • Format issue after Oracle Reports conversion

    Hi all:
    I am an intermediate Oracle Reports user and am evaluating teh use of BI Publisher as a replacement. Since I have a large number of reports, some of which are fairly complex, I wish to take advantage of the conversion tool.
    The report in this issue has no user parameters. The Data Model is a "Data Template" type as generated from the conversion routine. The connection used was as the schema owner.
    I can View the report, but the formatting is completely wrong and the charts are no longer in the report.
    What do I need to do to fix this?
    Any help appreaciated,
    Gary

    Hi Gary
    The converter does not handle charts at the moment. You will need to re-create those in the template.
    Need a bit more info on 'the formatting is completely wrong' to be able to comment further.
    Regards
    Tim

  • Stand alone oracle report - need help asap

    Hi,
    We are in ORACLE Apps 11i. We started using ORACLE BI Publisher to create templates for the Oracle Reports. How we are doing reports now is
    1) create data definition XML which has all the queries embedded.
    2) Create Data definition in XML Publisher Admin responsibility.
    3. Attach the Data definition XML to that.
    4. Create a concurrent program definition for the report with XML Type and run the report and save the data file with tags.
    5. Create the template ,rtf in Word and export data using ORACLE BI Publisher. 6. Create template definition in the XML Publisher Admin responsibility and attach this .rtf to that and run the report.
    Now I have a requirement stating that the REPORT SHOULD BE AN ORACLE STAND ALONE REPORT AND THE REPORT NEEDS TO BE RUN THROUGH CONCURRENT PROGRAM SCREEN. I am planning on doing the following steps.
    1. I have to create an .rdf using report builder.
    2. Create concurrent program executable and definition for the report.
    3. Create data definition in XML Publisher admin responsibility.
    4. Run the report in apps.
    5. Create the tempalte .rtf in word and export data with the XML Data file with tags,
    6. Run the report.
    Am I correct? Any help is appreciated asap.
    Thanks
    Akil

    You said,
    standalone report ?? is that mean without using bipublisher ??
    1st method.
    create concurrent program, output xml,
    create data template, create datadefintion , attach Datatemplate.
    run the cc pgm, get xml, design RTF , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    2nd method.
    create rdf,
    create concurrent program, output xml,
    run the cc pgm, get xml, design RTF ,
    create datadefintion , create template definition , attach RTF,
    run the cc pgm, you get the pdf output.
    , both requires, cc pgm, rtf, data defintion , template definition.
    only differnece is , how do you get the data, i mean, xml...
    data template or RDF.

  • Issue with Oracle Report 10g output

    I want to generate text output in Oracle Reports 10g. I am using paper layout.Length of the fields want to print is 750. Each line is broken in the output after 120 characters length apporx. Please let me know if there is any way to print complete 750 characters.

    Sample output is coming as below :
    T2013 56600084112345                                                                                         FPWC
                                                                           955 OLD WILMINGTON RD                   FAYETTEVILLE
         CUMBERLAND                 NC28301                   00000001CONTACT TESING                          1234567890
                    00000001          I'
    I want it to be discplayed in single line instead of breaking.

  • Display issue in oracle reports

    Hi,
    The end user is getting the following error when executing a job in Oracle reports.
    " RWCGI GET JOB OUTPUT
    Cannot get output of Job ID 4 you requested on December ,08 2008 , 11:35:18
    Job is not done yet .Try again later"
    The server version is ias10222/6iserver
    The user just got the page that cannot get job ID
    The error code I got from the net is REP-52251
    I am core DBA but have take care of this report.
    So please help me.

    Something similar is also dealt here:
    http://www.orafaq.com/forum/t/65160/0/

  • Empty page issue in Oracle Reports!

    Hi All,
    I am facing an empty page issue between header and cover trailer when Main section is empty.
    In a report there are two forms Form-1 (Portrait size) , Form-2 (Landscape size)...
    Based on run time parameter we optionally print form-1 , form-2 or both.
    ie if run time parameter is 1 then only form 1
    if it is 2 then only form - 2
    if it is 3 then both
    As Form-1 is portrait size and Form-2 is Landscape size,
    At present in Report Layout, Form-1 is designed in Cover page Header Section
    and Form-2 is designed in Main section of report.
    So When the report is run with PRINT_PATTERN='2', Main section will be empty.
    An empty page issue appears in report for form-2.
    Is there anyway to avoid EMPTY PAGE issue between header and trailer page,
    based on runtime parameter value if Main section is empty.
    Thanks in advance.

    Hi vdsk,
    The issue I posted is not about the rdf or in concurrent program. The problem I've encountered is in the tally printer itself. So what I did was to adjust the paper size settings in the printer.
    Thanks,
    Regards,
    Diane

  • Oracle Reports Printing issue

    I have multiple printing issues with Oracle Reports developed in 10g. Please help me to resolve the issue.
    1. Even though i set ORIENTATION to landscape, it is printing Portrait .
    I have tried the below options
    1. I SET ORIENTATION AS landscape Under Data Model, System Parameters
    2. I have tried to pass ORIENTATION=landscape from the Keymap File
    3. I have tried to set ORIENTATION=landscape Under Paper layout Main,Header and Trailer Sections.
    2. Always the report is trying to fit in a single page (Width wise) which is annoying the user. I want to set Scaling instead of fit to a single page. How will i achieve this?
    i was trying to display the reports in SPREADSHEET Format.
    Thanks for all your Help.

    Hello Chris90909,
    switch width an height properties as Inol mentioned.
    http://nycapex.blogspot.com/2010/03/landscape.html
    If you have any question about the issue, let us know.
    Don't forget to mark Correct or Helpful accordingly.

  • Do we need to resolve all issues with intermediate 2010 migration before going to Exchange 2013?

    We just migrated from Exchange 2003 to Exchange 2010 as an intermediate step to going to Exchange 2013.  Everything is working through OWA, so all the data has been transferred.  We have users that can access Outlook 2010 through a Citrix server,
    and through their local workstations.  Outlook 2010 is working fine through Citrix as well, but on all users if they access Outlook 2010 on their laptop they get an error when trying to do Out of Office messages, and they can't see free/busy time for
    other users when adding them to meeting invites.  
    I already have a post about the issues, but since we are moving to 2013, could the migration fix these issues, or do we need to resolve them first?  The data is clearly there, so I don't think that's the problem.
    Thanks!
    --Kent

    Hi,
    Did you try to recreate the outlook profile and check the result?
    What error did you get when you try to open the Out of Office Assistant in Outlook 2010?
    The following article for your reference:
    http://support.microsoft.com/kb/2596516/en-us
    Thanks.
    Niko Cheng
    TechNet Community Support

  • Oracle Report Server Not Accessible

    Hi Folks,
    I'm facing a series of issues with Oracle reports server 11g. I'l list the issues one by one.
    1. I'm not able to start the weblogic server from the domain which i've created for Reports. It gives me authentication error. I've tried clearing tmp directory, clearing temp directory and creating a boot.properties in the security folder. But nothin seems to work.
    2. I'm not able to start the report server from the instance path C:\Oracle\Middleware\asinst_1\bin\opmnctl.bat. The contents of opmnctl.bat is as follows
    @ECHO OFF
    SETLOCAL
    set PERL5LIB=
    set JAVA_HOME=C:\Oracle\Middleware\jdk160_29\bin
    set ORACLE_HOME=C:\Oracle\Middleware\Oracle_FRHome1
    set ORACLE_INSTANCE=C:\Oracle\Middleware\asinst_1
    set OpmnService=OracleProcessManager_asinst_1
    "C:\Oracle\Middleware\Oracle_FRHome1\opmn\bin\opmnctl.bat" %*
    when i run this from cmd i get all the components as alive but i'm not able to access the reports path with the url. (http://domainname:7003/console or /em).
    this says connection refused.
    3. When i try to access the url http://domainname:8888/reports/rwservlet gives me apache bridge error. I've been trying all the things given in google for the past 1 week but still its not working.
    This is my Oracle Forms and Repots Installation log:
    Middleware Home Location: C:\Oracle\Middleware
              Oracle Home Location: C:\Oracle\Middleware\Oracle_FRHome1
              Oracle Instance Location: C:\Oracle\Middleware\asinst_1
              Oracle Instance: asinst_1
              Domain Option: Create Domain
              Domain Name: Sapphire
              Domain Home: C:\Oracle\Middleware\user_projects\domains\Sapphire
              Domain Host Name: PC201845.cts.com
              Domain Port No: 7001
              User Name: weblogic
              Automatic Port Detection: true
              Administrator Console: http://PC201845.cts.com:7001/console
              EM Console: http://PC201845.cts.com:7001/em
              EMAgent URL: http://PC201845.cts.com:5155/emd/main
              Forms URL: http://PC201845.cts.com:8888/forms/frmservlet
              Reports URL: http://PC201845.cts.com:8888/reports/rwservlet
    I'm not able to login to any of this url.
    pls help with the issue.
    P.S - I'm able to start weblogic server from base_domain but not from Sapphire domain which i created during installation of reports 11g.
    I need a way to start the Weblogic server from Sapphire Domain and also start reports server and access the reports url.

    TemTesh wrote:
    After machine shutdown without shutdown IAS server, Oracle application server report service can not restart.
    below is the error
    11/2/10 5:26 AM NfsServer: (TCP:Nfs-6) Exception
    oracle.ifs.common.IfsException: IFS-71002: I/O error.
    java.net.SocketException: Connection resetAnd this seems to be the problem. Missing NFS share? TCP=<i>transmission control protocol</i>. NFS=<i>network file server</i>.
    For some reason (very like due to how it has been configured), the s/w attempts to use a NFS share - and uses the TCP wire protocol. This NFS share is not mounted or not available.
    Check the NFS server (it needs to be up and exporting that share), there has to be network connectivity between the report server and the NFS server, and the report server needs to have the required config and access permissions for mounting that NFS share.

  • Oracle Reports 9i release date???

    Dear All,
    Has there been a release date set for Oracle Reports 9i? We are having some serious installation issues with Oracle Reports 6i clashing with Oracle 8.0.6 database, 9i Application Server, and trying to get the demos installed so that we can really learn how to use this tool that seems like it will definitely fit our web app reporting needs.
    Thanks in advance for any info,
    Jeff

    Almost a week later, and still no change to the Express Edition download page. There must be some last minute bugs to fix.
    At least 11gR2 XE fixes the problem (that exists with 10gR2 XE) on Windows where starting the Oracle XE service does not open the database.
    Edit: that Oracle newsletter has been edited. It now says: "Oracle Database, Express Edition 11g is now available for download as a beta release, +and the production release is imminent+."
    Edited by: JamHan on Aug 23, 2011 12:22 PM

  • Oracle Report in New window with submit

    Hello, I'm in urgent need of an example on how submit a page and open a Oracle Report in a new window. I've searched the forum and found similiar threads, but not exactly what I need. Basically, I have an html page with cascading LOVs in which the user can cascade down until they get to the report (oracle report) they will like to generate. I'm using Patrick's ApexLib for my cascading LOVs. The user can also pick a date range via a Date Picker. I need the page to submit so that paramters from the LOVs and Date Picker can be passed to the Oracle Report. The Oracle Report needs to open in a new window. Currently I'm using a button item using a branch which runs the report fine, but it comes up in the same page. Can someone point me in the right direction as to how to accomplish this? Thanks in advance for your help!
    Lou

    Hi Lou,
    you don't have to submit the page. If you have all the values on your page in HTML input fields you are fine. You would only submit it if you want to do some additional processing on the server to calculate values, ...
    So just create a button with "Redirect URL without submitting page",
    set "Target is a" to "URL" and use the following code in the "URL Target" property.
    javascript:popupURL('http://your_oracle_report_url/regionid='+$x('P4_REGION_ID').value+'city='+$x('P4_CITY').value);The $x('some_page_item').value is used in JavaScript to reference the current value of an HTML field. Use the same identifier as you have used for your item in APEX.
    Hope that helps
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Facing Issue With Oracle SOA Suite 11.1.1.3.0

    Hi All,
    I am facing some issues with ORACLE SOA SUITE 11.1.1.3.0.
    Hope you people can help us out.
    Please find the issue details below along with all the relevant information’s
    I have following SOA suite installation at my server:
    Oracle 10g Express Edition Universal 10.2.0.1
    RCU 11.1.1.3.3
    Web Logic Server 10.3.3.0
    SOA suite 11.1.1.3.0
    JDeveloper 11.1.1.3.0
    The first thing what I have done is created a web service and deployed it to server without any issue.
    After that I created proxy client for that service and accessed it successfully from the client end.
    Till here no issue occurs.
    After that I applied few policies on top of web service and deployed it to server.
    The policy I had chosen was “oracle/wss_username_token_service_policy” [coming under OWSM policies list]
    While deploying there was no issue, all went well.
    2nd step I had created client using “oracle/wss_username_token_client_policy” policy which is counter part of above policy and tried to access the web service but failed.
    I have followed this blog:
    [http://biemond.blogspot.com/2010/08/things-you-need-to-do-for-owsm-11g.html ]
    Please have a look on service and client code:
    Service Code:
    package Demo_ScoreCard;
    import javax.jws.WebService;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicy;
    @WebService
    @SecurityPolicy(uri = "oracle/wss_username_token_service_policy")
    public class ScoreCardWithPolicy {
    public double getPercentageWithPolicy(double markEng,double markMath,double markHindi,double markScience,double markSsc)
    double result;
    result= ((markEng+markHindi+markMath+markScience+markSsc)/500)*100;
    return result;
    Client Code:
    package com.tec.proxy.client;
    import java.util.Map;
    import javax.xml.ws.BindingProvider;
    import javax.xml.ws.WebServiceRef;
    import weblogic.wsee.jws.jaxws.owsm.SecurityPolicyFeature;
    public class ScoreCardWithPolicyPortClient {
    @WebServiceRef
    private static ScoreCardWithPolicyService scoreCardWithPolicyService;
    public static void main(String[] args) {
    scoreCardWithPolicyService = new ScoreCardWithPolicyService();
    SecurityPolicyFeature[] securityFeatures =new SecurityPolicyFeature[] { new SecurityPolicyFeature("oracle/wss_http_token_client_policy") };
    ScoreCardWithPolicy scoreCardWithPolicy =scoreCardWithPolicyService.getScoreCardWithPolicyPort(securityFeatures);
    Map<String, Object> reqContext =((BindingProvider)scoreCardWithPolicy).getRequestContext();
    reqContext.put(BindingProvider.USERNAME_PROPERTY, "testclient");
    reqContext.put(BindingProvider.PASSWORD_PROPERTY, "test12345"); // I have added this to the myrealm from console under security realms
    double arg1 = 77.2;
    double arg2 = 79.2;
    double arg3 = 77.2;
    double arg4 = 76.2;
    double arg5 = 67.2;
    double clientResult =scoreCardWithPolicy.getPercentageWithPolicy(arg1, arg2, arg3, arg4,arg5);
    System.out.println("clientResult with policy =====> " + clientResult);
    Error Log:
    SEVERE: WSM-07617 Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    SEVERE: WSMAgentHook: An Exception is thrown: WSM-07617 Policy Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    Exception in thread "main" javax.xml.rpc.JAXRPCException: oracle.wsm.common.sdk.WSMException: WSM-07617 Policy Policy: oracle/wss_http_token_client_policy contains unsupported assertions.
    at oracle.wsm.agent.handler.wls.WSMAgentHook.handleException(WSMAgentHook.java:395)
    at oracle.wsm.agent.handler.wls.WSMAgentHook.init(WSMAgentHook.java:206)
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory.newHandler(TubeFactory.java:105)
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory.createClient(TubeFactory.java:68)
    at weblogic.wsee.jaxws.WLSTubelineAssemblerFactory$TubelineAssemblerImpl.createClient(WLSTubelineAssemblerFactory.java:148)
    at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:467)
    at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:689)
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:667)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:362)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.internalGetPort(WLSProvider.java:855)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate$PortClientInstanceFactory.createClientInstance(WLSProvider.java:967)
    at weblogic.wsee.jaxws.spi.ClientInstancePool.takeSimpleClientInstance(ClientInstancePool.java:621)
    at weblogic.wsee.jaxws.spi.ClientInstancePool.take(ClientInstancePool.java:486)
    at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:782)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
    at javax.xml.ws.Service.getPort(Service.java:133)
    at com.tec.proxy.client.ScoreCardWithPolicyService.getScoreCardWithPolicyPort(ScoreCardWithPolicyService.java:86)
    at com.tec.proxy.client.ScoreCardWithPolicyPortClient.main(ScoreCardWithPolicyPortClient.java:23)
    Process exited with exit code 1.
    Not getting any help from any blog. Just wondering why this error is coming. I would be glad if you can help us in this regard.
    Apart from above issue I have few queries like:
    1.What is difference between OWSM policies and WLS policies?
    2.Are these the only policies we can apply on top of services?
    3.If some one wants to configure his own custom policies than what need to be done
    4.Could anyone please provide some useful links to implement ENCYPTION and SIGNATURE on top of web services?
    5.And If I am not wrong, I guess Oracle Service BUS OSB 11.1.1.3 has been removed from the main download link and version 11.1.1.4 has been provided. Is it
    compatible with SOA suite 11.1.1.3.0? If not where can I get OSB 11.1.1.3?
    Looking forward to hear from you people.
    Thanks
    Arvind
    Edited by: user8490871 on Apr 15, 2011 12:53 AM
    Edited by: user8490871 on Apr 15, 2011 12:53 AM

    Hi,
    I don't know why u get an error. Here are answers for additional questions:
    1. OWSM policies are for web services. WLS policies are based on Java EE security. They are used to protect resources e.g. URL, EJB
    2. I don't know about other policies
    3. See http://download.oracle.com/docs/cd/E14571_01/web.1111/e13713/owsm_appendix.htm#CHDCHFBH
    4. See http://download.oracle.com/docs/cd/E14571_01/security.1111/e10037/toc.htm
    5. I can see OSB 11.1.1.3 download link here
    http://www.oracle.com/technetwork/middleware/downloads/fmw-11-download-092893.html
    Regards,
    Milan

  • Issue with Oracle LONG RAW data type

    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /

    Maddy wrote:
    Hi All,
    I am facing some issues with Oracle LONG RAW DATA Type.
    We are using Oracle 9IR2 Database.
    I got a table having LONG RAW column and I need to transfer the same into another table having LONG RAW column.
    When I tried using INSERT INTO SELECT * command (or) CREATE TABLE as select * , it is throwing ORA-00997: illegal use of LONG datatype.
    I have gone through some docs and found we should not use LONG RAW using these operations.
    So I did some basic PLSQL block given below and I was able to insert most of the records. But records where the LONG RAW file is like 7O kb, the inserting is faliling.
    I tried to convert LONG RAW to BLOB and again for the record where the LONG RAW is big in size I am getting (ORA-06502: PL/SQL: numeric or value error) error.
    Appreciate if anyone can help me out here.
    DECLARE
    Y LONG RAW;
    BEGIN
    FOR REC IN (SELECT * FROM TRU_INT.TERRITORY WHERE TERRITORYSEQ=488480 ORDER BY TERRITORYSEQ ) LOOP
    INSERT INTO TRU_CMP.TERRITORY
    BUSINESSUNITSEQ, COMPELEMENTLIFETIMEID, COMPONENTIMAGE, DESCRIPTION, ENDPERIOD, GENERATION, NAME, STARTPERIOD, TERRITORYSEQ
    VALUES
    REC.BUSINESSUNITSEQ, REC.COMPELEMENTLIFETIMEID, REC.COMPONENTIMAGE, REC.DESCRIPTION, REC.ENDPERIOD, REC.GENERATION, REC.NAME,
    REC.STARTPERIOD, REC.TERRITORYSEQ
    END LOOP;
    END;
    /below might work
    12:06:23 SQL> help copy
    COPY
    Copies data from a query to a table in the same or another
    database. COPY supports CHAR, DATE, LONG, NUMBER and VARCHAR2.
    COPY {FROM database | TO database | FROM database TO database}
                {APPEND|CREATE|INSERT|REPLACE} destination_table
                [(column, column, column, ...)] USING query
    where database has the following syntax:
         username[/password]@connect_identifier

  • Oracle Report reading only upto 1600 lines

    Hi all,
    Just would like to post an issue regarding oracle report.
    My version is DS 10g n i have a code which is approx 2000 lines, the issue is that my query executes till near about the 1600 but the rest is omitted.plz throw some light in this.
    Thanx
    Ron

    What are you talking about exactly:
    i have a code which is approx 2000 lineIs this a pl/sql procedure?
    my query executesOr is it a very long query?

  • New to oracle report builder

    Dear all;
    Please pardon me. I am new to oracle report builder and I am trying to accomplish the following. First and foremost please find my pl/sql queries below. Kindly note, all the queries have been tested and I just need to be able to input those queries into the report builder. Thank you.
    create or replace package test1 is
    type r_cursor is ref cursor;
    function report(company_name in varchar2) return r_cursor;
    end test1;
    create or replace package body test1 is
    function report(company_name in varchar2) return r_cursor as
    my_r_cursor r_cursor;
    begin
    if(company_name = 'ALL COMPANIES') THEN
    open my_r_cursor for
    select t.t_id, t.t_description from t1 t;
    return my_r_cursor;
    elsif(company_name != 'ALL COMPANIES') THEN
    open my_r_cursor for
    select t.t_id, t.t_description from t1 t
    where t.t_id = company_name;
    return my_r_cursor;
    end if;
    end;
    end test1;
    create table t1
    t_id varchar2(200) not null,
    t_description varchar2(250),
    primary key(t_id)
    insert into t1
      (t_id, t_description)
    values
      ('CITI', 'PROFIT: 2.2Billion');
    insert into t1
      (t_id, t_description)
    values
      ('GE', 'PROFIT: 1Billion');
    insert into t1
      (t_id, t_description)
    values
      ('JPMORGAN','PROFIT: 0');Now, I am trying to create a simple report in oracle report builder. The interface for generating for this report is basically, there is a dropdownlist where by the user picks a company name from the dropdownlist and clicks on the go button, this should then generate a report with the above query shown in the package. How can this be achieved? All help will greatly be appreciated.

    Hi,
    first of all you need strong typed ref cursor, oracle reports need to detect witch are the columns returned by your cursor.
    so first you create your package
    create or replace package test1
    as
    TYPE t_record IS RECORD ( company_number PLS_INTEGER--TABLE_NAME.COLUMN_NAME%TYPE
    , company_desc VARCHAR2(150)--TABLE_NAME.COLUMN_NAME%TYPE
    TYPE T_REF_CURSOR IS REF CURSOR RETURN t_record;
    procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor) ;
    end test1;
    show errors
    create or replace package body test1
    is
    procedure report(company_name in varchar2 ,cur_out OUT t_ref_cursor)
    is
    my_r_cursor T_REF_CURSOR;
    begin
    if(company_name = '1')
    THEN
    open my_r_cursor for
    select 1 as t_id, 'description' ast_description from dual
    else
    open my_r_cursor for
    select 2 as t_id, 'description2' as t_description from dual
    end if;
    end;
    end test1;
    show errors
    then, in your report you create a ref cursor query :
    function QR_1RefCurDS
    return test1.t_ref_cursor
    is
    C_return test1.t_ref_cursor;
    begin
         test1.report(1,C_return);
    RETURN(C_return) ;
    end;
    hope this helps you !
    E

Maybe you are looking for

  • Setting default costing relevancy on IW31

    Hi all, i have problems with the definition of the default value of the costing relevancy during the creation of an orden by the transaction IW31. In particular i have to set that default value just for a specific order type. is it possible doing it?

  • Imovie loss of visual?

    My imovie stopped working mid project, having become really slow and constantly bringing up the little coloured circle.  It won't play in full screen and has stopped playing in the small screen.  It does play sound.  Yesterday it wouldn't offer me th

  • Restricted code for nokia 6280 is needed

    i am pleading to every body in the house, i want to unlock my nokia 6280. 3 network. the was brought from london to me in nigeria, has all my effort to insert sim into the phone but the phone is requesting for restricted code.. Thank you for the assi

  • Session State Protectio Violoation in Apex 4.2 Page Items

    I'm testing my Apps that I upgraded from 3.2 to 4.2 and getting the message below and haven't been able to understand why. Error Session state protection violation: This may be caused by manual alteration of protected page item P2_PAY_NO. If you are

  • Allow a blocked plug in

    I am trying to allow a blocked plug in (Java) on a trusted site. Your directions say that a red Lego-looking icon will appear in the address bar. I do not have this icon. So, how can I allow Java to work on this site? I have installed the latest vers