How can I replace an existing report?

The way our Enterprise server is setup, we have a folder that we publish all reports to. This folder is proteced from view from anyone but admins.
In order for our users to "see" a report we create a shortcut of the report in their User folder.
This works well, with one exception. When we need to put a new revision of a report out there, we have to recreate all of the existing user shortcuts. There is no way to "replace" an existing report (and inherit its underlying "ID" in the sql database) and have all of the shortcuts use the new report. This is especially painfull when the reports are scheduled to run. All the the scheduling/parameters/etc ahas to be recreated after the new report is publised to the server.
I assuem there is some way to accomplish this with the SDK. I was wondering if someone can point me in the right direction. I am rather new to DOT Net development (about a year), but I have been writing "C" and "C++" code for 20 years, hopefully I can figure this out..
Thanks in advance for any input!
Shayne

Don't have a C# version, but here's a VB.NET version:
Private Sub Page_Load(ByVal sender as System.Object, ByVal e As System.EventArgs)
    Dim boUsername As String = "Administrator"
    Dim boPassword As String = ""
    Dim boCmsName  As String = "TUEDA-BEXIR2S2"
    Dim boAuthType As String = "secEnterprise"
    Dim rptPath As String = "C:\ASP_NET\update_doc\302810928JDBC.rpt"
    Dim query As String = "Select Top 1 * From CI_INFOOBJECTS " _
                          & " Where SI_KIND='CrystalReport' " _
                          & " And SI_INSTANCE = 0 " _
                          & " And SI_NAME='302810928ODBC'"
    Dim boSession As EnterpriseSession
    Dim infoStore As InfoStore
    Dim reports   As InfoObjects
    Dim report    As Report
    Try
        boSession = (New SessionMgr()).Logon(boUsername, boPassword, boCmsName, boAuthType)
        infoStore = New InfoStore(boSession.GetService("", "InfoStore"))
        reports = infoStore.Query(query)
        report = reports.Item(1)
        report.Files.Item(1).Overwrite(rptPath)
        report.RefreshProperties()
        infoStore.Commit(reports)
    Finally
        If Not IsNothing(boSession) Then
            boSession.Logoff()
        End If
    End Try         
End Sub
Sincerely,
Ted Ueda

Similar Messages

  • How can I replace an existing app on iTunes that was created with PhoneGap to a new version created with Adobe DPS? I get a 'supported devices' error message when I try to upload to iTunes! HELP!

    I created an app using PhoneGap a couple of months ago, and have now just amended it using Adobe DPS. But when I come to upload it to iTunes, I get the error message "This bundle does not support on or more of the device supported by the previous app version" How can I correct this?

    I suspect your PhoneGap app was flagged as running on both iPad and iPhone. You'll need the same from DPS. You can do this in AppBuilder at the start of the wizard where it asks what kind of devices you want to support. Note that this is only available to DPS Professional and Enterprise customers. If you are a Creative Cloud customer building a Single Edition application it will only support iPad.
    Neil

  • How can I replace an existing html website with a new one I just created on iWeb?

    I just created a new website on iWeb. It as to be published as a html site. Someone else already created a previous site, and used the name of my company. We hired him to do it, but he didn't do that great of a job, so now I need to know how to replace it. Thank you for your help!

    Make sure the site folder created by iWeb is named exactly the same as the site folder currently on the server.
    OT

  • How can I replace my start up hard drive in mac pro 2008?

    Mi hd is geting old and I am worry about loosing Everything any time how can I replace my HD without reinstaling Every single Aplications?
    Any Advice thanks.

    Clone it.
    Or install OS X and it will ask to use Setup Assistant and import everything when it sees another system drive.
    Use cloning as a backup method.
    Keep only the OS and apps and a small user library on the boot drive.
    Now is a good time to invest in an SSD for your system.
    A new drive for data and media files.
    Use your existing drive(s) as backups and pull them once the system and data are copied, cloned, and moved over.
    Use TimeMachine for some file backup as well.
    Clone your system:
    How to Clone a Volume
    Using Cloning as a Backup Strategy 
    See also Erasing a Drive, How and Why to Partition a Drive, RAID.
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner

  • How can i replace the standard ESS iview with my own iview

    I want to replace standard ESS addr iview with my own WD developed by ABAP
    I added the iview(my WDA) into standard ESS addr page.
    (pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.cn/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr)
    And make it visible.
    But I got this error in ESS PA addr :
    WebDynpro Exception: Application PER_ADDRESS_CN Does Not Exist
    Here is the error code :
    Error code:ICF-IE-http-c:100-u:AC_WANGFZ-l:1-s:CE1-i:SAPCE101_CE1_01-w:0-d:20070514-t:172301-v:RABAX_STATE-e:UNCAUGHT_EXCEPTION
    So , how can i replace the standard ESS iview with my own iview?
    Thanks

    Can you see any Javascript EPCF code in the old iView  ?  You are surely just going to have to find it  (if our hunch is correct) and analyse it and copy it into your new iView so that it functions in some way that at least does not error

  • How can  I checkout an existing file from CVS without going through the wiz

    How can I checkout an existing file from CVS, that is not already in my local jdev, without going through the wizard and checkingout everything?

    You can't. AI doesn't produce .PLT files.

  • Is there any way to replace my iphone 5. The back camera is not working. Since there's no apple store here in the philippines. How can i replace it?

    How can i replace it?

    You probably do in NZ ..................
    The Apple iphone warranty is not and never has been from the very first iPhone, international
    Sorry but you were stitched up

  • How can I want run the reports on AD, if I have no access to AD server?

    I am not an AD administrator and I do not have permissions to AD server. But I have admin permissions to a site in AD and using RSAT, can administer the site. How can I want run the reports listed below? AD is on Windows 2008R2 server.
    All Administrator logons
    Logon statistics
    Logons during non-business hours
    Multiple logon failures
    Password resets (other than Security Administrator)
    Successful logon after several failures
    User behavior anomalies
    Logons of already logged-on users
    All Logons Over Weekend
    Audit Policy Changed
    Computer Accounts Changed

    Hello,
    Some of your reports can be done using RSAT with Active Directory Powershell module. Some of them including
    Computer Accounts Changed needs auditing to be enabled for directory object changes. These are not predefined reports which you can simply run my friend. Can you please be more specific?
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • How can i replace my new iPad mini to ipad air

    how can I  replace my new iPad mini to a new iPad air online

    If you bought the Mini within the past 14 days you can get a refund and buy the Air. Take it to an Apple store.
    Otherwise.......
    Your only option is to sell the iPad and buy a new one.
    Apple Reuse and Recycle Program
    http://store.apple.com/us/browse/reuse_and_recycle
    How to Sell Your Old iPad  http://tinyurl.com/85d69lk
    Other sources to sell.
    eBay Instant Sell http://instantsale.ebay.com/?search=ipad
    Sell and Recycle Used Electronics - Gazelle http://www.gazelle.com/
    For instant gratification in selling a used iPhone or iPad, Gazelle’s Gadget Trader, an iOS app, is tough to beat. In seconds it detects the device and reveals how much it is worth in good condition. Tap the Sell This Phone to Gazelle button and the deed is done.
    Sell Electronics for Cash - Next Worth  http://www.nextworth.com/
    Buy My Tronics  http://www.buymytronics.com/
    Sell Your iPad http://www.sellyourmac.com/mac-product-guides/ipad.html
    Totem http://www.hellototem.com/
    How To Sell Your Old iPad: 5 Places To Trade In Your Old Device
    http://www.huffingtonpost.com/2013/11/05/ipad-trade-in_n_4218964.html
    THIS IS VERY IMPORTANT - What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
     Cheers, Tom

  • How can I copy my existing contacts from 1 Apple ID to a new one?

    How can I copy my existing contacts from 1 Apple ID to a new one?

    Click here and pick the option which best fits your situation. Rented movies can only be moved through the iPod and will not play on the new computer if any other method is used.
    (98456)

  • How can I replace an administrators account?

    I have an older Powerbook G4 laptop that someone else would like. How can I replace the adminsitrator's account?

    Hi Bob,
    2 ways to go...
      1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

  • How can I replace the cursor in the below query?

    I have this below query which calls a stored procedure that takes only 1 item's attributes at a time. But because of performance problems we are
    required to remove the cursor. How can I replace the below cursor logic with set operations or CTE? Please advice.
    DECLARE db_cursor_ava CURSOR
    FOR
    SELECT t.[agent-id],
    t.[start-date],
    t.[end-date],
    t.[monitor-days],
    t.[monitor-start],
    t.[monitor-end],
    t.[timezone-offset]
    FROM @tmpAgentPeriodTimeRange t
    OPEN db_cursor_ava
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    WHILE @@FETCH_STATUS = 0
    BEGIN
    DELETE
    FROM @tmpMonitorPeriod
    DELETE
    FROM @tmpFinalResult
    SET @runID = 1
    IF(@endDateTime_ava>DATEADD(MI,@offset_ava, GETUTCDATE()))
    BEGIN
    SET @endDateTime_ava=DATEADD(MI,@offset_ava, GETUTCDATE())
    END
    INSERT INTO @tmpMonitorPeriod
    EXEC core.usp_GetMonitoringPeriod
    @startDate = @stDateTime_ava,
    @endDate = @endDateTime_ava,
    @monitoringDays = @monDays_ava,
    @monitoringStart = @monSt_ava,
    @monitoringEnd = @monEnd_ava
    SELECT @maxID = MAX(tm.id)
    FROM @tmpMonitorPeriod tm
    FETCH NEXT FROM db_cursor_ava INTO @agentID_ava,
    @stDateTime_ava,
    @endDateTime_ava,
    @monDays_ava,
    @monSt_ava,
    @monEnd_ava,
    @offset_ava
    END
    CLOSE db_cursor_ava
    DEALLOCATE db_cursor_ava
    mayooran99

    You've been down this path before  - and the response is exactly the same.
    how to replace cursor logic
    And I'll suggest that you post the entire code - since you repeatedly delete 2 table variables but only populate one. The setting of @maxID also seems to have no purpose. And perhaps the issue here isn't the cursor but the general approach.  Who knows
    - but it appears you may have prematurely assumed that the cursor is the problem.

  • How can I add an existing cfm page to a project?

    CFB3 Question: How can I add an existing cfm page to a project? I created a project and copied a file into the project folder but I can't seem to find a way to add the cfm file into the project.

    @Carl - Well heck, yes I did... But after reading your response I went back and tried right-clicking on and refreshing different things and what worked was right-clicking on the project name in the Navigator window and then clicking on refresh in that context menu.
    Thank you Carl!

  • How can i get my existing itunes account to recognizes a new ipod

    How can I get my existing Itunes account to recognize a new ipod?

    just plug it in. there would be on-screen instructions to help with the set up.
    also consult the user guide that came with the device.

  • I want to order a second copy of an iPhoto book. Thought created in the smaller format only the larger format is showing. How can I switch an existing iPhoto book back to the smaller format?

    I want to order a second copy of an existing iPhoto book. Though created in the smaller format now only the larger format is showing. How can I switch an existing iPhoto book back to the smaller format?

    To change a book size duplicate it (select the book in the source pane and press command and D) since text flow and picture  placements can change due to the size differences - then click on change themes, select the same theme and the new size
    check it carefully
    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

Maybe you are looking for

  • Open Order Quantity

    Dear all gurus, I'm checking the total qty as of today for a material A which is stored in plant-P1, storage location SL1 and SL2. However, if I use the MMBE, I can see both of the storage locations but without any unrest-used qty at all. When I scro

  • Error while calling external webservice.

    Hi I am trying to call an external web service but getting following error. exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 503 Servi

  • OS 8.6 won't quit or restart after hard shutdown

    While testing a G3 266MHz beige mini tower running OS 8.6, the system hung and refused to shut down even when the power button was pressed and held, so I literally had to pull the plug. The operation it hung on was opening a folder containing a large

  • Calling EJB over HTTP from thick client

    Hi, But, if I want to use a thick client then how I can make calls through HTTP. I know about j2ee client container. But in addition to it, I may have to write some code on client as well on server. Any inputs/guidelines will be helpful for me. Thank

  • Geforce failed to install

     have a Gigabyte GA7DXC motherboard with an AMD 1.2 Ghz proc running Windows XP I removed a Leadtech Geforce II ultra from the computer and installed a new G4Ti4600.  When I tried to install the drivers I have had nothing but trouble.  dsiabled start