Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Delete, Overwrite, or Modify an existing Custom Report

  1. #1
    btfhome is offline Junior Member
    Join Date
    Nov 2012
    Posts
    5

    Default Delete, Overwrite, or Modify an existing Custom Report

    I cannot find much on this in the forum or on the web. Is there a somewhat simple process or SQL to delete a specific custom report which has errors? (before I got here). If delete is not posisble without some purge of all reports then is there a way to overwrite the report with a new report of the same name? I tried the overwrite with a report of the same name and it didn't work.

    Thanks for any help.
    Bill

  2. #2
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    Can you access your database using SQL Server Management Studio? If so all of the custom reports are held in the table [CustomReport].

    You can delete the report either by using the report id, like this:

    Code:
    DELETE FROM CustomReport WHERE CustomReportID=x
    where x is the number of the report.

    Or:

    Code:
    DELETE FROM CustomReport WHERE [Name]='xxx'
    where xxx is the name of the report shown in the drop down list of reports.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  3. #3
    btfhome is offline Junior Member
    Join Date
    Nov 2012
    Posts
    5

    Default Re: Delete Custom Report Code

    Thank you. The only tool I have is what is in the storefront Admin Console under Configuration>Advanced>Run SQL.

    I can Insert a new custom report. Would this suggested code to delete a report run from that panel?

    Thanks again
    Bill

  4. #4
    btfhome is offline Junior Member
    Join Date
    Nov 2012
    Posts
    5

    Default The code works prefectly

    Thank you. Used the Name and it works.
    Bill