How to avoid database logon dialog on every action of refreshing reports

I am using Crystal reports 208 SP2 and has a database connection to oracle database. Connection is esablished and report retrieves desired data, The problem is when ever i open this report ( which has this connection set) and do a refresh,  the report the LogOn dialog pops up.
How to avoid or save this log on info such that it does not pops up the LogOn dialog when i open the report and do a refresh(F5).?

Hi Don,
Thanks for the reply. To try  your suggested approach, i need some clarifications .
_Problem summary:for refrence, _
I am following the steps mentioned below to establish a database connection, and fetch the data.
1) I am using Oracle drivers for configuring the ODBC data source. As part of configuration i will specify the Oracle server name
2) In crystal reports, Using "Database" menu, i open "Database Expert" dialog and "Make New connection" by specifing the data source mentioned in step 1). During this process, (ODBC)logon information will be filled in. The user ID and password used has all the rights to access the tables in the database. Logon will be successful and connection is established.
3) Further i use the database table from the "Database Expert" on to the report and refresh(F5) to fetch the data.
After step 3, I close the report  and reopen it. Now trying to refresh the database logon dialog pops up. I need to avoid this pop up
Requesting Clarification:;
1) You have specified "When you connect you have the option to use Trusted Authentication, check this option on". Where is this option. Is it in the crystal reports or is it available during data source configuration. Kindly specify.
2) Here "Enterprise logon info that has been configured on the Oracle server." implies the oracle database login information right? If yes, this login details are available and i am using this logon information(i.e. UseriD and Password) during database connection.
If No, Is "Enterprise logon info " is something which should be specifically enabled by DBA in oracle11g configuraion.
Kindly suggest.
Edited by: R Guru on Oct 17, 2009 7:32 PM

Similar Messages

  • How to use native XML driver in CR XI 2 (to avoid "Database Logon Failed")?

    Hello,
    I have a simple scenario:
    The Java Part:
    -Our Java application creates a pair of files: one XML and one XSD.
    -Both files are uploaded to an ASP.NET page along with a report (RPT file - based on the same XSD and some generated XML using the native XML driver) for rendering a PDF.
    The ASP.NET(VB) Part:
    -Reads and stores 3 files (XML, XSD and RPT) to temporary files.
    -Loads the report
    -Updates connection attributes ("Local Schema File" and "Local XML File") to point to those temporary files.
    -Exports the report to a PDF which is returned to the Java part.
    What are the correct steps to accomplish this? I keep on getting "Database logon failed." exceptions.
    My code looks like this:
    Dim doc As ReportDocument = New ReportDocument
    doc.Load(rptPath)
    Dim attr As DbConnectionAttributes
    attr = New DbConnectionAttributes()
    attr.Collection.Set("Local Schema File", xsdPath)
    attr.Collection.Set("Local XML File", xmlPath)
    Dim conn As IConnectionInfo
    conn = doc.DataSourceConnections.Item(0)
    conn.Attributes.Collection.LookupNameValuePair("QE_LogonProperties").Value = attr
    conn.Attributes.Collection.LookupNameValuePair("QE_ServerDescription").Value = xmlPath & " " & xsdPath
    conn.Attributes.Collection.LookupNameValuePair("QE_SQLDB").Value = False
    doc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "")
    Thank you for any help,
    David
    (Crystal Reports XI Rel 2. SP4, .NET assembly 11.5.3700)

    Hi,
    When you get a database logon prompt like this it normally means the dataset you're creating at runtime does not match the schema that the report was designed with.
    The simplest thing to do is write out the dataset to XML with Schema after you fill the dataset. Once you've written out the dataset you can go back to the report in Crystal Reports itself and try to point the report to the XML file directly. If you get any errors this confirms that the dataset does not match what the report is expecting.
    Try it, address any differences, and you should be all set.
    Sincerely,
    Amit

  • How to pass database logon info to a Crystal Report in a subreport with different server name using VS C #

    Post Author: fabu1971
    CA Forum: .NET
    I could pass the database logon in Reports with subreports but the reports with subreports with different  server name I can not pass the logon information . Do you have any idea how I can do that to pass the database logon with different database or server name ?

    Post Author: quafto
    CA Forum: .NET
    You can use the Subreports collection of the ReportDocument object to access all the subreports in your main report. These are returned as ReportDocument objects. Once you have your subreport as a ReportDocument you can loop through your Tables collection and set the ConnectionProperties to your appropriate Server/Database. For example here is some pseudo code: ConnectionInfo boConnectionInfo = new ConnectionInfo();boConnectionInfo.ServerName = "serverName";boConnectionInfo.DatabaseName = "databaseName";boConnectionInfo.UserID = "username";boConnectionInfo.Password = "yourpassword"; foreach(ReportDocument boSubreport in mainReport.Subreports){    foreach(Table boTable in boSubreport.Database.Tables)    {        TableLogOnInfo boTableLogOnInfo = boTable.LogOnInfo;          boTableLogOnInfo.ConnectionInfo = boConnectionInfo;          boTable.ApplyLogOnInfo(boTableLogOnInfo);          boTable.Location = "newtablelocation";     }}

  • How to hide Database Logon option when scheduling Crystal Report in BOE?

    Hi All,
    For security reason, we are try to hide the Database Logon option in Crystal Report Schedule page in InfoView.
    There is option in CMC which we can configure the default Database logon option so that users do not have to enter the logon everytime they view or schedule the report.  However, we are looking to hide this option completely.
    Does anyone know if there is a security setting which can hide the option from specific users?
    Thanks,
    Bobby

    Hi Bobby,
    As Jorge informed that there is no method available within CMC to hide database logon option when scheduling or viewing a Crystal Report in the Info view. This is very much true.
    But as you also mentioned that you don't want your users to enter the database logon credentials evertime they view or schedule a crystal report, there is one setting in CMC which we can do to avoid prompt for database logon credentials.
    CMC - Home - Go to that specific crystal report - Click Process tab - Click the sub-tab 'Database' and at the bottom of the page there is an option "Use same database logon as when report is run". Check this option after providing the database credentials and click UPDATE.
    Now whenever users try to view or schedule this specifc crystal report they won't be prompted for the database logon credentials.
    Regards,
    Venkat

  • How to avoid "font substitution" dialog?

    When I try to manipulate the contents of a text layer via scripting and I don't have the needed font installed, Photoshop opens a dialog asking me:
    When this happens, my script stops running until I click on Ok. How can I prevent this dialog from appearing?
    Thanks in advance.

    Thanks for looking into this!
    PRN is same as Postscript file. We are generating Doc to PRN format then using Adobe Distiller for converting it to PDF file. How can we stop the substitution of the fonts? Also in earlier mail, I have attached the font details of the Adobe Distiller setting.
    Can you please advise us is there any other option/setting? Our requirement is to do without substitute the font from DOC to PDF file.
    Thanks & Regards,
    Sudhakar

  • How to set Database Logon Info, if allowDatabaseLogonPrompting="false"

    Hey,
    Here is the Version Details -
    Crystal report X1 R1
    Sql Server 2005
    Tomcat 5.5.27
    Question -
    I am using jsf viewer to dispaly report in my web project. We don't want to prompt for database logon information before showing the report to teh front user. I have seen few sample jsp code which creates the crystalreportviewer object and set the connectioninfo details and calls the processhttprequest method to render the report. I have tried the same approach and it works for us.
    But our requirement is to just use the jsf tags. Is there a way to pass the database credentials to the jsp without prompting for Logon Information or using the java code to populate the connectioninfo in crystalreportviewer instance.
    Here is the jsp file -
    <%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %>
    <crviewer:viewer displayGroupTree="false" viewerName="CrystalViewer"
    reportSourceType="reportingComponent"
    displayGroupTree="false"       
            displayToolbarExportButton="true"
            displayToolbarPrintButton="true"
            displayToolbarRefreshButton="true"
            displayToolbarToggleTreeButton="false"
            displayToolbarCrystalLogo="true"
    top="100"
    left="200"
    reportSourceVar="#{Report.reportSource}"
    isOwnPage="true"
    displayGroupTree="false"
    allowDatabaseLogonPrompting="false">
    <crviewer:report reportName="Report.rpt">
         <crviewer:partsViewer viewerName="CrystalViewer"
              reportSourceType="reportingComponent"
              title="Fill to Fill Report"
              numberOfRecords="10"
              showHeadings="true"
              showPageNavigationLinks="true"
              allowParameterPrompting="false"
              reportSourceVar="#{Report.reportSource}"/>
    </crviewer:report>
    </crviewer:viewer>
    I am trying to run this and it shows an error page with information Database Login Error.
    I have created the report using JDBC/JNDI database connection with trusted authentication = false.
    The Sql Server 2005 error log shows -
    Error: 18456, Severity: 14, State: 5.
    Logon       Login failed for user ''. [CLIENT: <named pipe>]
    Any help will really be appreciated.
    Thanks
    Bonyshree

    Yes within the report designer i am able to refresh the report and open and close the report without getting prompted. I am not changing any database properties at runtime and using the jar files which come with CR Release 2.
    All i am doing is to export the report in pdf format. Here is the code :
    ReportExportControl exportControl = new ReportExportControl();
    ExportOptions exportOptions = new ExportOptions();
    PDFExportFormatOptions  pdfOptions = new PDFExportFormatOptions();
    exportOptions.setExportFormatType(ReportExportFormat.PDF);                 
    exportOptions.setFormatOptions(pdfOptions);     
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(false);     
    exportControl.setReportSource(this.wrapper.getReportSource());
    exportControl.setName(this.wrapper.getReportName());
    exportControl.setEnableLogonPrompt(false);
    //Pass Fields object to ReportExportControl
    exportControl.setParameterFields(this.wrapper.getFields());
    //Export only works if i pass the connections object with connectioninfo object populated with username and password.
    //We want to run the report using trusted authentication i.e. we don't want to pass username and password.
    exportControl.setDatabaseLogonInfos(connections);               
    if(to_refresh)
      exportControl.refresh();
    If i don't provide the connectioninfo object with proper username and password to run the report inside the java class, it try's to logon to database using username = 'userid'. I think it picks it from the JDBC Connection String created while creating database connection for the report in the designer.
    Here is the jdbc connection string for the JDBC/JNDI connection created inside the report designer:
    !net.sourceforge.jtds.jdbc.Driver!jdbc:jtds:sqlserver://localhost:1433/customer;namedPipe=true!user=!password=.
    Is there a way to get pass this problem??? Is there a way to force the connection from the java class to use trusted authetication??? Can we change the connection string to replace the userid with empty string to force trusted authetication???
    Any help will be really appreciated.
    Regards
    Bonyshree

  • Avoiding Database Logon in Infoview

    I created a Crystal Reports using an Oracle Database. Once the report is completed I saved the report in INFOVIEW under a folder. When I try to run the report from InfoView it asks me for
    Database Logon again.
    I have to enter the user id and Password to make the report run. I want to run the report without asking
    Credentials again.

    there are 2 methods that can help
    1) SSO to the DB which requires Oracles to be integrated with AD(not documented by BO) and BO to be integrated with AD (admin guide)
    2) DBuser DBpass also allows a way to use a predetermined user/pw added to a user account in the CMC.I don't think this is documented externally. You will need to open a case and have an engineer check our internal product forums for a solution.
    Regards,
    Tim

  • How can you make an image change every time you refresh a page?

    Hi.
    I've recently redone my website and was wondering how I could make the image on my main page change every time you refresh the page?
    Like is there a certain script you can use?
    Here's my website
    www.liamfawcett.com
    Thanks

    Copy & Paste the following JavaScript code between the <head> and </head> tags in your HTML document, in Code View of course.
    <script type="text/javascript">
    <!--//Random Banner image on Page Reload
    //store the images in arrays below
    images = new Array(5);
    images[0] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[1] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[2] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[3] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    images[4] = "<a href='http://www.example.com'><img src='some_image.gif' </a>";
    index = Math.floor(Math.random() * images.length);
    document.write(images[index]);
    //done
    // -->
    </script>
    In the array, change URLs (http://www.example.com) to your own links.  Change images (some_image.gif) to your own images.
    Save page.  Preview in browser.  Hit refresh (F5 or Ctrl+R) to see the images change.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • How to avoid the windows "dialog box" when we use flexprintjob class

    in the print segment
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
    it says
       printJob.start();
    This causes the operating system to display a Print dialog box.
    this  windows "dialog box" which is used to set the page size, page index, or some other page settings.
    but in my case , i can't let user see this dialog box.
        how can i avoid this "dialog box" when i call   printJob.start();
    it is my big issue ,please help to give a suggestion

      hi   how can i set the "ie" "internet explorer"  to avoid the "dialog box."  if i have to do it .
    thank you very much !

  • How to avoid the logon screen after closing the browser

    Im working with annonymous users showing a Iview but when I close the browser, instead of closing the browser the logon of portal appears. I dont want that how can I avoid this ?
    thx

    Hi
    I am not clear with your question. How do you close the browser ? Is it by hitting the cross button on the Top right corner ?
    Murali.

  • How to avoid server busy dialog in iac

    Hi,
    I am a beginner in IAC. I am executing a plug-in throung an mfc based IAC dialog box.
    But when my plug-in takes little longer time to execute a pdf, then I am getting a server busy dialog, asking swith to/retry option.
    Can you please let me know how to get rid of this dialog.
    I got the answer in c++ - How to disable dialog "switch to"-"retry"-"cancel" - Stack Overflow
    to use
    AfxOleGetMessageFilter()->EnableBusyDialog(0);
    AfxOleGetMessageFilter()->EnableNotRespondingDialog(0);
    But its giving error  error C2027: use of undefined type 'COleMessageFilter'
    So please anyone help me to solve the issue.
    Thanking You
    Saffiuddin Sheikh.

    Thanks I resolved it I have to include afxole.h

  • BSP - How to avoid the Logon Popup

    Hi All,
    When I test any BSP application from SE80, a popup is displayed asking for username and password. How do I avoid this popup.
    Useful answers will be rewarded.
    Thanks in Advance,
    Regards,
    Archana

    Ask your basis team how much it will cost to implement Single Sign On (for more info search the forums on how to achieve this, since i'm not a bais consultant I can't give tou anymore info)
    regards, Rob

  • How to Avoid Save As dialog when Saving

    We recently upgraded Adobe Reader X to XI.  One difference between the two is the behavior of the Save function the first time it is performed.  In Reader X, when Save was selected, the file would simply save the current file, overwriting the original file.  In Reader XI, when Save is selected, the Save As dialog box appears, and if the user does not change the file name or path, a warning pops up asking whether the existing file should be overwritten. I understand that this behavior is a result of Protected Mode being enabled.  Is there a way to keep PM enabled, but always allow files to be overwritten as was the case in Reader X? 

    Yes, it does.  (as long as the pdf has been opened via a COM interface)

  • How to avoid pop-up dialog? "Read From Spreadshee​t File.vi"

    I am using LV2010 and VBAI2011.
    I am using LV to write vi for my VBAI user interface. VBAI will send the inspection results to vi by "Update Inspection UI".
    I am calling a "Run LabVIEW VI" from within the VBAI. This vi contains a sub-vi "Read From Spreadsheet File.vi"; the "file path" input to this sub-vi is a string control, which will be updated by a string value obtained in previous steps.
    What happen is, when I run the Inspection, a windows "Choose File to Read" will pop up, even though I have already update the "file path" in VBAI. I guess this happens because the "Read From Spreadsheet File.vi" sub-vi didn't wait for the "file path" input, or rather the "file path" update was "too slow"
    How to prevent this from happening?
    Solved!
    Go to Solution.
    Attachments:
    PQT_CurveFitting_Lookupxxx.vi ‏15 KB

    I didn't use your code but tried the attached simple VIs and they work well. Can you create a simple VBAI interface that just runs these two VIs and see if you are able to replicate the issue? The VIs are LabVIEW 2010 SP1
    Attached is my VBAI inteface as well, which is 2011 SP1.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    Run1st.vi ‏10 KB
    Run2nd.vi ‏11 KB
    Test1.vbai ‏3 KB

  • How to avoid missing font dialog box(alert) while running the script??

    Hi....
         In Illustrator CS4 ,I tried to skip missing font dialog box(alert box) by using the following  script .But,I could not skip the dialog box
    So if you have any suggestion about this let  me know..
    tell application "Finder"
      set user interaction level to never interact
        activate
        set fileName to (path to desktop folder as string) & "fer11757_f1208.eps"
        --set user interaction level to never interact
        --    set user interaction level of script preferences to never interact
        open file fileName
        --set alert missing fonts to true
        set user interaction level to never interact
        activate
    end tell
    display dialog ("completed")
    end tell
    Thanks,
    Mubeen

    Does this NOT error when run? Your target application here is 'Finder' Apple's system file browser and you are giving it Adobe illustrator commands?
    Im not 100% about the versioning with Illustrator installs I think they are all just…
    Tell application "Adobe Illustrator" -- No CS Versioning?
         -- do stuff here
    end tell
    you could check by just picking the app from this list
    choose application

Maybe you are looking for