How to set DbConnections when scheduling a crystal report using Crystal Reports Server Java SDK?

Post Author: Manjula
CA Forum: JAVA
Hi,
Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:[Database Vendor Code:6550].
Would be thankful if someone could answer my point as applicable.
Here is the code attached.
ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
for(int i=0; i<dbLogonSize; ++i) {
IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
dbLogon.setDatabaseName("DBname");
dbLogon.setUserName("usrname");
dbLogon.setPassword("pwd");
Thanks in advance.

Post Author: Manjula
CA Forum: JAVA
Ted,
Thank you for your valuable information.
First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
Would be greatful if you answer my question and provide me some guidance.
Thanks in advance.

Similar Messages

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to set Full Crawl Schedule as None via Powershell command

    How to set Full Crawl Schedule as None via Powershell command

    $ssa = "Search Service Application"
    $contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"
    $contentSource.IncrementalCrawlSchedule = $null
    $contentSource.FullCrawlSchedule = $null
    $contentSource.Update()
    Basically you set Schedule to Null.
    Amit

  • Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Could anyone please let me know how to set a ICC profile with Acrobat dlls using Csharp or VB

    Cant we even use the dlls in an application?
    In order to automate Acrobat, you need to have Acrobat installed. There is
    nothing you can do with just the DLLs. As was already stated, Acrobat is
    not licensed for use on a server, but regardless of that, it's also
    not technically suitable for server use. You need to find a solution
    outside of Acrobat to solve your problem.
    It also seems that you don't have a good understanding of what is going in
    inside a PDF file. PDF is a very complex file format, and based on
    your questions
    and followup questions, you need to spend a considerable amount of time
    getting familiar with the PDF file format to understand how color works in
    the PDF context. Reader the PDF spec, while paying special attention to the
    section about color. You will find out that if you want to convert the
    color space of a "PDF file", you actually need to convert the color space
    associated with every single object in your PDF file. That is fairly simple
    for vector graphic and text, but when it comes to images, you may have to
    convert the image data. Once you have a good understanding of what it is
    you need to do within the PDF file, then you can start looking for tools
    that allow you to do that. Again, Acrobat and therefore the Acrobat SDK is
    not suitable for this task. If you want to stay with Adobe products take a
    serious look at the PDF Library, which his licensed through Datalogics (
    http://www.datalogics.com/products/pdf/pdflibrary/). As you've mentioned,
    there are other, non-Adobe PDF libraries that you can also use, but this is
    the Acrobat SDK forum, so I won't discuss any of those 3rd party solutions.
    You are wasting your time while looking for a simple solution that does not
    exist.

  • How to Create an Input Schedule Comparison with Data Using EVDRE

    Hello,
    I try implement the scenario described in "How to Create an Input Schedule Comparison with Data Using EVDRE".
    Once I am using the "Insert Function" from the panel and selecting the EVTIM function Excel crashes (see page 8 How to paper).
    Systems:
    BPC 7.0 NW SP02
    Office 2007
    BPCADminClient and BPCOfficeClient up to date
    Have anyone a solution?
    Thanks
    Oktay

    Hi Oktay -
    This function works in my BPC70NW SP02 system. Your issue might be that you are trying to access a TIME member that does not exist. Please make sure the offset value is a valid dimension member.
    I can confirm that EVTIM does allow the offset for base members (such as 2009.MAY) as well as parent nodes (such as 2009.Q1 or 2008.TOTAL)... BUT...the offset result of the EVTIM function needs to be a valid dimension member!
    Regards,
    Sheldon

  • How to view multiple reports using crystal reports 2008

    Hi ,
    I am working on vb6 project where in i am trying to generate reports using crystal reports 2008.
    For this , i am making use of Interop Form Wrapper class in vb6.
    I have a business requirement where in i need to view multiple reports  on my screen.
    please suggest me as to how this can be achieved.
    Thanks in Advance
    Regards,
    Ramnath

    Hi Ludek,
    I  am directly now using crystal report viewer control in my vb6 project.
    As mentioned in previous mail, i have created a Interop Wrapper class over crystal report viewer control in .Net using visual studio 2008 and i am making use of wrapper class in my vb6 project.
    I am able to access all the properties that have been defined in my Interop wrapper Class but the only stuff i need is to view multiple reports generated one after the another for a single button click Event.
    Please find below the code that iam using to load and generate reports.
    Note:
    1. frm is the instance of my Interop Wrapper Class built over CR viewer control
    2. All the user defined methods of Wrapper class that you see below will internally call the actual crystalreportviewer   properties defined in my Wrapper class
    Say for e.g   frm.DisplayToolbar(True) will internally  execute  crystalreportViewer1.DisplayToolbar = True
    frm.SetReportSource(strRptFilePath,0)          
    frm.SetSelectionFormula(strrecordSelectionFormula)
    frm.DisplayToolbar(True)               
    frm.ShowExportOption(True)
    frm.ShowPrintOption(True)
    frm.ShowRefreshOption(True)
    frm.ShowPAgeNavigateOption(True)
    frm.ShowZoomOption(True)
    frm.ShowParameterPanelOption(True)
    frm.Show()
    Thanks in Advance
    Regards,
    Ramnath

  • How to set the a  graphic ( 3 radio buttons ) in the report ?

    Hi  Exports,
    1.  How to set the a  graphic ( 3 radio buttons ) in the report ?
    Acutely  I  want to  fetch the record from MCHB-CLABS and MCHB-CSPEM , if the data read from MCHB-CLABS will show the green light otherwise if read from MCHB-CSPEM, it will show red light.
    (e.g :  if syntax error in report  it is showing red light signal , like that how to set in report program)
    Thanking you.
    Subash

    Hi,
    In your internal table declaration, include yet another field for lights..
    DATA: begin of itab,
               lights type light,
              end of itab.
    DATA: GV_LAYOUT TYPE SLIS_LAYOUT_ALV.
    GV_LAYOUT-LIGHTS_FIELDNAME = 'LIGHTS'.
    Use the GV_LAYOUT in your FM to display the ALV.
    IS_LAYOUT                         = GV_LAYOUT
    If itab-lights = 1 => Error
      itab-lights = 3 => Success
      itab-lights =2 => Warning

  • How to set values of formula fields during runtime in crystal reports

    Hello All,
    Could any one help in letting me know how to set the values of a formula in the runtime.
    I tried using the below systax in the formula field
    Assume that I have 2 formula fields
    1. format_count
    2. format_display
    my formula is like below:
    in the formula field format_count i have
    format_display=pagenumber
    when checking for errors its throwing error stating "stamement is expected"
    Could any one help in resolving this
    Thanks

    Hi Ranjeet,
    Whenever you assign values to a variable, you need to use :=
    Like this:
    numbervar x := pagenumber
    And what exactly are you trying to do anyway?
    -Abhilash

  • I can not reveal how to set that when I open my Mozilla to appear on the home page, just bookmarks in pictures...

    like this one:
    http://www.google.hr/imgres?imgurl=http://sistemac.carnet.hr/system/files/opera.png&imgrefurl=http://sistemac.carnet.hr/node/147&usg=__Cw6wRHOdgK0llehsTsrdcz8jBLk=&h=689&w=815&sz=91&hl=hr&start=0&zoom=1&tbnid=5SfIkfvCCmDdFM:&tbnh=123&tbnw=145&prev=/images%3Fq%3Dopera%26um%3D1%26hl%3Dhr%26client%3Dfirefox-a%26sa%3DN%26rls%3Dorg.mozilla:en-US:official%26biw%3D1024%26bih%3D581%26tbs%3Disch:10%2C114&um=1&itbs=1&iact=hc&vpx=627&vpy=134&dur=1462&hovh=206&hovw=244&tx=140&ty=104&ei=718FTeKqI8vwsgaL6oHfCQ&oei=718FTeKqI8vwsgaL6oHfCQ&esq=1&page=1&ndsp=15&ved=1t:429,r:8,s:0&biw=1024&bih=581
    thnx

    See [[How to set the home page]]

  • TC set up when not connected to internet/using as a router

    Hi,
    I bought a TC and can't seem to get it to back up at a reasonable speed with an ethernet cable attached to my MBP. I have 180GB to back up, I've been getting 1GB in 3 hours, which is ridiculous, so something must be wrong. My suspicion is it's doing it wirelessly.
    It's not set up as a router because I'm staying with friends and I can't seem to see in the instructions how to set it up to transfer the data by cable. Can anyone suggest how to move forward, I'm just feeling frustrated with it, and I can't have it tied to a desk for 540 days to do a first back up.
    Anyone's assistance would be really appreciated - with the sparks out the back when I first plugged it in - I'm wondering whether I should just send it back... this has not been plug and play so far, but appreciate it not being connected to the net/acting as a router might be complicating things a bit.
    Thanks
    Ben

    Hello benho. Welcome to the Apple Discussions!
    with the sparks out the back when I first plugged it in - I'm wondering whether I should just send it back
    You did power all your networking equipment off before making any connections ... right?
    You can configure the Time Capsule (TC) as either a stand-alone router or to join an existing wireless network in order to perform backups.
    If your Mac has AirPort at the top of the network connections list, it will attempt to connect wirelessly first, and then, move down the list to the next networking option. If you want to "force" your computer to try Ethernet first, just move this option to the top of the list.

  • How to set up remote access on wvc80n without using TZO

    Just purchased the WVC80N, but how do you set it up for remote access without using TZO?  I can not get TZO to work w/ my Uverse 2wire 3800-hgv-b router.  Please help as the uverse customer support has not been helpful with port forwarding either.

    Hi, I'm a newbie at this, so pls be patient with my terminology...  I want to install 2 or 3 of these cameras in my mother's home, and I will have AT&T DSL service (one dynamic IP address) there with only a modem/wireless router.  I want to access the cameras from my laptop or from my Blackberry Tour when I am traveling.  Also want to allow access for my other relatives.  I do not have another home computer to serve as a WHS, and my laptop is obviously not connected to the internet all of the time.  Can I use the DDNS setup with DynDNS to provide access?  The instructions that I read seemed to imply that I needed a WHS in order to forward ports, etc.  Thanks in advance for your help.. Garry

  • How to set organizer mail id in meeting request  using CL_APPOINTMENT class

    Hi,
    I have two questions here.
    1. How to set the organizer mail id using the method of CL_APPOINTMENT class? I have used the method   SET_ORGANIZER of class CL_APPOINTMENT by passing my SAP user name 'GCM' but when i received the appointment within outlook, i am able see my server mail id like 'Madhu G C <[email protected]>' instead of my outlook mail id '[email protected]'.
    2. How to set reoccursive meeting request in Outlook using cl_appoinment?Example: i have a training on alternative days say on 01-mar, 03-Mar, 05-mar. When i book the course, i should get these alternative days in outlook in a single meeting request?
    Best Regards,
    Madhu

    Please post the question in correct forum. This forum is for webdynpro abap.
    Regards
    Srinivas

  • How to set Current quota template dropdownto 50 GB using powershell script

    In central administrator under Application Management -> Configure quotas and locks  we have Current quota template drop down. I  want to set drop down value to 50 GB using powershell . Is it possible and it if it possible then How ? Please
    let me know 
    Thanks in Advance 
    Regards
    Subhash
     

    Hi Sub_84,
    A quota template consists of storage limit values that specify the maximum amount of data that can be stored in a site collection. When the storage limit is reached, a quota template can also trigger an e-mail alert to the site
    collection administrator. You can create a quota template that can be applied to any site collection in the farm. The storage limit applies to the sum of the content sizes for the top-level site and all subsites within the site collection.
    You can create quota template using powershell, ojbect module and sharepoint UI.
    Create new Quota template using powershell:
    $newQuotaTemplate = New-Object Microsoft.SharePoint.Administration.SPQuotaTemplate
    $newQuotaTemplate.Name = "New Quota Template"
    $newQuotaTemplate.StorageMaximumLevel = (150 * 1024) * 1024
    $newQuotaTemplate.StorageWarningLevel = (100 * 1024) * 1024
    $newQuotaTemplate.UserCodeMaximumLevel = 300
    $newQuotaTemplate.UserCodeWarningLevel = 300
    $contentService =[Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $contentService.QuotaTemplates.Add($newQuotaTemplate)
    $contentService.Update()
    Check the link which can guide you how
    http://www.c-sharpcorner.com/uploadfile/anavijai/quota-templates-in-sharepoint-2010/
    Please mark the Answer and vote me if you think that above solution can help you to resolve the issue

  • How to set a default date as a parameter in Microsoft Reporting Services 2008 to January 1st

    How can I set a default parameter for date for 01/01/yyyy.

    Hi Giss68,
    If I understand correctly, you want to set the first day of current year as a default value of a parameter in Microsoft Reporting Services 2008 report.
    If in this scenario, we can use the expression below as the default value in the parameter:
    =DateAdd("d",-DatePart(DateInterval.DayOfYear,Today,0,0)+1,Today)
    The following document about DateAdd function is for your reference:
    http://technet.microsoft.com/en-us/library/aa337194(v=sql.100).aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Get error when preview marketing documents by using crystal report layout

    Hi experts,
    I want to switch to using Crystal Report for marketing documents layout.  I have import Sales Quotation u2013 Generic (CR) layout which provided by XX-1.2.b1p package. I can preview added records but it doesn't work on drafting documents and saved drafts. The system prompt u201CThe system cannot find the path specifiedu201D and u201CObject reference not set to an instance of an objectu201D. On the same server, it was working fine in our other company database. I don't think this is the problem of database location setting in Crystal Report.  Can anyone give me advices, thanks!
    Regards,
    Ivan

    Hi! Rahul,
    Thank you for your reply first. Your method doesn't work in my case.  Can you tell me the steps of creating a new layout for added records and draft documents.  I have created a quotation layout which work with added records only, the steps has been show below and please comments, thanks.
    1. In Crystal Report > new blank report > create new connection > Choose "SAP Business One" > Select OQUT under "B1 Tables".
    2. Insert "CardName" field to report > Create DocKey@ parameter and  set it equal to DocEntry in select expert record function
    3. Click Add-ins > SAP Business One > Save > Choose company database and input manager password.
    Regards,
    Ivan

Maybe you are looking for