﻿function buildReportTree()
{
    d = new dTree('d');

    // Categories
    d.add(0, -1, ' Reports');
    d.add(1, 0, 'Basic Reports', null, null, null, null, null, true);
    d.add(2, 0, 'Reports with Columns');
    d.add(3, 0, 'Master-Detail Reports');
    d.add(4, 0, 'Reports with Groups');
    d.add(5, 0, 'Hierarchical Reports');
    d.add(6, 0, 'Interactive Reports');
    d.add(7, 0, 'Charts');
    d.add(8, 0, 'Cross-Tabs Reports');
    d.add(9, 0, 'Reports with EmptyBand');
    d.add(10, 0, 'Containers');
    d.add(11, 0, 'SubReports');

    // Basic Reports
    d.add(101, 1, 'Simple List', '?reportname=SimpleList');
    d.add(102, 1, 'Two Simple Lists', '?reportname=TwoSimpleLists');
    d.add(103, 1, 'Highlight Condition', '?reportname=HighlightCondition');
    d.add(104, 1, 'Shapes', '?reportname=Shapes');
    d.add(105, 1, 'Images', '?reportname=Images');
    d.add(106, 1, 'RichText', '?reportname=RichText');
    d.add(107, 1, 'Watermark', '?reportname=Watermark');
    d.add(108, 1, 'Bar-Codes', '?reportname=BarCodes');
    d.add(109, 1, 'HTML Tags', '?reportname=HtmlTags');
    d.add(110, 1, 'Invoice', '?reportname=Invoice');
    d.add(111, 1, 'Indicators', '?reportname=Indicators');
    
    // Reports with Columns
    d.add(201, 2, 'Multi-Column List', '?reportname=MultiColumnList');
    d.add(202, 2, 'Multi-Column Bands, Across-Down', '?reportname=MultiColumnBandsAcrossThenDown');
    d.add(203, 2, 'Multi-Column Bands, Down-Across', '?reportname=MultiColumnBandsDownThenAcross');
    d.add(204, 2, 'Labels', '?reportname=Labels');
    
    // Master-Detail Reports
	d.add(301, 3, 'Master-Detail', '?reportname=MasterDetail');
	d.add(302, 3, 'Master-Detail-Subdetail', '?reportname=MasterDetailSubdetail');
	d.add(303, 3, 'Master-Detail with Columns', '?reportname=MasterDetailWithColumns');
    d.add(304, 3, 'Two Masters on One Detail', '?reportname=TwoMastersOnOneDetail');
    d.add(305, 3, 'Master-Detail with zero Height', '?reportname=MasterDetailWithZeroHeight');
    d.add(306, 3, 'Master-Detail on DataBand', '?reportname=MasterDetailOnDataBand');
    
    // Reports with Groups
    d.add(401, 4, 'Simple Group', '?reportname=SimpleGroup');
    d.add(402, 4, 'Nested Groups', '?reportname=NestedGroups');
    d.add(403, 4, 'Top Sales', '?reportname=GroupsTopSales');
    d.add(404, 4, 'Master-Detail with Groups', '?reportname=MasterDetailWithGroups');
    d.add(405, 4, 'Multi-Column Group', '?reportname=MultiColumnGroup');
    d.add(406, 4, 'Groups with Ranges', '?reportname=GroupsWithRanges');
    d.add(407, 4, 'Simple Group with Columns', '?reportname=SimpleGroupWithColumns');
    d.add(408, 4, 'All Group Footers at End', '?reportname=AllGroupFootersAtEnd');
    d.add(409, 4, 'Invoice with Groups', '?reportname=InvoiceWithGroups');
    d.add(410, 4, 'Sales Invoice', '?reportname=SalesInvoice');
    
    // Hierarchical Reports
    d.add(501, 5, 'Tree', '?reportname=Tree');
    d.add(502, 5, 'Tree with Headers and Footers', '?reportname=TreeWithHeadersFooters');
    d.add(503, 5, 'Tree with Totals', '?reportname=TreeWithTotals');
    d.add(504, 5, 'Tree with Totals, All Levels', '?reportname=TreeWithTotalsAllLevels');
    d.add(505, 5, 'Tree with Locked Components', '?reportname=TreeWithLockedComponents');
    
    // Interactive Reports
    d.add(601, 6, 'Interactive Sorting', '?reportname=DrillDownSorting');
    d.add(602, 6, 'List of Products', '?reportname=DrillDownListOfProducts');
    d.add(603, 6, 'Bookmarks, Hyperlinks', '?reportname=BookmarksHyperlinks');
    d.add(604, 6, 'Anchors', '?reportname=Anchors');
    
    // Charts
    d.add(701, 7, 'Chart Columns and Bars', '?reportname=ChartColumnsAndBars');
    d.add(702, 7, 'Chart Lines and Splines', '?reportname=ChartLinesAndSplines');
    d.add(703, 7, 'Chart Areas', '?reportname=ChartAreas');
    d.add(704, 7, 'Chart Pie and Doughnut', '?reportname=ChartPieAndDoughnut');
    d.add(705, 7, 'Chart Styles', '?reportname=ChartStyles');
    d.add(706, 7, 'Chart on Databand', '?reportname=ChartOnDataband');
    
    // Cross-Tabs Reports
    d.add(801, 8, 'Standard Cross-Tab', '?reportname=StandardCrossTab');
    d.add(802, 8, 'Cross-Tab without Columns', '?reportname=CrossTabWithoutColumns');
    d.add(803, 8, 'Cross-Tab without Rows', '?reportname=CrossTabWithoutRows');
    d.add(804, 8, 'Cross-Tab with Highlight Condition', '?reportname=CrossTabWithHighlightCondition');
    d.add(805, 8, 'Cross-Tab with Two Summaries', '?reportname=CrossTabWithTwoSummaries');
    d.add(806, 8, 'Two Cross-Tabs', '?reportname=TwoCrossTabs');
    d.add(807, 8, 'Wrapped Cross-Tabs', '?reportname=WrappedCrossTab');
    d.add(808, 8, 'Large Cross-Tab', '?reportname=LargeCrossTab');
    d.add(809, 8, 'Cross-Tab on DataBand', '?reportname=CrossTabOnDataBand');
    
    // Reports with EmptyBand
    d.add(901, 9, 'Simple List with Empty Lines', '?reportname=SimpleListWithEmptyLines');
    d.add(902, 9, 'Master-Detail with Empty Lines', '?reportname=MasterDetailWithEmptyLines');
    d.add(903, 9, 'Invoice with Empty Band', '?reportname=InvoiceWithEmptyBand');
    
    // Containers
    d.add(1001, 10, 'Side by Side List', '?reportname=SideBySideListWithContainers');
    d.add(1002, 10, 'Side by Side Group', '?reportname=SideBySideGroupWithContainers');
    d.add(1003, 10, 'Multi-Column List', '?reportname=MultiColumnListContainers');
    d.add(1004, 10, 'Multi-Containers', '?reportname=MultiContainers');
    d.add(1005, 10, 'Master-Detail Cards', '?reportname=MasterDetailCards');
    
    // SubReports
    d.add(1101, 11, 'Side by Side List', '?reportname=SideBySideListWithSubReports');
    d.add(1102, 11, 'Side by Side List on DataBand', '?reportname=SideBySideListWithSubReportsOnDataBand');
    d.add(1103, 11, 'Side by Side Group', '?reportname=SideBySideGroupWithSubReports');
    d.add(1104, 11, 'Master-Detail', '?reportname=MasterDetailWithSubReports');
    
    document.write(d);
}
