Forms 9i Running & Database Login

Hai,
I am having a problem with forms 9i
I installed Oracle9ias & configured everything is ok
while opening the form from the browser it is asking database login. I kept the entry in formsweb.cfg for the database login. but it is not taking.
if anyone knows please help me.

OK, I know this does not make logical sense, but could you try you url without letting the form name default to what is in the formsweb.cfg. In other words, make the url:
http://dgmofiora.adil.com/forms90/f90servlet?config=mojcnfg&form=c:\mainform.fmx
I run on unix and am not real familiar with Windows, so I may have the slashes going the wrong way.

Similar Messages

  • Can Forms 9i run on an Oracle 8 database??

    Can Forms 9i run on an Oracle 8 database??

    Yes, you can check all the certified versions of what database is certified against which Forms version at metalink.oracle.com
    Regards
    Grant Ronald
    Forms Product Management

  • Unable to run a login authentication program

    hi,
    i am a newbie in jsp. i have a project to complete, which involves a login code to be developed.
    however, i just can't run this login program.
    can anyone help me in finding any errors in this code, or is their any problem with tomcat ?
    here is the code.
    <html>
    <body>
    <%@ page import="java.sql.,java.io." %>
         <%      string a,b;
              string query;
              a=request.getParameter(uid);
              b=request.getParameter(pwd);
              try
              Class.form("java.jdbc.odbc.JdbcOdbcDriver");
              Connection cn=DriverManager.getConnection("jdbc:odbc:Driver={MicroSoft Access
    Driver(*.mdb)};DBQ="user_login.mdb");
              Statement st1=cn.createStatement();
              query="select user_type
                   from userLogin_master
                   where user_name='a' and password='b' "
              ResultSet rs= st1.executeQuery(query);
              do while(rs.next())
                   if (rs=="admin")
                        response.sendRedirect ("http://admin_main.html");
                   elseif (rs=="client_admin")
                        response.sendRedirect ("http://client_admin_main.html");
                   elseif (rs=="subclient_admin")
                        response.sendRedirect ("http://subclient_admin_main.html");
                   elseif(rs=="normal_user")
                        response.sendRedirect ("http://user_main.html");
                   else
                        System.out.println ("Invalid User :(Your username or password is
    incorrect, please try again)";
              catch (exception e)
              st1.close();
              rs.close();
              cn.close();
         %>     
    %>
         {code}{code}

    Problem in your code syntax itself. try to understand the JDBC concepts.
    http://java.sun.com/docs/books/tutorial/jdbc/overview/index.html
    No problem in your tomcat.
    See this jsp code:
    <%@ page import="java.sql.Connection" %>
    <%@ page import="java.sql.DriverManager" %>
    <%@ page import="java.sql.ResultSet" %>
    <%@ page import="java.sql.Statement" %>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head><title>Simple jsp page</title></head>
    <body>
    <%
        String a, b;
        String query;
        a = request.getParameter("uid");
        b = request.getParameter("pwd");
        Statement st1 = null;
        Connection cn = null;
        ResultSet rs = null;
        try {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=user_login.mdb;DriverID=22;READONLY=true";
            cn = DriverManager.getConnection(database, "username", "password");
            st1 = cn.createStatement();
            query = "select user_type from userLogin_master where user_name='" + a + "' and password='" + b + "'";
            rs = st1.executeQuery(query);
            rs.next();
            String uType = rs.getString("user_type");
            if (uType.equals("admin")) {
                response.sendRedirect("http://admin_main.html");
            } else if (uType.equals("client_admin")) {
                response.sendRedirect("http://client_admin_main.html");
            } else if (uType.equals("subclient_admin")) {
                response.sendRedirect("http://subclient_admin_main.html");
            } else if (uType.equals("normal_user")) {
                response.sendRedirect("http://user_main.html");
            } else {
                System.out.println("Invalid User :(Your username or password is incorrect, please try again)");
        } catch (Exception e) {
            //Handle exception
            System.out.println(e);
        } finally {
            try {
                rs.close();
                st1.close();           
                cn.close();
            } catch (Exception e) {
                //Handle exception
    %>
    </body>
    </html>I recommend use this kind of validation logic in servlets.

  • Database login through OEM

    Dear all,
    When try to log in to target database in OEM, the web browser hanging for a long time before disconnecting.
    The browser interface is as the follwoing. Even connect as sysdba doesn't work.
    Username:
    Password:
    Database:
    Connect As:
    The user account can connect to database using sqlplus and host login through OEM works fine too. Could some one give a hint on this problem?
    Thanks
    Jiang

    I hope the following is a better description.
    After log in to OEM browser located in the OMS server, select a target database instance, which is in the remote machine. The following page has four tabs, Home, Performance, Administration and Maintenance. Select Performance, the next page is Database login form needs following information:
    user name:
    password:
    Database:
    Connect As.
    Although I provide the correct information, the connection is hang for ever. The database instance is up and running.
    Jiang.

  • Error while Creating form on remote Database

    Hi All
    I m getting error while creating form on remote database thru
    Database link
    Line/Column Error
    7099/21 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7099/9 PL/SQL: SQL Statement ignored
    7749/16 PLS-00454: with a returning into clause, the table
    expression cannot be remote or a subquery
    7749/9 PL/SQL: SQL Statement ignored
    and statement at line specified is insert statement. and at end
    of insert statement Returning caluse is there as follows
    RETURNING ROWID INTO "_ROWID";
    This returning clause is causing error. Does anybody knows how
    to handel it??
    Thanks
    Yogesh

    Yogesh
    I haven't seen the ora-03116 problem.
    What version of Portal are you running? Are the databases at the same version? Does your table have longs or anything strange in it?
    Can you query the table via the synonyms and link in sqlplus as the application schema? This is a good test because it eliminates Portal.
    You should try setting up synonyms etc for the emp table. If you still get the problem then Oracle may be able to replicate it. If not, then there's sth funny about your table maybe.
    I agree with Vishnu about creating everything in sqlplus. I create all my links and synonyms in sqlplus. They are all public. I have 2 synonyms: one takes you over the link the other takes you to the right schema. It's flexible and it works.
    data database: D grants to P (local schema) on table T
    public syn T = D.T (sys) (get the right schema)
    portal dbase : public db link to data database connecting as P
    public syn T = T@dblink (sys) (over the link)
    P is a schema created in both databases.
    Test is: P in portal dbase can "select * from T" and gets the right data.
    I never, ever refer to a schema when defining a form. ie. never P.T or D.T or whatever. I always refer simply to a synonym. For the above my form would be defined simply on the table T.
    Hope this helps
    Greg

  • Icons are not visible when the form is run

    I develop a form with only a push button. I developed form using oracle 10DS. I have saved my form in application server. To see an icon in my button, i did the following things:
    1. In application server i made a jar named test.jar. It consists of just two gif images.
    2. I copied this jar in application server's \forms90\java directory
    3. I configured formsweb.cfg file as the following.
    4. my \form90\java\oracle\forms\registry\registry.dat is as the following.
    whenever i run form i can not see icon but in client's oracle jar cache jar is downloaded.
    -------------------------------formsweb.cfg -------------------------------------------
    =========================
    # $Id: formsweb.cfg,v 1.24 2003/08/22 01:07:35 pkuhn Exp $
    # formsweb.cfg defines parameter values used by the FormsServlet (f90servlet)
    # This section defines the Default settings. Any of them may be overridden in the
    # following Named Configuration sections. If they are not overridden, then the
    # values here will be used.
    # The default settings comprise two types of parameters: System parameters,
    # which cannot be overridden in the URL, and User Parameters, which can.
    # Parameters which are not marked as System parameters are User parameters.
    # SYSTEM PARAMETERS
    # These have fixed names and give information required by the Forms
    # Servlet in order to function. They cannot be specified in the URL query
    # string. But they can be overriden in a named configuration (see below).
    # Some parameters specify file names: if the full path is not given,
    # they are assumed to be in the same directory as this file. If a path
    # is given, then it should be a physical path, not a URL.
    # USER PARAMETERS
    # These match variables (e.g. %form%) in the baseHTML file. Their values
    # may be overridden by specifying them in the URL query string
    # (e.g. "http://myhost.mydomain.com/servlet/f90servlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    # System parameter: default base HTML file
    baseHTML=base.htm
    # System parameter: base HTML file for use with JInitiator client
    #baseHTMLjinitiator=basejini.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # System parameter: base HTML file for use with Microsoft Internet Explorer
    # (when using the native JVM)
    baseHTMLie=baseie.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    # System parameter: working directory for Forms runtime processes
    # WorkingDirectory defaults to <oracle_home>/forms90 if unset.
    workingDirectory=
    # System parameter: file setting environment variables for the Forms runtime
    processes
    envFile=default.env
    # System parameter: JVM option for Microsoft Internet Explorer.
    # This parameter specifies how to execute the Forms applet under
    # Microsoft Internet Explorer 5.x or above. Put IE=native if you want
    # the Forms applet to run in the browser's native JVM.
    IE=JInitiator
    # Forms runtime argument: whether to escape certain special characters
    # in values extracted from the URL for other runtime arguments
    escapeparams=true
    # Forms runtime argument: which form module to run
    form=test.fmx
    # Forms runtime argument: database connection details
    userid=
    # Forms runtime argument: whether to run in debug mode
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    port=
    # Other Forms runtime arguments: grouped together as one parameter.
    # These settings support running and debugging a form from the Builder:
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array%
    obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record%
    tracegroup=%tracegroup% log=%log% term=%term%
    # Sub argument for otherparams
    buffer=no
    # Sub argument for otherparams
    debug_messages=no
    # Sub argument for otherparams
    array=no
    # Sub argument for otherparams
    obr=no
    # Sub argument for otherparams
    query_only=no
    # Sub argument for otherparams
    quiet=yes
    # Sub argument for otherparams
    render=no
    # Sub argument for otherparams
    record=
    # Sub argument for otherparams
    tracegroup=
    # Sub argument for otherparams
    log=
    # Sub argument for otherparams
    term=
    # HTML page title
    pageTitle=Oracle Application Server Forms Services
    # HTML attributes for the BODY tag
    HTMLbodyAttrs=
    # HTML to add before the form
    HTMLbeforeForm=
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms90/l90servlet
    # Forms applet parameter
    codebase=/forms90/java
    # Forms applet parameter
    imageBase=codeBase
    # Forms applet parameter
    width=750
    # Forms applet parameter
    height=600
    # Forms applet parameter
    separateFrame=false
    # Forms applet parameter
    splashScreen=
    # Forms applet parameter
    background=
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow
    _debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=f90all_jinit.jar,classes12.jar,test.jar
    # Forms applet archive setting for Microsoft Internet Explorer native JVM
    archive_ie=f90all.cab
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer,
    etc)
    archive=f90all.jar
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms90/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0017-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,17
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.17
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/plugin/1.3/plugin-install.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version
    =1,3,0,0
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;version=1.3
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=0
    # Single Sign-On OID configuration parameter
    oid_formsid=formsApp_drsshl_C75ED7E7CA18492FA35AA090350527B7
    # Single Sign-On OID configuration parameter
    oracle_home=E:\Oracle_SHLAS
    # Single Sign-On OID configuration parameter
    formsid_group_dn=cn=Logical Application Group,
    orclApplicationCommonName=formsApp_drsshl_C75ED7E7CA18492FA35AA090350527B7,
    cn=forms, cn=Products, cn=OracleContext
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=true
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    # The parameter allow_debug determines whether debugging is permitted.
    # Administrators should set allow_debug to "true" if servlet
    # debugging is required, or to provide access to the Forms Trace Xlate utility.
    # Otherwise these activities will not be allowed (for security reasons).
    allow_debug=false
    # Parameter which determines whether new Forms sessions are allowed.
    # This is also read by the Forms EM Overview page to show the
    # current Forms status.
    allowNewConnections=true
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change. The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form. For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.mydomain.com/servlet/f90servlet?config=sepwin".
    [sepwin]
    separateFrame=True
    lookandfeel=Generic
    # Example Named Configuration Section
    # Example 2: configuration affecting users of MicroSoft Internet Explorer 5.x.
    # Forms applet will run under the browser's native JVM rather than using Oracle
    JInitiator.
    [ienative]
    IE=native
    # Example Named Configuration Section
    # Example 3: configuration forcing use of the Java Plugin in all cases (even if
    # the client browser is on Windows)
    [jpi]
    baseHTMLJInitiator=basejpi.htm
    baseHTMLie=basejpi.htm
    # Example Named Configuration Section
    # Example 4: configuration running the Forms ListenerServlet in debug mode
    # (debug messages will be written to the servlet engine's log file).
    [debug]
    serverURL=/forms90/l90servlet/debug
    [test]
    form=E:\ict\ITSUPPORT\test.fmx usesdi=yes
    userid=support/s00001@dshl
    width=100%
    height=100%
    colorscheme=blue
    pageTitle=ICT Support :: Just in Time
    imagebase=codebase
    archive_jini=f90all_jinit.jar,rolloverbutton.jar,getclientinfo.jar,infobutton.jar,test.jar
    webUtilArchive=frmwebutil.jar,jacob.jar
    baseHTMLjinitiator=webutiljini.htm
    #lookAndFeel=Oracle
    splashscreen=ash.gif
    logo=none
    separateFrame=false
    ******************************************** registry.dat
    ---=========================
    # This is the Registry file.
    # This file contains the logical [Java] Class name and an associated
    # [numerical] identifier that will be used to refer to objects of the
    # class in order to reduce the amount of information that needs to be
    # repeatedly transmitted to the client.
    # This file is of the Form understood by java.util.Properties (for now)
    # The System Level sound file is relative to the CODEBASE
    oracle.classById.1=oracle.forms.engine.Runform
    oracle.classById.4=oracle.forms.handler.FormWindow
    oracle.classById.5=oracle.forms.handler.AlertDialog
    oracle.classById.6=oracle.forms.handler.DisplayList
    oracle.classById.7=oracle.forms.handler.LogonDialog
    oracle.classById.8=oracle.forms.handler.DisplayErrorDialog
    oracle.classById.9=oracle.forms.handler.ListValuesDialog
    oracle.classById.10=oracle.forms.handler.EditorDialog
    oracle.classById.11=oracle.forms.handler.HelpDialog
    oracle.classById.12=oracle.forms.handler.FormStatusBar
    oracle.classById.13=oracle.forms.handler.MenuInfo
    # oracle.classById.14=UNUSED
    oracle.classById.15=oracle.forms.handler.ApplicationTimer
    oracle.classById.16=oracle.forms.handler.MenuParametersDialog
    oracle.classById.17=oracle.forms.handler.PromptListItem
    oracle.classById.18=oracle.forms.handler.CancelQueryDialog
    oracle.classById.257=oracle.forms.handler.TextFieldItem
    oracle.classById.258=oracle.forms.handler.TextAreaItem
    oracle.classById.259=oracle.forms.handler.FormCanvas
    oracle.classById.261=oracle.forms.handler.ButtonItem
    oracle.classById.262=oracle.forms.handler.CheckboxItem
    oracle.classById.263=oracle.forms.handler.PopListItem
    oracle.classById.264=oracle.forms.handler.TListItem
    oracle.classById.265=oracle.forms.handler.CfmVBX
    oracle.classById.266=oracle.forms.handler.CfmOLE
    oracle.classById.267=oracle.forms.handler.RadioButtonItem
    oracle.classById.268=oracle.forms.handler.ImageItem
    oracle.classById.269=oracle.forms.handler.IconicButtonItem
    oracle.classById.270=oracle.forms.handler.BlockScroller
    oracle.classById.271=oracle.forms.handler.JavaContainer
    oracle.classById.272=oracle.forms.handler.TabControl
    oracle.classById.273=oracle.forms.handler.ComboBoxItem
    oracle.classById.274=oracle.forms.handler.TreeItem
    oracle.classById.281=oracle.forms.handler.PopupHelpItem
    # Defaults for the Font details, all names are Java Font names. Each of
    # these parameters represents the default property to use when none is
    # specified.
    # defaultFontname represents the default Java fontName.
    # defaultSize represents the default fontSize. Note that the size is
    # multiplied by 100 (e.g. a 10pt font has a size of 1000).
    # defaultStyle represents the default fontStyle, PLAIN or ITALIC.
    # defaultWeight represents the default fontWeight, PLAIN or BOLD.
    default.fontMap.defaultFontname=Dialog
    default.fontMap.defaultSize=900
    default.fontMap.defaultStyle=PLAIN
    default.fontMap.defaultWeight=PLAIN
    # Default Font Face mapping.
    # appFontname represents a comma delimited list of Application Font Names.
    # javaFontname represents a comma delimited list of Java Font Names.
    # The number of entries in the appFontname list should match the number in
    # the javaFontname list. The elements of the list are comma separated and
    # all characters are taken literally, leading and trailing spaces are
    # stripped from Face names.
    # Note that this file uses the Java 1.1 Font names in order to be able to
    # handle the NLS Plane (BUG #431051)
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial, Kunstler Script
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif, Kunstler Script
    # The Application Level icon files are relative to the DOCUMENTBASE
    # example: icons/
    # or an absolute URL.
    # example: http://www.forms.net/~luser/d2k_project/
    default.icons.iconpath=
    default.icons.iconextension=gif
    # Application level settings to control UI features
    app.ui.lovButtons=true
    app.ui.requiredFieldVA=false
    # The background color is specified as an RGB triple.
    app.ui.requiredFieldVABGColor=255,0,0
    ---====================================
    I tried many times. But could not be successful. Then I just kept my icons in
    \forms90\java directory without making jar. In my form, icon file name is the icon name without extension. Here, i can see my icon in button. but if i replace an icon
    without changing the name of the icon, then i always see the old icon. The new icon, i can not see.
    Please, help me with only Oracle 10g AS how i can see icon in button. Let's assume, there is not oracle 10g DS (any development tool) in the machine where the form is run.
    Please, guide me clearly step by step so that i might be successful.
    Thanks.
    TKARIM

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

  • Missing DataBase Login information for deployed VS2008 w/Crystal Report

    I'm creating a Windows Form application using VS2008 Pro and the basic Crystal Reports (included).</br></br>
    I've successfully added a crystalreportviewer control and a crystal report (.rpt) to my form. I've written the following code in the code behind to programmatically load/bind the report to the viewer. Everything works fine on my development machine (or any machine that has Visual Studio installed). Where I'm encountering problems is when I deploy the application to a machine that does not have VS installed (I have downloaded and installed the "Crystal Reports Basic for Visual Studio 2008 Redistributable Package" for the appropriate processor type on this non development machine) that I'm getting an error . It prompts for "DataBase Login". The ServerName, LoginID and Password are all there, but the "DataBase" field is empty and disable for user input.</br></br>
    Why is the DataBase information missing? How can I solve this problem?</br></br>
    (On a side note, I vaguely remember a property for enabling/disabling the prompting of the database login. I can't remember where this was again to double check if that is the culprit. But I'm pretty sure that I did mark it as to not prompt, since it's supplied in the code behind. Plus it doesn't prompt on the development machines. Only on the non-development machines).</br></br>
    Any help is greatly appreciated! Thanks.</br></br>
    The code executed in the PageLoad event of the form.</br></br>
    this.crystalReportViewer1.RefreshReport();</br>
                ReportDocument reportDocument = new ReportDocument();</br></br>
                #region Load Parameters</br></br>
                ParameterFields paramFields = new ParameterFields();</br></br>
                for (int i = 0; i < _parameterName.Length; i++)</br>
                {</br>
                    ParameterField paramField = new ParameterField();</br>
                    paramField.ParameterFieldName = _parameterName<i>;</br>
                    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue();</br>
                    discreteVal.Value = _parameterValues<i>;</br>
                    paramField.CurrentValues.Add(discreteVal);</br>
                    paramFields.Add(paramField);</br>
                }</br></br>
                crystalReportViewer1.ParameterFieldInfo = paramFields;</br></br>
                #endregion</br></br>
                #region Load Report</br></br>
                string reportUrl = "";</br></br>
                string exePath = Application.ExecutablePath.ToString();</br>
                exePath = exePath.Remove(exePath.Length - 18, 18);</br>
                exePath += _reportName + ".rpt";</br>
                reportUrl = exePath;</br>
                reportDocument.Load(reportUrl);</br>
               #endregion</br></br>
               reportDocument.SetDatabaseLogon("myUserName", "myPassword", "myServer", "myDataBase");</br></br>
                crystalReportViewer1.ReportSource = reportDocument;
    </br></br>
    Edited by: mtech8 on Jan 9, 2010 3:03 PM. Corrected formatting issues to make post readable.

    HI. Ludek,
    Thanks for the tips. I tried both, but the problem presists.
    On a side note, I did get my hands on yet another "non-development machine". This one ran with Window's Vista appeared to work (even with my original code).
    The "non-development machines" that I've tested on are Windows 7 and Window XP machines. On these machines, when I commented out the reportDocument.SetDatabaseLogon line, when I try to load the report, it still prompts for the Database Logon information, however, it also has the "Database name" empty and disabled.
    Since it worked on a non-development machine with Win Vista. I don't think there is a problem with references or the Crystal runtime packages.
    As far as permission for the report to contact the database, I'm guessing there isn't a problem there either because the application does successfully connect to the database.
    I'm connecting to a SQL2005 database and using the SQL Native connection.
    On a side note: as for the enabling prompting, I just remembered that it was an option available when using Crystal Reports with a web project. Thus I couldn't find it here with a Window's Form project.

  • Crystal report addon prompt database login screen

    I'm trying to run a crystal report using crystal report add-on 1.0 from SAP, however, I always see the screen that prompts for database login when trying to generate the report.

    Dear Khuen Phan,
    Do you use correct correct connection from Crystal Report design such as OLE DB instead of using ODBC connection?
    Cheers,
    danny

  • Crystal Report Print Preview presenting users with Database Login

    Issue
    A user amended a crystal report form, on doing so has now made that Form unavailable to the majority of users to Print or Preview this is in 8.8 PL10. All other users on Previewing are presented with a window  Database Login, but this only presents the server name, Database name is blank and greyed out and then there is only Login ID and Password available. If you enter in the database password a message appears stating failed login.
    We have access to the SAP server and logged in and get the same message! but on the users machine who amended the Form they can print? any suggestions greatly appreciated

    Hi Roger,
    The problem sounds similar to what I've had recently, it was resolved by changing the database connection type to SAP Business One in Crystal Reports 2008, I can confirm that using OLE DB or other will still cause the login issue on other machines off the SQL server, the SAP Business one connection solves the issue.
    I was fighting with this for hours, hope this helps you all.

  • Parameters and database login with Web Services SDK

    I need to know how to do the two most common report tasks through the Web Services interface to Crystal Reports Server 2008:
    How do I get a list of a report's parameters and set the parameter's values?
    How do I set the database login information?
    I have considerable experience with writing custom web interfaces for Business Objects Enterprise with .NET, but now we're supposed to use web services instead of Enterprise services, especially when writing Windows forms apps. The official line is that writing thick client apps using Enterprise services is "possible but not supported." I can't seem to find the equivalent to the .Parameters property in Web Services.
    The tutorials for Web Services aren't much help. The BIPlatform examples show how to schedule a report without parameters and without setting the database login, but this isn't much help in the real world. The ReportEngine tutorial was apparently written by someone else, and is little or no help.
    This seems like such a simple question, but I have wasted an entire day and am no closer to the answer.

    I think the following resources will help:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/GettingStartedwiththeWebServicesSDK
    http://help.sap.com/businessobject/product_guides/xir2PP/en/qaaws.pdf
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm
    Also, see this forum thread:
    Web Services SDK secLDAP
    Ludek

  • Avoid Database Login prompt when using CrystalReportViewer

    Is there a way to keep the Database Login prompt from coming up when using Crystal Reports runtime 2008 SP2? I'm using that plus Visual Studio 2008 to develop a Windows Form application to view reports on a client machine that accesses data on a seperate SQL Server 2005 machine. My customer would like to avoid having users manually enter anything everytime a report is opened with the Crystal Reports viewer.
    I've used the following code with ODBC and OLE DB report connections. When I use ODBC, the prompt comes up with Integrated Security checked which must be cleared. When I use OLE DB, the prompt comes up with Database Name blank and greyed out so I cannot manually enter it.
    Am I missing something here?
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Windows.Forms
    Public Class Form1
        Private Sub setDatabaseLogon(ByVal myConnectionInfo As ConnectionInfo)
            Dim logOnInfos As TableLogOnInfos = CrystalReportViewer1.LogOnInfo
            For Each logOnInfo As TableLogOnInfo In logOnInfos
                logOnInfo.ConnectionInfo = myConnectionInfo
            Nex
        End Sub
        Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
            setDatabaseLogon(myConnectionInfo)
            myConnectionInfo.DatabaseName = "ClearView"
            myConnectionInfo.UserID = "reports"
            myConnectionInfo.Password = "dstreports"
            myConnectionInfo.IntegratedSecurity = False
        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ConfigureCrystalReports()
        End Sub
    End Class

    Thanks Jonathan for the tip. I tried it before and after the setDatabaseLogin call yesterday, but got the same results. I'm still going to follow your suggestion because that makes more sense.
    Turns out it was the configuration of my ODBC/System DSN that was causing the problem. I reconfigured the System DSN by clearing the check box to provide username/password and now I don't get the Database Login anymore.
    I found a different blog post that answered the OLE DB issue I was seeing where the DatabaseName was coming up blank:
    Login Error Database at Runtime
    Haven't tried it yet and probably won't because I got the Viewer to work with ODBC the way I like it.
    Thanks for the help!

  • VS Net 3.5 Crystal Reports Deployment causing database login prompt

    I have deployed a Visual Studio executible module written in VB Net 3.5 SP 1 with Crystal Reports. When the user tries to view a report(s)
    they are prompted to login in to the data base that has been data sourced into the report module. The correct database was verified before the build was made. The developer is able to run the report in a run mode on the local machine where the VB project was created.
    In the properties section in the project the following check boxes pertaining to reports were checked on:
             Crystal Reports Basic for Visual Studio 2008(x86, x64)
             Microsoft Visual Studio 2008 Report Viewer
    Notes: If the executible module is deployed to a machine that has Visual Studio 2008 installed, the Reports run fine without a database login prompt.
             If the executible module is deployed to a machine that does not have Visual Studio 2008 installed, the user is prompted for a login.
             The data base is a SQL server 2008 database.
    I'm being prompted for a server/database login when deploying the application and running it on a machine that does not have Visual Studio 2008 installed on it. One thing I forgot to mention is that the prompt dialog has only the database server name pre-filled but there is
    no database name in the dialog. Both of these fields are grayed out. The Crystal Report was updated to reference the new server and database, and I also verified the database successfully.

    Hello,
    Not sure what DB driver you used to create the reports but if it's the native driver then you need to install the Native client from MS SQL Server 2008 CD/DVD onto the app server also.
    MS SQL 2008 will not use MDAC, which is always installed. It requires the client to be installed.
    There is also an issue when using OLE DB driver and Time(7) field types in MS's driver and Crystal Reports. Cr see's them as string fields, the driver returns the wrong field type to CR. ODBC does work with these field types.
    And is your application running in 32 or 64 bit mode?
    Thank you
    Don

  • The report you requested requires further information. Database Login.

    I have developed a simple report (crystal XI) and deployed to Crystal server.  When viewing the report, the user is asked to login to database with ID/password.  The report works well in dev environment.  The report is not called programmatically via VB, C#, ASP, ... therefore I cannot set ID/password in source code. 
    I am looking for a dialog screen within dev environment that allows me to force the report to keep the ID/password with it and use it to connect to DB at runtime.

    >
    Navin Raja wrote:
    > Hey,
    >
    > The report prompts for Database login if the report is created with dynamic parameters in crystal reports designer and deployed to crystal server.
    >
    > Logon to Central managenent Console (CMC) using the Administration Launchpad.
    > Open the report just saved in Crystal Reports Server.
    > Click Process tab of the report.
    > Click Database tab under Process tab.
    > Enter the Oracle database Server's username in the textbox for "Username".
    > This username should Previleges to access or administrative previleges to make changes in CMC.
    > Enter the password for the "Password" textbox.
    > Click "Use same database logon as when report is run" under "When viewing report:".
    > Click the "Update" button.
    > Click "Properties".
    > Click "Preview".
    >
    >
    > Let me know if it still prompts for the password.
    >
    >
    > Thanks,
    > Naveen.
    Is there a way to set this for multiple reports at a time?

  • Report asks for database login in deployed version using crystal runtime for vs2008

    I am developing an application with VS2008 .Net with an Interface to use external Crystal  reports.
    I created a Report using Crystal Reports 2011 "doku.rpt".
    I am using a CrystalReportViewer "crpv" on a form.
    I am using a ReportDocument object (Variable "ReportDocumentM"), to which I load the file "doku.rpt"  and assign the logon Settings of main and subreports (which are the same for all tables).
    Using crpv.ReportSource = ReportDocumentM I assign the reportDocument to the ReportViewer.
    On my develop System everything works fine, the Report is shown in the Viewer.
    I created a Setup for my application and isnatalled it on another System. I also installed the CrystalRuntime for VS2008.
    When I try to Show the Report, a dailog "Database Login" appears and aks for the Connection.
    where the SERVER, USERID and (sometimes the PWD) Input fields are filled with  the correct values, but always the DATABASE field is empty.
    SERVER and DATABASE fields are READONLY.
    Hours and hours I tried differnt things, I also filled the logon info of the ReportViewer himself, nothing helped.
    The code:

    Sorry, I found the solution in another discussion:
    "Crystal ask for DB Connections on new installation"
    Correct Answer by Marc Trudel  on Jan 9, 2014 6:57 PM ' Solved Reports are all saved with SQLNCLI which is Sql Native client 9 (2005) New computers only have SQLNCLI10 which is Sql Native Client 10 (2008) Customer will either install SQL CLient 10 on all old computer and upgrade the reports or install SQL Client 9 on new computers which will avoid upgrading hundred of reports
    In my case the original Report was created on a System with both SQLNativeClient 9 and SQLNativeClient 10 on it. Because I originally used a SQL2000 database as datasource, the SQLNativeClient9 was used. It wasn't a Problem on the System when I dynamically connected to a SQL2008R" database, probably because the NativeClient9 was still there and could be used. On the other Computer only the NativeClient10 was existing and this caused the Problems.
    But I think that this is a bug in Crystal: I think ist normal, that from time to time there are changes in DataBase Connections and Clients, so the reports should be able to work also with new Clients. At least there  should be a message to inform about the Problem.

  • Does Form 10g support database 8.1.7..? what version it support? Thanks.

    Does Form 10g support database 8.1.7..? what version it support? Thanks.

    I've never heard, that forms 10g not runs on 8.1.7.
    The list of certified combinations can be found on metalink.oracle.com

Maybe you are looking for

  • Lenovo T500 Brief Review

    Hello Lenovo Community! Recently, I bought a Lenovo T500. After much research and reading many user's opinions as possible (two of which that was really helpful was on this forum by MidnightSun and www.notebookreview.com) I chose the T500. In my rese

  • My home sharing is not working - connection is dropping out from iMac to iOS devices

    I have a 2011 iMac running Mountain Lion, and am having real problems accessing my itunes library with my iOS devices (I had the same problem with Apple TV before I bought a set of power line adapters and now running an Ethernet into it). I keep my i

  • This file could not be found

    Then what am I looking at if a row of thumbsis displayed at bottom and an image in the middle area?

  • Quality Manager - Clearing Unscored Call recordings

    Probably a very basic question, but unfortunately I'm not yet familiar with this product. Some of our supervisors wish to clear out a backlog of "Unscored" recordings from the list in Quality Management Desktop, so that they can start with a clean sl

  • Hi Im trying to add Sentry login to my iWeb pages.

    I have to copy code into the HTML. How do I do this, Ive managed to save the website to a folder on my computer, do I now add the code and if so how do I get it back from my folder to be published. Is there any other easier way? I read somewhere abou