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

Thread: Help with report please

  1. #1
    newtothis is offline Senior Member
    Join Date
    Mar 2009
    Posts
    200

    Default Help with report please

    Hello,

    I am running version ML 8.00

    I would like to run a report, and I guess the best place for me to do it is via the Orders -> Reports.

    I would like to bring back the following fields:

    Date of transaction, Order Number, Category and Amount. How can I do this? Considering one particular order number can include items from different categories.

    Please help

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

  3. #3
    newtothis is offline Senior Member
    Join Date
    Mar 2009
    Posts
    200

    Default

    Thank you for this, but how do I know what the headings are called? The ones that i want to bring back, where can I view the available fields to ensure I spell them correctly as per what is in the database?

    Thank you

  4. #4
    Richnyc30 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    340

    Default Need to know SQL

    You need to use SQL language in custom reports. If you don't know this you will need someone who does or a programmer to create an XML package.
    I recommend a book by Ben Forta called "SQL Server and T-SQL". It's the second book by Forta on SQL. SAMS is the publisher.
    SQL is not that hard.

  5. #5
    newtothis is offline Senior Member
    Join Date
    Mar 2009
    Posts
    200

    Default

    Hello,

    Thank you for getting back.

    I think I might be OK with creating the SQL as I read a KB about it...

    Using this as an example:

    INSERT INTO CustomReport (Name, Description, SQLCommand)
    VALUES ('Test Report', 'Test Description of our report', 'SELECT Email, BIllingZip FROM ORDERS')

    I just dont know where to look to find out the names of the SELECT fields.

  6. #6
    newtothis is offline Senior Member
    Join Date
    Mar 2009
    Posts
    200

    Default

    Basically I am happy with the default order report that you can run, but I would like to add the Category as an additional column. How do I do this please

  7. #7
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    there is no way to do this in general (e.g. a product could be mapped to 27 categories, departments, manufacturers, etc)...but if you know the structure of your product to entity mappings, you'd have to mod the report SQL to join in the category and then just add that to the output.
    AspDotNetStorefront
    Shopping Cart

  8. #8
    newtothis is offline Senior Member
    Join Date
    Mar 2009
    Posts
    200

    Default

    Hmmm...

    Yes I found the Report by Category pretty much useless

    Because I realised it brings back the product numerous times if its been mapped to various categories, but doesnt even tell you which products these are, so when you run it it seems as if your sales as much higher than they should be because products are appearing multiple times.

    I have been using these reports for accounting purposes and now realised my figures have been too high

  9. #9
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    The report you are asking is do-able, but you'll have to do some more advanced SQL to generate it. More than likely you need to aggregate up the product-category data and possibly display only the top-most category per product in the report.
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  10. #10
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    agreed, doable, but a bit custom. you really have to know the exact structure of your products (and mappings) if you are using them to pull over into accounting/etc...

    Might make a nice little customization report project
    AspDotNetStorefront
    Shopping Cart