Orders Detail Report
This page is going to show you how to create the Orders Detail web report. Just like the Orders Drill Down report, this is a header/child report. This report will list an order and all line items for that order.
Steps to Create the Orders Detail Report
- Click on the Create New button on the Studio’s toolbar.
- Click on the Web Object tab of the Create New... dialog.
-
Double-click the WBO Child Report Wizard icon.
-
Read the explanations on the first wizard page of what this wizard will do and click Next.
-
On the Names wizard page, enter
OrderDtlReportas the object name,OrderDtlReportas the filename, andOrder Detail Reportas the description, then click Next. -
On the "Main Data Dictionary" wizard page, click on
OrderDtl - OrderDtl_DataDictionaryto select it as the data dictionary to be used, then click Next. -
On the "Header Data Dictionary" wizard page, click on
OrderHea - OrderHea_DataDictionaryto select it as the data dictionary to be used. This is the Data Dictionary for the "header" table, which will supply the records for the report header. Leave the default index selection, which is2:Order_Number, Detail_Number, and click Next. -
On the "Report Header Fields" wizard page, add the following columns:
OrderHea.Order_NumberOrderHea.Order_DateCustomer.Customer_NumberCustomer.NameCustomer.AddressCustomer.CityCustomer.StateCustomer.ZipCustomer.Phone_NumberOrderHea.TermsOrderHea.Ship_ViaOrderHea.Ordered_By.SalesP.IdSalesP.Name
Then click Next.
- On the "Report Body Fields" wizard page, add the following columns:
Invt.Item_IdInvt.DescriptionOrderDtl.Qty_OrderedOrderDtl.PriceOrderDtl.Extended_Price
Then click Next.
-
On the "Report Subtotal Fields" wizard page, add the column
OrderDtl.Extended_Price, then click Next. -
On the "Records per Page / Drill Down Report" wizard page, leave 50 (the default) as the number of records per page. Uncheck the Support drill-down on body records checkbox, since this report represents the child-most records we want to see. Click Next.
-
On the "Style sheet options" wizard page, simply accept the default Cascading Style Sheet (CSS) and click Next.
-
Click Finish on the last wizard page.
You should now be back in the Studio, with the outline of the newly created OrderDtlReport.wo and OrderDtlReport.asp pages open in the Code Editor.
Testing the Completed Report
-
Click on the Run button on the Studio's toolbar. The Studio will compile, then run your project. When the application runs, your browser should display the
testcontent.htmpage. -
Click on the Order Detail Report link. You will see the new report list the first 50 orders.
What really makes this interesting is that this report can now be fully integrated with the Orders Drill Down Report. Go back in the browser to the TestContent.htm page that lists all of the reports. Click on the Orders By Customer link. You will now see the Orders By Customer Report as before.
-
Now click on any of the hyperlinks in the Order Number column. Click on the hyperlink for order 125, for example. You will see the Order Detail Report for just this order.
-
Close your browser to return to the Studio.