Reports 9i Jdbc Query dialog box

Hi,
Is it possible to base a report on a pl/sql stored procedure in Reports builder 9i environment using with jdbcpds.If possiblePlease provide step by step details and how we can call that particular procedure in JDBC query dailog box.
Please provide detailed example program asap.
Thanks&Regards,
Raghu

Hi Raghu
Indeed yes. You can base your report on PL/SQL stored procedure. For this to work with JDBC query, your stored procedure must return records.
Refer Reports help on OTN for more information.
Regards
Sripathy

Similar Messages

  • Sachin (JDBC QUERY DIALOG BOX)

    hi sachin,
    Thanks alot........
    when iam trying to build following procedure in sql prompt level the procedure is generated with following errors.
    CREATE OR REPLACE PACKAGE jdbcpdspkg AS
    TYPE Empcur IS ref cursor ;
    Procedure proc1(p_emp_cv out jdbcpdspkg.empcur) is
    begin
    open p_emp_cv for select ename, deptno from emp;
    end proc1;
    end jdbcpdspkg ;
    please advice me asap:
    SQL>
    Wrote file afiedt.buf
    1 CREATE OR REPLACE PACKAGE jdbcpdspkg AS
    2 TYPE Empcur IS ref cursor ;
    3 Procedure proc1(p_emp_cv out jdbcpdspkg.empcur) is
    4 begin
    5 open p_emp_cv for select ename, deptno from emp;
    6 end proc1;
    7* end jdbcpdspkg ;
    8 /
    Warning: Package created with compilation errors.
    SQL> show errors
    Errors for PACKAGE JDBCPDSPKG:
    LINE/COL ERROR
    4/1 PLS-00103: Encountered the symbol "BEGIN" when expecting one of
    the following:
    language
    7/5 PLS-00103: Encountered the symbol "JDBCPDSPKG" when expecting one
    of the following:
    thanks in advance.
    Cheers,
    Raghu

    hi sachin,
    Thanks alot........
    when iam trying to build following procedure in sql prompt level the procedure is generated with following errors.
    CREATE OR REPLACE PACKAGE jdbcpdspkg AS
    TYPE Empcur IS ref cursor ;
    Procedure proc1(p_emp_cv out jdbcpdspkg.empcur) is
    begin
    open p_emp_cv for select ename, deptno from emp;
    end proc1;
    end jdbcpdspkg ;
    please advice me asap:
    SQL>
    Wrote file afiedt.buf
    1 CREATE OR REPLACE PACKAGE jdbcpdspkg AS
    2 TYPE Empcur IS ref cursor ;
    3 Procedure proc1(p_emp_cv out jdbcpdspkg.empcur) is
    4 begin
    5 open p_emp_cv for select ename, deptno from emp;
    6 end proc1;
    7* end jdbcpdspkg ;
    8 /
    Warning: Package created with compilation errors.
    SQL> show errors
    Errors for PACKAGE JDBCPDSPKG:
    LINE/COL ERROR
    4/1 PLS-00103: Encountered the symbol "BEGIN" when expecting one of
    the following:
    language
    7/5 PLS-00103: Encountered the symbol "JDBCPDSPKG" when expecting one
    of the following:
    thanks in advance.
    Cheers,
    Raghu

  • Printing ALV report by suppressing print dialog box

    Hi,
      I want to print a alv report by passing value in IS_PRINT export parameter which is working prefectly. But I want to suppress the dialog box which is appearing while printing and printing should go to spool directly is it possible.

    Hi,
    You could try something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    hope it helps,
    Kr,
    m.

  • Crystal Report - Parameter issue (advanced dialog box)

    In our wpf .net application we view the crystal report, the report prompts for entering 2 parameter values i.e 2 dates and inturn these parameters will be used to generate the crystal report.
    The parameter panel on the left has a button (show advanced dialog box). This button should again invoke the same parameter prompt dialog box, so that the user can modify these parameters and the report can be regenerated.
    Issue is that when I click on the the button, this generates a null reference exception in the code. The call stack is -
    at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowAdvancedDialog(ParameterUnit pu)
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.pu_ShowAdvancedDialog(Object sender, EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterUnit.OnShowAvancedDialog(EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterUnit.editControl_ShowAdvancedDialog(Object sender, EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterValueEditControl.OnShowAdvancedDialog(EventArgs e)
       at CrystalDecisions.Windows.Forms.ParameterValueEditControl.btnShowAdvancedDialog_Click(Object sender, EventArgs e)
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Please note, I used the .net reflector to debug the crystal report dll , the isDCP method looks like -
    public bool isDCP
          get
            return (this.Attributes.Contains("IsDCP") && ((bool) this.Attributes["IsDCP"]));
    Looks like the attributes value is null.
    Please let me know your comments. Am I missing something while getting the report in the frontend.
    I use crystal reports 2008 sp 2 (also note that my gac contains different version of crystal reports (cannot remove them - tried it) , with windows server 2003. I use web service with proxy to get the report from the local server.
    Note I also tried to create sample application in which I specify the local path to reports source , this works. However when I tried to use webservice, i was getting soap exception.
    Please let me know how solve above issue

    So you found the Report Design forum, if you looked down one more you would have found the SDK forum, SDK stands for Software Development Kit if you did not know.
    Or did you not mention you get the same error when you run this report in CR Designer, if so then you were in the right forum.
    Try Service Pack 3 also
    Move to the SDK forums.

  • Crystal Reports 2011 Map Expert dialog box option

    Hi
    When I select the Graduated option, then click the Customize button on this dialog box (on the Type tab) to select a different symbol for the map, I get the following error message -
    "Unable to find or load Helper dialog DLL.
    Is there a fix for this error message.
    If it helps, I have version 14.0.0.760 installed.
    Thank you
    Tracy
    Edited by: training 2go on Dec 29, 2011 4:55 PM

    hi don,
    thank you for looking into this for me and for taking this to the next level.
    at least you get the same error that i do.
    i don't ever recall using the map feature in a previous version, so i don't know if it worked in any other version.
    maybe someone in this forum has and will let me know.
    in case you are bored, the link below is for my other map related problem.
    Crystal Reports 2011 - Layers option on Map menu
    let me know what you think
    have a great weekend!
    tracy
    Edited by: training 2go on Jan 26, 2012 5:44 PM

  • Crystal Report dialog box issues

    I am very new at .NET, and this is my second post to this forum.
    I've created a Crystal Report within a project using Visual Studio 2005 Professional Edition, on a Windows XP machine.
    The report is handled by a CrystalReportViewer, which has its ReportSource set to the report.
    Via a dialog box, the report asks for a signon and password for a SQL Server database.  Then, via a second dialog box, it prompts for a parameter required by the report.
    All of this works ok, but I have two issues:
    1) I would like to set the database signon and password so that the user doesn't have to enter them each time he runs the report.
    2) If the Cancel button is clicked on any of the dialog boxes, it renders the report unusable until I shut down the application and reopen it.
    I have looked online for two days, but have not been able to find a solution to these above problems.  It is probably simple, but I'm not seeing it.
    I am attaching the relevant code for the button that runs the report.
        Private Sub cmdChecks_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdChecks.Click
                CrystalReportViewer2.DisplayToolbar = True
                CrystalReportViewer2.Visible = True
                CrystalReportViewer2.Height = 600
                CrystalReportViewer2.Width = 1000
                CrystalReportViewer2.Left = 10
        End Sub
    Can anybody help me with this?
    Thank you!

    Hi,
    I would like you to know the code of the logon based on the object models-
    If you are using the ConnectionInfo then use the below code:-
    //For web application
    ConnectionInfo crConnection = new ConnectionInfo();
    // Connection Information
    crConnection.ServerName="D-2818-W2K";
    crConnection.DatabaseName="Northwind";
    crConnection.UserID="sa";
    crConnection.Password="sa";
    crReport.Load(Server.MapPath("CrystalReport1.rpt"));
    Tables crTables=crReport.Database.Tables;
    foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
              TableLogOnInfo crTLOI = crTable.LogOnInfo;
              crTLOI.ConnectionInfo=crConnection;
              crTable.ApplyLogOnInfo(crTLOI);
              crTable.Location=crTable.Location;// for multiple table selection
    CrystalReportViewer1.ReportSource=crReport;
    ====================================================================================
    //For desktop application
    ConnectionInfo crConnection = new ConnectionInfo();
    // Connection Information
    crConnection.ServerName="D-2818-W2K";
    crConnection.DatabaseName="Northwind";
    crConnection.UserID="sa";
    crConnection.Password="sa";
    crReport.Load(Application.StartupPath + "//CrystalReport1.rpt");
    Tables crTables=crReport.Database.Tables;
    foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
              TableLogOnInfo crTLOI = crTable.LogOnInfo;
              crTLOI.ConnectionInfo=crConnection;
              crTable.ApplyLogOnInfo(crTLOI);
              crTable.Location=crTable.Location;// for multiple table selection
    CrystalReportViewer1.ReportSource=crReport;
    =====================================================================================
    If using ReportDocument object model
    //For web application
    ReportDocument crReport= new ReportDocument();
    crReport.Load(Server.MapPath("CrystalReport1.rpt"));
    crReport.SetDatabaseLogon("sa","sa");
    CrystalReportViewer1.ReportSource =crReport;
    =====================================================================================
    //For desktop application
    ReportDocument crReport= new ReportDocument();
    crReport.Load(Application.StartupPath + "//CrystalReport1.rpt");
    crReport.SetDatabaseLogon("sa","sa");
    CrystalReportViewer1.ReportSource =crReport;
    To download sample code click [here|https://boc.sdn.sap.com/codesamples].
    You can also take help from [Dev library|https://www.sdn.sap.com/irj/boc/sdklibrary]
    Hope this helps!!
    Regards
    Amit

  • File download dialog box -running report

    I am calling one report from my Oracle 9i Developer Suite Application. When i call one report using 'delimited' format, the run runs okay opening in a new Internet Explorer(IE) instance. But, when i call another report, the File download dialog box -running report opens which asks whether u want to open the file or save it in your computer. I hope, my doubt is clear.Please help me in this as it is very urgent.
    Regards.

    This is a duplicate post. Please followup on your previous posting.
    What is the URL you specify?

  • JDBC Query using PL/SQL

    I have gotten this to work in my Reports class but can not get this to work at my company. Basically I'm trying to use the JDBC query in Report Builder.
    Here is my Ref Cursor Code:
    CREATE OR REPLACE PACKAGE SCOTT.types is
    type sqlcur is REF cursor;
    end;
    Here is my Pl/SQL function:
    CREATE OR REPLACE FUNCTION SCOTT.test return Scott.types.sqlcur is
    c1 Scott.types.sqlcur;
    begin
    open c1 for select * from scott.emp;
    return c1;
    end;
    I can get this to work in SQL Plus by doing the following:
    var r refcursor
    exec :r := test;
    print r When I go into Reports Builder->JDBC query I connect to the SCOTT db using tiger as the password. I type in the function name TEST and get the error "wrong number or types of arguments in call TEST". I have tried "call TEST" but that doesnt work either. If I use "call TEST" I get an error saying it expected characters ":=(@" etc....
    I know my connection works because I can do a "select * from emp" and get results. Can anyone get this to work?
    I'm running Report Builder 9.0.2.0.3
    I have done multiple searches on this issue and most responses point someone to links that dont work or documentation. I have read them and my code above should work but doesnt........Please put some real examples or code that works with the "Scott" schema.
    Thanks

    hi Shawn
    When running jdbc quesry based on SP with Oracle DB, the first parameter of the store procedure should be of ref cursor type and it shall be a OUT parameter.
    For example:
    CREATE OR REPLACE PACKAGE jdbcpdspkg AS
    TYPE Empcur IS ref cursor ;
    procedure proc_with_param      (p_emp_cv out jdbcpdspkg .empcur, p1 in number, p2 in number , p3 in number, p4 in number , p5 in number) ;
    Thanks
    Rohit

  • JDBC query against Sybase through jConnect5.5 in Oracle 9i Reports Builder

    Hi There,
    I am trying to connect to Sybase using JDBC query using jConnect55 driver.
    I am not able to do so. I get an error:
    ERR 62002: Failed to connect to the datasource JZ0D5 JZ0D5: Error loading protocol com.sybase.jdbc2//255.255.255.255//255.255.255.255
    Driver entry in my jdbcpds.conf file is
    <driver name ="jConnect55"
    subProtocol ="sybase"
    connectString ="mainProtocol:subProtocol://databaseName"
    class = "com.sybase.jdbc2.jdbc.SybDriver"
    connection = "oracle.reports.plugin.datasource.jdbcpds.JDBCConnectionHandling" loginTimeout = "0">
    <property name="DatabaseName" value="tempdb"/>
    </driver>
    The entry I make in jdbc query connection dialog box is as under:
    User Name:test
    password:secret
    Databse: 255.255.255.255:9999/tempdb
    Driver Type: jConnect55
    Can you point me where I am wrong?
    Thanks in advance
    Ketan Patel

    Hi Sachin,
    I too, got through the issue. Sorry am bit late in updating you. But still I would say it is not on consistent(my feedback as per I grabbed from the behavior. Say, I accepted the query in a particular order of WHERE clause, then If I change the order it will throw an error message saying "Incorrect syntax".)
    Anyway working fine. Thanks for your immediate response with useful hints.
    Rgds
    Anand
    Hi Anand,
    Yes, JDBCPDS accepts all Select queries which follows SQL Specification.
    It would be a valid query as per the database used.
    Please try again, Bind parameters can be placed in any or all of the conditions of SQL Query in JDBCPDS.
    I am able to use them in both the cases you told.
    With Regards
    Reports team

  • Suppress the pop dialog box in ALV report

    Hi Gurus,
    I have developed an ALV report where we can edit the data and save to data base.
    For a field, it checks the value on value table and displays a pop with error "This value does not exsit". Automatically.
    I have not written an validation for this field.
    When i try to close the dialoge box it does not close.

    Hi,
    What the field reference you have given, there is check table which it is validating for the field, check it there might be a check table.
    Regards,
    Madhukar Shetty

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • I can't not open up my firefox a dialog box pops up and say Mozilla crash report

    I tried everyting... I could not check if it is a safemode issue because when I click on fire fox it won't let me in just a dialog box that say that mozilla has crashed. This is the lastest crash report. Crash ID: bp-80765d76-e647-44e9-8f45-473b82130217

    hello in case you have a program called imesh installed on your pc remove it (&any other suspicious software like toolbars etc.) from the windows control panel. also run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes], [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] & [http://www.kaspersky.com/security-scan kaspersky security scan].

  • Print Dialog Box from Report

    Can we open a Print dialog box ( as the one which opens from File->Print in MS Word document) which list all the configured Printers from an Oracle Report (9i/10G) deployed in web environment running on OAS.
    Thanks in Advance.

    Hi,
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = l_c_form
        VARIANT                  = ' '
        DIRECT_CALL              = ' '
         IMPORTING
           fm_name                  = l_f_fname
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3
    data :l_t_out TYPE ssfcompop,
            l_t_control LIKE ssfctrlop.
    Here pass the Selection screen printer name to the below variable*
    l_t_out-tddest    = p_print.
        IF sy-subrc = 0.
          CALL FUNCTION l_f_fname
          EXPORTING
                archive_index =  toa_dara
         ARCHIVE_INDEX_TAB =   TSFDARA
          archive_parameters =  arc_params
              control_parameters         = l_t_control
              output_options             = l_t_out
              user_settings              = space         "This should be passed as space then only it works
              p_langu                    = p_langu
            TABLES
              g_t_item               = g_t_final
       EXCEPTIONS
         formatting_error           = 1
         internal_error             = 2
         send_error                 = 3
         user_canceled              = 4
         OTHERS                     = 5.
    Hope it helps!!
    Rgds,
    Pavan

  • How to modify the "To Print" Steps in the Print the Report Dialog box

    From the Crystal Reports Viewer Toolbar, when selecting the Print option,
    a 'Print the Report' Dialog box opens. Is it possible to modify the 'To Print' steps?
    We tried modifying  (commenting-out the To Print steps) in strings_en.js and export.js, but
    when running, the changes do not show up.
    We are using Crystal Reports for Visual Studio 2008, Crystal Reports Viewer Version=10.5.3700.0
    Thank you.

    A warning 1st. Modifying the export.js file is not supported and may lead to all kinds of issues. Also, as soon as somebody else installs an app on that machine, the js files will get overwritten and thus removing your changes.
    Second, I do not think the print dialog is defined in a JS file. In CR 10 I think we built our own print dialog and there is no control over it (e.g.; no exposed APIs).
    I think your best bet will be to create a printer dialog as per your requirements and  launch it from your our own print button.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Passing parameter to Report SQL through Dialog box

    I want to modify my reprt designer, so that while running, it ask me to insert a date. On inserting date in the dialog box, the report should be generated for the corresponding date. In case of no_data, it should show error. Please help me.

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

Maybe you are looking for

  • Trouble viewing audio levels in Voice Over tool

    Hello, I often record voice over into Final Cut Pro using the Voice Over tool. In the middle section of the Voice Over window there is a 'Level' meter that flashes Green to Yellow and Red, illustrating the level of audio being fed into the Mac. For s

  • Regarding smartforms error

    hi experts, i have developed a driver program for the smartforms ,in the driver program i am displaying with the help of final internal table and with the help of structure i m declaring an internal table in the smartforms,the structure is containg t

  • Script in HR-ABAP

    hi friends, plz give me the solution to the following, its urgent yar. in abap we are copy a script from client 000 and done the modification according to the requirement, thn we go for NACE in that we remove the standard script name and we give our

  • My iBook G4 vs. New Mini ?

    I am thinking of getting the 2.0Ghz or 2.6Ghz Mini with 4Gig RAM. I have an iBook with a 1.33GHz PowerPC chip and 1.25Gig RAM. I do email, Powerpoint and Word for Mac, Internet, iPhoto, I may get into video (iMovie) just a bit. Question is will I not

  • Fan abnormality!

    In the last few days, my fan has been "acting" up or exhibiting strange behavior. On several occassions now, I will be surfing the net and listening to music/watching videos, and my fan starts going completely nuts. It jumps from the standard 1500 rp