EDAB also provides the QuickDesigner interface which provides a thin-client interface for creating ad-hoc queries, and reports. In this chapter, we will create a query and a report using QuickDesigner.
To start QuickDesigner, go to the EDAB Start page, and login using the user created in Section Q.2.1 - Create a User. When you login click the link labeled Quick Designer to launch QuickDesigner.
The first screen that you will see when you start QuickDesigner is a dialog asking you if you want to create a new report/chart or open an existing one.
Click on
to create a new report/chart. The next screen is a dialog prompting you to select the data registry that you would like to use (if you have more than one data registry. If only one exists, that data registry is selected automatically and the choice for picking a data registry is skipped).If you have only one data registry, skip to the next paragraph, otherwise, pick the one that you created in Section Q.3.1 - Create a Data Registry, and click the button. The next screen will show all of the defined data sources in the registry.
Expand the nodes and select the Data View that you created in Section Q.3.1.3 - Create a Data View and click the button. A new dialog will open, showing the headings and fields for the view on the left. Add the following fields from the Order Info heading by clicking them in the left-hand side.
Order ID
Order Date
Product Name
Unit Price
Quantity
After adding the columns, click the
button to build a computed column. This will launch the Formula Builder in a new window.In the Formula Builder, expand the View node in the right-hand side. Then expand the Order Info node. Under this node click the Unit Price entry. The text will be added to the main Formula window. Then click the button. Then select the Quantity field. The finished formula should look like this:
{Order Info.Unit Price} * {Order Info.Quantity}
Once you have finished, click
to add the formula. A new column will be added in the column selection dialog.To provide an alias for the expression column, select it and click the
button. This will bring up a dialog allowing you to specify the alias.Enter an alias for the computed column and click
. Next, click the button to submit the column selection. The next dialog that opens allows you to set sorting, grouping, and conditions for the data view query.In this dialog, set the sorting to be ascending for the Order ID column. Then uncheck the option marked Show for the Order Date column. This column will only be used for filtering. Next, click the button for the Order Date field. This will launch a dialog allowing you to specify a filtering condition for the field.
Select the radio button marked Select condition values from column and then click the button. This will open another dialog allowing you to select a date range by which to filter the query.
Select the date range that you would like and click Order Date field. Now you can preview the finished query by clicking the button.
. The condition will be added for theNext, click the
button to save this data view query back to the registry. This will bring up a dialog prompting you to select a name for the query.Enter the name you would like to use for the query and click
. A message will appear indicating that the query was saved successfully. Click again to close the dialog.Now that you have completed the query, click
to begin creating the report. A dialog will appear, showing you the first ten records from the query. Options at the bottom of the screen will allow you to select to create a chart or a report using the data.Click the
button to continue. The next dialog will prompt you to specify any grouping or aggregation for the report.Select the Order ID field and click the button. This will add a level of grouping in the report for this field. Then click the button. This will bring up a dialog allowing you to specify summaries for fields in the report.
Select the the last computed column in the upper drop-down list, then select SUM in the lower list. Then click to save the changes. The aggregation will be reflected in the set grouping dialog.
After you finish with the grouping and aggregation, click the
button. This will bring up a dialog allowing you to select a default look and feel for the report.Select the List Break Left style and click the button. Your report will then open in the main QuickDesigner interface.
The QuickDesigner, like the Report Designer, allows you to modify and format certain report properties. To begin modifying the report that you have created, click the A dialog will open allowing you to set the font for all the different types of elements in the report.
button on the toolbar.The drop-down list in the top of the dialog allows you to select a type of report element. For each type, fonts can be set using the other options in the dialog. Set the fonts for Column Headers (select all the column headers), Labels, and Formulas to be Arial, Bold, and 8 point size. Set the font for Columns (again, select all the columns) to be Arial, Plain, and 8 point size. Then click
to save the changes.Next, click the Dual Colors button on the toolbar. This will bring up a dialog allowing you to set options for the alternating colors in the report.
The buttons at the bottom of the dialog allow you to select the font as well as the background color for the alternating rows. Click the
button. This will open a new dialog.Select 8 point Arial font to match the font you selected for the columns in the font dialog. Click
to save the changes. Click again to close the dual colors dialog.Next, click the This will open a new dialog allowing you to add elements to the report.
button on the toolbar.In this dialog, click the option marked Add report title and add a title in the space provided. Select a 14 point Arial font for the title and set the alignment to the left. Next, click the option marked Add page number. Select the page number format that you would like and elect to add it in the lower-center of the report. Finally, check the Group Footer Label and Table Footer Label options and add labels for the Group and Table footer sections of the report. Once you have set the options, click to save the changes.
For more detail about all the formatting options available in QuickDesigner, see Section 3.10 - The QuickDesigner Interface.
Now that you have finished formatting, you can save the report you have created back to the Organizer so that other users can view it. To save the report, click the This will bring up a dialog allowing you to specify a name for the template.
button on the toolbar.Enter a name for the report, and from the lower drop-down list, select the project that you created in Section Q.2.2.1 - Login as User. Click to save the report. The window will then give you a message to indicate that the report was saved successfully. Click to close the dialog.
Note that all saved files will include the userID and the timestamp in addition to the name you have provided. If an Organizer item with the supplied name exists in the folder, you will be given a choice to override the existing item or create a new entry. If you wish to save the changes in the existing report that you have opened, then do not change the report name and the Organizer folder in the Save Report dialog and the report file will be updated.
With the QuickDesigner still open, click the You will be taken back to the QuickDesigner data registry representation, where you can select a data source for the new report or chart.
button on the toolbar.In the Data Registry, select the Sample.dat
text file data source that you created in Section Q.3.1.4 - Setup a Text Data Source and click . A dialog will open showing the first ten records of the text file. It prompts you to select to build a chart or a report with the data. Click the button to continue.
The next dialog allows you to select the chart type and mapping options. Elect to create a 2D High Low chart using the first options in the dialog.
For the mapping options select year as the data series, Day as the category, high as the high, low as the low, and close as the close. Click to go the main Designer interface.
Click the This will bring up a dialog allowing you to set the size of the chart canvas. Set the size to be 400 by 300 pixels and click . Charts, like reports in QuickDesigner, must be manually refreshed.
button on the toolbar.Next, click the This will bring up a dialog allowing you to set display options for the chart legend. Change the Layout option to Horizontal, the Position option to Bottom, and un-check the Border option. Click to apply the changes.
button on the toolbar.Next, click the This will bring up a dialog allowing you to set the font options for the different text elements in the chart. From the drop-down list in the top of the dialog select X Axis Labels. Then set the font to be Arial, 8pt, and plain.
button on the toolbar.Now repeat this process for the Y axis labels and the legend text, setting them all to be Arial, 8pt, and plain.
Finally, click the This will open a new dialog that allows you to adjust the size and position of the chart plot within the canvas. Using the sliders, modify the chart position so that the relative X and Y Positions are both 0.1. Change the relative width to be 0.8, and the relative height to be 0.7. Click to apply the changes.
button on the toolbar.For more detailed information about all the chart formatting options available in the QuickDesigner, see Section 3.12 - Charts in QuickDesigner.
Now that you've finished formatting the chart, you can save it back to the Organizer. To save the chart, click the This will bring up a dialog allowing you to specify a name for the chart.
button on the toolbar.Enter a name for the chart, and from the lower drop-down list, select the project that you created in Section Q.2.2.1 - Login as User. Click to save the chart. The window will then give you a message to indicate that the chart was saved successfully. Click to close the dialog.
Note that all saved files will include the userID and the timestamp in addition to the name you have provided. If an Organizer item with the supplied name exists in the folder, you will be given a choice to override the existing item or create a new entry. If you wish to save the changes in the existing chart that you have opened, just do not change the chart name and the Organizer folder in the Save Chart dialog and the chart file will be updated.
Click
to close the dialog and then click the button in the upper right-hand corner to close QuickDesigner and return to the EDAB Start page.