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 5 of 5

Thread: Custom report

  1. #1
    Sandy.asp is offline Junior Member
    Join Date
    Jan 2009
    Posts
    0

    Default Custom report

    I am new to SQL, wrote a report, but now, how do I edit, change or delete it?

    Thanks in advance!

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    If you're talking about the built-in custom report functionality, you'll have to make any changes directly in the DB where you saved that report.

  3. #3
    acting_andy is offline Junior Member
    Join Date
    Jul 2010
    Location
    Albany, NY
    Posts
    7

    Default

    I can help you with deleting, please be very very careful running this command.

    DELETE FROM CustomReport
    WHERE Name='Name of Report'

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

    Default

    It would be helpful to have a custom report that lists your custom reports!

    Code:
    INSERT INTO CustomReport
    (Name,Description,SQLCommand)
    VALUES
    ('List Custom Reports',
    'A list of all custom reports',
    'SELECT CustomReportID,Name,Description,SQLCommand,CreatedOn FROM CustomReport'
    )
    Then, when you select this report from the drop-down the results show all of the custom reports. Crucially, it also gives the CustomReportID which allows you to target a report for update/delete.

    For us, we can change the list of custom reports like this:

    Code:
    UPDATE CustomReport SET SQLCommand='SELECT CustomReportID,Name,Description,SQLCommand,CreatedOn FROM CustomReport' WHERE CustomReportID=5
    Because our custom report that lists our custom reports is CustomReportID=5
    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!

  5. #5
    acting_andy is offline Junior Member
    Join Date
    Jul 2010
    Location
    Albany, NY
    Posts
    7

    Default

    I didn't even think about doing that, I just pulled the name from the drop down box, but if for some reason there is a duplicate name ASPDNSF will just runs the first one so your's work much better if you use the category ID, I used it to clean up my custom reports!

    Code:
    DELETE FROM CustomReport
    WHERE CustomReportID='#'
    I would love to learn more about the Lightbox/Fancybox without the source I've been working on that for ages!

    Andy