close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

order reports from ecart

Thread began 7/31/2012 10:15 pm by Brendan | Last modified 8/01/2012 9:00 am by Jason Byrnes | 1254 views | 4 replies |

Brendan

order reports from ecart

Is there a way to use the Data Bridge Search Wizard to create a report for Orders?

I need to be able to run a report based on a date range, and view results from the orders table, and orderdetail table, and then sort by my office names, and sales reps (both captured during checkout)

Basically, I want to be able to look at 1 weeks worth of orders, and see the total number of units (sum of qty field on all order details) each sales rep has produced.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, this can be done using the Data Assist Search Wizard.

start by creating a recordset to join the orders and orderdetails tables on the results page, and use an order by clause to order the results by the office names, and sales reps columns.

Add the information you would like to display on the results page and the repeat region so that it will repeat through the recordset.

you can then use the Data Assist search wizard to create the search form to search the recordset you created by the data Range.

Sign in to reply to this post

Brendan

Is there a good resource online for learning how to define recordsets? I think I get the general principal behind SELECT, INNER JOIN, but I am unsure on the correct syntax.

Does this look correct?

SELECT *
FROM orders INNER JOIN orderdetails
WHERE orders.OrderID=orderdetails.DetailOrderID
ORDER BY orders.Office, orders.rep_First, orders.rep_last

Sign in to reply to this post

Brendan

Sorry, one more question.

Is there a way to export the results to excel or .csv?

Sign in to reply to this post

Jason ByrnesWebAssist

yes that looks correct.

w3scools has a decent tutorial for joined queries:
sql_join.asp


To export the results to excell or csv, you would need to hand code that. there are many resources online that talk about how to do that, here is one i found through a google search:
dataexport/

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...