List Orders Drill Down Report
This page is going to show you how to create the List Orders Drill Down web report. This report will list all orders broken down by customer and allow the user to "drill down" into the details of each order.
- 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
oOrdersByCustomeras the object name,OrdersByCustomeras the filename, andOrders By Customeras the description, then click Next. -
On the "Main Data Dictionary" wizard page, click on
OrderHea - OrderHea_DataDictionaryto select it as the data dictionary to be used, then click Next. -
On the "Header Data Dictionary" wizard page, click on
Customer - Customer_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:Customer_Number, Order_Number, and click Next.
Fast Report Indexes
As indicated by the index, index 2 is a fast index for this report because its segments are the primary index of the header table, immediately followed by the primary index of the child table. Since the child table is constrained to the header table in a child report, this index is perfect as it can easily optimize this constraint.
-
On the "Report Header Fields" wizard page, add columns
Customer.Customer_NumberandCustomer.Name, then click Next. -
On the "Report Body Fields" wizard page, add columns
OrderHea.Order_Number,OrderHea.Order_Date,SalesP.Id, andOrderHea.Order_Total, then click Next. -
On the "Report Subtotal Fields" wizard page, add column
OrderHea.Order_Total, then click Next. -
On the "Records per Page / Drill Down Report" wizard page, enter
10as the number of records per page and click Next. -
On the "Drill Down" wizard page, select
OrderHea.Order_Numberfrom the combo form. Click on the Use existing ASP file for the zoom, entry or report and typeOrderDtlReport.aspinto the file name form. 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 OrdersByCustomer.wo and OrdersByCustomer.asp pages open in the Code Editor.
- So, let's test our 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.htm page.
-
Click on the Orders By Customer link.
-
Close your browser to return to the Studio.