Академический Документы
Профессиональный Документы
Культура Документы
ABC
USER T RAINING MANUAL for
SHOWCASE STRATEGY
Showcase Strategy Report Writer & Query User Training Manual for ABC
4
4 4 5
Training Objectives.......................................................5
BASICS OF QUERIES
Terminology
7
7
Collections ....................................................................8 Tables............................................................................9 Columns and Rows ......................................................9
Tables Screen ............................................................10 Join Tables Screen ....................................................10 Columns Screen.........................................................11 Conditions Screen......................................................11 Sort Screen.................................................................12
13
Saving Your Query......................................................13 Running a Saved Query .............................................14 Printing Query Results................................................14
BUILDING QUERIES
Simple Queries
15
15
Select Data Source ....................................................15 Select Columns ..........................................................16 Define Conditions .......................................................16 Define Sort Order .......................................................17
17 19 20
Page i
Showcase Strategy Report Writer & Query User Training Manual for ABC
23
Define Data Source ....................................................23 Join Tables..................................................................24 Select Columns ..........................................................24 Add Column ................................................................25 Define Conditions .......................................................25 Set Display and Sort Order ........................................27
28
Define Data Source ....................................................28 Join Tables..................................................................28 Select Columns ..........................................................29 Define Conditions .......................................................29 Set Sort Order.............................................................30
MANAGING QUERIES
Changing Query Settings Formatting Query Output
31
31 31
Changing Fonts...........................................................31 Adjusting Alignment/Justification...............................32 Formatting Numeric Data ...........................................32 Inserting Summary Information..................................32
34
Exercises
35
38
38
Spreadsheet Reporting
40
Setting up Spreadsheet Reporting............................41 Adding Query Data to the Spreadsheet....................42 Modifying a Spreadsheet Report...............................43
Exercises
44
Page ii
Showcase Strategy Report Writer & Query User Training Manual for ABC
MANAGING REPORTS
Basics of Custom Report Design
46
46
Report Types ..............................................................46 Sections ......................................................................47 Objects ........................................................................48
48
49 50 51
Formatting Tools.........................................................50
Page iii
Showcase Strategy Report Writer & Query User Training Manual for ABC
I NTRODUCTION
TO
S TRATEGY
he Showcase Strategy Report Writer and Query applications allow users to access AS/400 data via their PC workstations. As the ad hoc reporting tool of choice for the ABC, the product also has a proven track record of supporting Infinium financial systems. With Strategy, it is possible to create customized reports for standard use throughout the organization, as well as for short term requirements. In the case of meeting the simple day to day needs of any particular user, Strategy is also a straight-forward, easy to learn query tool that can provide quick results with minimal fuss.
Query
Strategy Query is a graphical, Windows-based tool that enables direct access to AS/400 data. As with any query tool, all that is required to use Query is to formulate a request for data based on a number of conditions. For example, show the names of the employees who have been hired within the past month at AAA. As long as it can be determined where the physical data is located, the procedure with which to arrive at the above subset is very simple.
Report Writer
The Strategy Report Writer application incorporates the Query tool to provide full-featured, Windows-based report writing and design capabilities. It supports a number of standard report styles and offers instant what you see is what you get feedback on
Notes:
5/21/04
Page 4
Showcase Strategy Report Writer & Query User Training Manual for ABC
customized formats and designs that the user creates. As may be expected, report requirements can be quite complex in certain circumstances, bringing about a corresponding increase in the amount of skill required to produce the report. For simple needs, however, the tool is easy to learn and master.
Scope of Training
ABCs Showcase Strategy users can be categorized into two groups: those who are responsible for setting up standard corporate-wide reports and those who will initiate established reports and run ad hoc queries as required by their departments and units. This training is intended for the latter group, and will therefore focus on setting up, saving and editing various queries and running established reports. It is assumed that these individuals will use Showcase Strategy more for quick and dirty examinations of data than for elegant report creation.
Training Objectives
While this training will not delve into the more advanced aspects of report design, trainees will be expected to understand the full capabilities of Showcase Strategy throughout this session by viewing existing reports and discussing how they have been constructed. With a full appreciation of what Strategy can do for them, users will be able to make specific requests for reports in future. Upon completion of this training, users will have mastered the following specific skills: 1. Run an established query or report
Notes:
5/21/04
Page 5
Showcase Strategy Report Writer & Query User Training Manual for ABC
2. Create and save a simple query or report 3. Make simple changes to an existing query/report to meet new requirements 4. Format query screens 5. Run timed or batched queries 6. Run spreadsheet reports 7. Create shortcuts for reports on Windows Desktop
Notes:
5/21/04
Page 6
Showcase Strategy Report Writer & Query User Training Manual for ABC
BASICS
OF
Q UERIES
hat is the concept of a query? Queries provide the ability to search for desired information from large databases, providing a reporting and analysis capability. Essentially, a query is a request to select, format and analyze one or more rows of data (i.e., the records) of a database. With Showcase Strategy, each query must include the following specifications:
the tables where the data can be found the common elements that join instances of multiple tables what fields the user requires as output the conditions upon which the output is to be selected the sort order desired for the final output
In Showcase Strategy, queries can be built in one of two ways: through the Report Writer application, or via Query by itself. Done through Report Writer, the results can be formatted and printed according to a custom design. Through Query, the results are basically only formatted in a standard table of columns and rows, although there is also the option to export the results into another application such as a spreadsheet or word processor.
Terminology
Before proceeding with creating any queries or reports, it is important to establish an understanding of the terminology that is
Notes:
5/21/04
Page 7
Showcase Strategy Report Writer & Query User Training Manual for ABC
common to the world of databases. Some of these terms have already been used in the previous discussion above.
A Collection (Library) of Data
Column (Field)
Row (Record)
Table (File)
Generally speaking, a database particularly as referenced in Showcase Strategy contains data organized in a specific manner:
collections, which in turn consist of: tables, which in turn consist of:
Collections
A collection is a structure commonly called a library on the AS/400 that consists of and logically classifies sets of objects such as tables, views and indexes.
Notes:
5/21/04
Page 8
Showcase Strategy Report Writer & Query User Training Manual for ABC
Tables
A table is a two dimensional structure consisting of rows and columns that holds the actual data within a database. On the AS/400, tables are referred to as files. A view is an alternate representation of the physical data within a table. For example, if a table consists of last name, first name, address, city, province, postal code, phone number, SIN, and date of birth in no particular order, a view might consist of first name, last name, and phone number ordered by last name.
Notes:
5/21/04
Page 9
Showcase Strategy Report Writer & Query User Training Manual for ABC
Tables Screen
This is where the appropriate data sources are selected; i.e., the collection (library) and tables (files).
Notes:
5/21/04
Page 10
Showcase Strategy Report Writer & Query User Training Manual for ABC
If multiple tables were selected in the previous screen, the Next button will produce the Join Tables screen. If a single table was selected, this screen does not appear. The program does its best to guess at what the link between two tables might be, but if it cannot find something identical between the two files, the user must specify the field that links them.
Columns Screen
This screen allows the user to specify which columns are of interest for the query. All of the fields associated with the table are listed in the top half of the screen. Those required for the query can be selected and added to the bottom half of the screen with a click of a button.
Conditions Screen
This (optional) screen allows the user to build conditions that will select fields based on certain criteria. For example, if you only want last names beginning with M, pay rates greater than $15, or hours
Notes:
5/21/04
Page 11
Showcase Strategy Report Writer & Query User Training Manual for ABC
worked less than 80, or even some complex combination thereof, this screen is where those conditions can be specified.
Sort Screen
This (optional) screen lets the user specify how the records should be displayed in the final results. For example, should pay rates be sorted in ascending or descending order?
Notes:
5/21/04
Page 12
Showcase Strategy Report Writer & Query User Training Manual for ABC
This is the last screen encountered during the query creation process. Clicking on the Run button brings up a basic copy of the report if this was initiated via the Report Writer application. If the Query tool itself was used, a table showing the results is displayed. Alternatively, clicking on Finish will show a draft set of results with placeholders (9s and Xs) instead of actual data.
Notes:
5/21/04
Page 13
Showcase Strategy Report Writer & Query User Training Manual for ABC
Notes:
5/21/04
Page 14
Showcase Strategy Report Writer & Query User Training Manual for ABC
BUILDING Q UERIES
n this section, you will start building some queries with actual data. We will focus on fairly simple ones but will progress to some reasonably complex examples that involve multiple conditions, table joins, variables, expressions and prompts, functions, and the creation of new columns. These latter queries will be shown to you more to gain familiarity with the possibilities afforded by Showcase Strategy than for you to become proficient at building them.
Simple Queries
As seen from the previous chapter, you must pass through a distinct set of processes to build a query. In this section, your instructor will lead you through a series of steps to build some simple queries. (To allow your instructor some freedom, specific examples are not given here; you may want to document the actual selections at each given step if you want to practice these queries later on your own.)
Notes:
5/21/04
Page 15
Showcase Strategy Report Writer & Query User Training Manual for ABC
4. On the Tables screen, select the appropriate collection for the applicable ABC data 5. Click on the drop down list of tables to display all available tables 6. Highlight the table required for your query and click the ADD button to display it in the window at the bottom 7. Click the NEXT button to go on to the Columns screen Note: Between this step and the next, if multiple tables have been selected, there will be an additional step of defining how the tables are joined (see upcoming discussion).
Select Columns
To define the columns (fields) that will appear in your query, do the following: 1. Highlight the desired columns using standard Windows methods (e.g., [SHIFT]-click to select contiguous items; [CTRL]-click to select non-contiguous items) 2. Click the ADD button to copy your selections to the lower window 3. Click the NEXT button to move on to the Define Conditions screen
Define Conditions
To filter the output from the query, do the following: 1. Select the column (field) on which you want to perform a filter
Notes:
5/21/04
Page 16
Showcase Strategy Report Writer & Query User Training Manual for ABC
2. Click the pull down list of conditions and select the appropriate one 3. Enter an appropriate value to compare against in the Values list box 4. Click the ADD button to copy the condition to the bottom part of the screen 5. Repeat steps 1 to 4 as necessary to set up further conditions 6. Click the NEXT button to go on to the Sort Order screen
Joining Tables
Its not very often that you will find all of the data that you wish to view via a query on one source table (file); in fact, its unlikely unless the query is extremely simplistic. The very basis upon which relational databases are built means that you will likely pick at least
Notes:
5/21/04
Page 17
Showcase Strategy Report Writer & Query User Training Manual for ABC
a couple of tables as your data sources and then link them together to enable the right combination of data to be extracted. For example, to create a purchase order, you will likely have to access at least an inventory file and a vendor file. The inventory file would contain product information from a specific vendor and the vendor file would contain a listing of all possible vendors. In order for these to be accessed in a query, they must be joined1 in some way; that is, there must be something in common between the two of them. In this example, the link between the two files would probably be a vendor ID number. Sometime the links are obvious; sometimes not.
Table 1 Field X Field Y
These two fields provide the link between the two tables
Establishing the field that provides the link is not a skill that can be taught. Ultimately, familiarity with your database and its layout is the only way to ascertain quickly how tables are linked together.
You can also go into detail as to the different types of joins that are possible, but for the purposes of todays training, we will only emphasize that multiple tables must be joined together in some way.
Notes:
5/21/04
Page 18
Showcase Strategy Report Writer & Query User Training Manual for ABC
FName
LName
BDate
EmpNo
...
&FullName
Variable
Another example might be that you are want to select those employees with total pay greater than a certain number, but that number changes from query to query. That is, you may want to find all total pay greater than 1200.00 today, but tomorrow you may want to find all total pays greater than 2400.00. Rather than creating a query with a set number and then have to change the query itself each time you have a slightly different need, you can use a variable to set the limit each time the query is run.
Notes:
5/21/04
Page 19
Showcase Strategy Report Writer & Query User Training Manual for ABC
Like any other field that you can access from your database, variables can be defined to hold specific types of data: character strings, numeric values, times, dates.
Prompts
The examples given above illustrate two different ways for variables to get their values. The first one automatically calculates its value from existing fields, while the second accepts its value from the user at the time of running the query. In any situation where input is required from the operator at runtime, it is always a good idea to use a prompt. A prompt is basically an instruction to the user to enter a certain value(s). Rather than being greeted with an empty input box and having to remember or guess at what is needed and this is especially important if more than one person uses the queries a prompt will tell the user what is expected; for example: Enter the desired total hours worked:. Prompts are not limited to use with variables. In any query situation where dynamic conditions are used, a prompt is probably in order. For example, if you want to select records only for employee last names beginning with a certain letter, it would make sense to incorporate a prompt that asks the user for the letter in question. In this case the purpose of the prompt is not to gather input for a variable but to select values for an existing field.
Using Expressions
One of the ways to build more flexibility into a query is through the use of expressions. An expression is some combination of fields, functions or variables joined by operators. A simple expression that you may remember from math class is 2X+1=9.
Notes:
5/21/04
Page 20
Showcase Strategy Report Writer & Query User Training Manual for ABC
Expressions can be simple or extremely complicated, especially when they involve combinations of SQL functions. They have two main uses in queries: to define new columns or to create conditions upon which to select desired data.
Expression Operators
Those who have used standard query tools in the past will note the familiarity of expression operators. They are the following:
=, <, >, >=, <= and <> (standard equal, less than, greater than, greater than or equal to, less than or equal to, and not equal) Like (used in conditions such as FNAME LIKE Jo% to find John, Joe, Joanne, Joan, etc.) Between (used to extract data with a range of values between two stated end points: PAYRATE BETWEEN 15 AND 20) IN (used to extract data matching values in a given list: STATUS IN FTPERM, FTTEMP, PTPERM, PTTEMP)
In addition to the above, there are also logical operators that are used to combine multiple expressions. These are, of course, the following:
AND (expression on either side of the operator must be true) OR (only one of the expressions on either side of the operator needs to be true) NOT (the expression following the operator cannot be true)
Notes:
5/21/04
Page 21
Showcase Strategy Report Writer & Query User Training Manual for ABC
In conjunction with the above, parentheses can be employed to connect further multiple expressions and state their order of precedence. For example: ((PAYRATE >= 15) AND (PAYRATE <= 20)) OR STATUS NOT (IN FTPERM, FTTEMP) implies that all records with pay rate greater than fifteen dollars but less than twenty will be selected, along with all records whose status is something other than full-time permanent or full-time temporary.
Functions
Functions are the final piece of the query puzzle. Functions are predefined pieces of program code that accomplish specific tasks. They take input data from the user and in return, manipulate it into some value-added format. SQL functions are categorized into the following:
String functions Numeric functions Set functions Time/Date functions System functions
Notes:
5/21/04
Page 22
Showcase Strategy Report Writer & Query User Training Manual for ABC
CONCAT(&First, , &Last) will take the contents of a variable called &First, a blank space, and the contents of a variable called &Last and join them together AVG(JAN_HRS, FEB_HRS, MAR_HRS) will calculate the average of the values held within JAN_HRS, FEB_HRS, and MAR_HRS.
Functions, by themselves or within the confines of a more sophisticated expression, are commonly used to establish new columns.
Notes:
5/21/04
Page 23
Showcase Strategy Report Writer & Query User Training Manual for ABC
5. Add the GLPBX table (budget balance master) and then click the NEXT button to go to the next screen
Join Tables
Ensure that the information from the above tables are linked properly with these steps: 1. Click on the Page Number field under the Join table: part of the screen (this is the page number field in the GLPCT table) 2. Click the = sign 3. Under the To table: part of the screen, click on the corresponding Page Number field in the GLPGL table 4. Click the ADD button 5. Go back to the To table: part of the screen and use the drop down list to locate the GLPBX table 6. Click on the Page Number field corresponding to this table 7. Click the ADD button and then NEXT to continue
Select Columns
Select which columns should appear in your query: 1. From the GLPCT table, add the Account # and 30 Character Description fields 2. Click on the drop down list at the top of the screen to see the other tables that you have defined; select the GLPCL table 3. Add Accounting Year and Current Balance from the GLPCL table
Notes:
5/21/04
Page 24
Showcase Strategy Report Writer & Query User Training Manual for ABC
4. From the GLPBX table, add the Standard Amount field 5. Click the RUN button 6. Save the query as sample cost report
Add Column
In this exercise, you will add a column to show the difference between the current amount and the budgeted amount. 1. Go back to the Columns screen by clicking the Columns icon 2. Click the NEW button to create a new column 3. Use the column drop down list to find Standard Amount 4. Click the ADD button 5. Select the - (minus) sign as your operator 6. Select the Current Balance field (note: this is from a different file) 7. Click the ADD button 8. Click the NEXT button 9. Name your new column variance 10. Click FINISH 11. Run the query and then save as sample variance report
Define Conditions
Define a condition to filter out data for only the Finance Area when the query runs: 1. Click the Conditions icon
Notes:
5/21/04
Page 25
Showcase Strategy Report Writer & Query User Training Manual for ABC
2. Select the Account Number field 3. Use the drop down list of conditions to pick is between 4. Click the PROMPT button 5. Compose the following prompt for users: Enter Account # 6. Use the drop down list for Source of Prompt Answers to select No List of Possible Answers 7. Use the drop down list for Value to Use as Default Prompt Answer to select Default to User-Specified Value 8. In the entry box for Minimum Value, enter the first possible account number for the Finance Area (according to new chart of accounts; see footnote for account number if you do not have access to the current Chart of Accounts)2 9. In the entry box for Maximum Value, enter the last possible account number for the Finance Area (according to new chart of accounts; see previous footnote if you do not have access to the current Chart of Accounts); click OK 10. Click OK again to return to the Conditions screen Set up another condition to select the appropriate accounting year to view: 1. Select the Accounting Year field 2. Use the drop down list of conditions to pick = (equal sign)
First possible account for the Finance Area is 001-3000-300-11500000-00000000; last possible account is 001-3000-300-11500000-99999999
Notes:
5/21/04
Page 26
Showcase Strategy Report Writer & Query User Training Manual for ABC
3. Click the PROMPT button 4. Compose the following prompt for users: Enter fiscal year (i.e. 1998 for the year ended March 31, 1998) 5. Use the drop down list for Value to Use as Default Prompt Answer to select Default to User-Specified Value 6. Type 1998; click OK 7. Click OK again to return to the Conditions screen 8. Click the RUN button, answer OK to accept the displayed input 9. Save as interactive report
Notes:
5/21/04
Page 27
Showcase Strategy Report Writer & Query User Training Manual for ABC
Join Tables
The four files must now be joined together in some meaningful way. 1. Join PLPVD to PLPVE via the Vendor ID field 2. Join PLPVDs Invoice Payment Company field to PLPDVs Company field 3. Join PLPVDs Invoice Payment Division field to PLPDVs Division field 4. Join PLPVDs GL Page Number field to GLPCTs Page Number field
Notes:
5/21/04
Page 28
Showcase Strategy Report Writer & Query User Training Manual for ABC
5. Ensure that you have clicked the ADD button after each join; click NEXT to continue
Select Columns
Select the columns that you wish to appear on this report in the next step. 1. Select the Invoice Payment Division, Accounting Year, Accounting Period, and the Expense Amount BCURR fields from the PLPVD table 2. Select the Vendor Name field from the PLPVE table 3. Select the Account # field from the GLPCT table 4. Click NEXT to go on
Define Conditions
The next step is to define the conditions that should apply to the data. 1. Place a condition on the Account # column to make it select only accounts between 001-3000-300-1150000000000000 and 001-3000-300-11500000-99999999 (i.e., only accounts that apply to the Finance Area) 2. Place a condition on the Invoice Division column to accept values equal to items in pre-defined list only; set up a prompt like Enter site code (AAA 100, BBB 200, CCC 300) and then define a list of values consisting of 100, 200, and 300 3. Click the NEXT button to go on
Notes:
5/21/04
Page 29
Showcase Strategy Report Writer & Query User Training Manual for ABC
Notes:
5/21/04
Page 30
Showcase Strategy Report Writer & Query User Training Manual for ABC
M ANAGING Q UERIES
nce created and saved, you can still do much to change your queries to match your changing needs.
Changing Fonts
To change the displayed font in a query, do the following:
Notes:
5/21/04
Page 31
Showcase Strategy Report Writer & Query User Training Manual for ABC
1. Highlight a cell in the column for which you want to change the font 2. Click the right mouse button to get a menu listing of all the formatting options 3. Select FONTS and make the desired changes to the font, style and size 4. Click OK
Adjusting Alignment/Justification
To change the alignment/justification of data in a query, do the following: 1. Highlight a cell in the column whose data you want to adjust 2. Click the right mouse button and select ALIGNMENT 3. Select the desired alignment and the entire column will change as specified
Notes:
5/21/04
Page 32
Showcase Strategy Report Writer & Query User Training Manual for ABC
given department, you may want to see a total of the amounts paid out to employees within each job position. To do this, you must first indicate a column to form the basis of the desired grouping. Typically, you would also move that column to the extreme left edge of the display, since Strategy will suppress repeat values in that column. In the above example, this would be the job position column. To complete this procedure, do the following: 1. Drag the column to be grouped on to the far left edge of the query screen 2. With the above column highlighted, click the Group icon from the toolbar 3. If you have a subgroup to define, move its column to the left also (but to the right of the first column) and repeat step 2 4. Select the columns which contain the numeric data to be summarized 5. Click the Summation icon from the toolbar
POSITION Clerk II FNAME Tom John Jane Sue LNAME G. H. M. J. TOT_PAY 9999.99 9999.99 9999.99 9999.99 999999.99 Summary Line
Notes:
5/21/04
Page 33
Showcase Strategy Report Writer & Query User Training Manual for ABC
This will result in total lines being inserted after each group (and any subgroups) for each of the numeric columns that you specified.
Timed Queries
The ability to set a timer for queries allows an interactive query to be executed at a scheduled time. This same feature can also be used to run specific queries at regular hourly, daily, weekly or monthly intervals. Disadvantages of using a timed query:
Requires a live connection to the AS/400 from the station running the query Query must be loaded and active on the PC station Performance on the AS/400 could be seriously affected, particularly if users are indiscriminate regarding parameters on prompted queries (i.e., selecting all data sets when the query was clearly intended to be used on small subsets of data)
Despite the above, if a timed query is your best alternative, do the following to set one up: 1. Click the Timer icon on the toolbar 2. From the Timer Setup dialog box, select an interval type
Notes:
5/21/04
Page 34
Showcase Strategy Report Writer & Query User Training Manual for ABC
3. Enter the desired time and date for the query to run (note that this time depends on your PCs internal clock, so make sure your PC is keeping the correct time) 4. Click the ADD button to display the specifics of your timed event in the lower left window 5. Click OK to confirm your selections 6. Click OK again 7. Save your query Once a query has been saved with the timer feature, as long as Query remains open and your PC stays connected to the AS/400, the query will be executed at the appointed time. All you would have to do is respond to any prompts appropriately.
Batched Queries
Using a batch process to execute a query avoids the main disadvantages associated with the previous timer method. Batched queries are executed after the scheduled time has been reached on the AS/400. When you originally submit the job to the AS/400, you complete any input required for prompts and can then disconnect. Query does not need to stay active on your PC (in fact, your PC itself need not be on).
Exercises
In the following set of exercises, you will make some changes to your vendor list query to give it more flexibility.
Notes:
5/21/04
Page 35
Showcase Strategy Report Writer & Query User Training Manual for ABC
Move Column
Modify the layout of your query by moving one of the columns to a new location. 1. Click the Columns icon 2. Select the Account # field and move it between Accounting Period and Expense Amount 3. Run the query using 300 as the input value for site
Modify Condition
Change the way in which the Finance Area data is filtered out in this query. 1. Click the Conditions icon 2. Select the Account # condition and click the EDIT button 3. Create a prompt like Enter Account range 4. For Value to Use as Default Prompt Answer, select Default to User-Specified Value 5. Specify 001-3000-300-11500000-00000000 as the minimum value and 001-3000-300-11500000-99999999 as the maximum value 6. Click OK as required to confirm your changes 7. Run the query and enter the Finance Area account number for Staff Travel for both the min and max values (see
Notes:
5/21/04
Page 36
Showcase Strategy Report Writer & Query User Training Manual for ABC
footnote if you do not have the means to look up this account)3 8. Use 300 as the input value for the site code
Notes:
5/21/04
Page 37
Showcase Strategy Report Writer & Query User Training Manual for ABC
howcase Strategy offers two ways of looking at your queries via external applications. Why would you want to do this, you ask? Most commonly, the main reason would be to use the data in spreadsheet applications where data can be manipulated more easily (and perhaps in ways that users are more comfortable with) and with wider options such as incorporating charts and graphs.
Notes:
5/21/04
Page 38
Showcase Strategy Report Writer & Query User Training Manual for ABC
4. Ensure that Display Results in a Viewer is selected 5. Select Microsoft Excel Worksheet from the drop down list box. (A name will be applied to your output file automatically, corresponding to the name that you gave the original query in step 1 above. If you want to change this or change the path, click on the Browse button beside the Output File box.) 6. Click OK The above screen is also used to specify saving a querys results to a standard PC text file. In step 3, simply click the option to Write results to a PC File. Note that this option is automatically turned
Notes:
5/21/04
Page 39
Showcase Strategy Report Writer & Query User Training Manual for ABC
on when selecting an alternate viewer, since the procedure must create an external file by default.
Spreadsheet Reporting
With spreadsheet reporting, you have the opportunity to forge a dynamic link between the queried data and an external worksheet file. This means that whatever formatting you apply to a Microsoft Excel worksheet, for example, will remain from one execution of a query to the next. This also means that the data from one execution of a query to the next will be refreshed per your databases current status.
Notes:
5/21/04
Page 40
Showcase Strategy Report Writer & Query User Training Manual for ABC
One advantage in particular stands out with regards to spreadsheet reporting: the possibility of linking several different queries to one spreadsheet.
Notes:
5/21/04
Page 41
Showcase Strategy Report Writer & Query User Training Manual for ABC
2. Go back to Showcase Strategy and pull down the QUERY REFERENCES menu 3. Click the ADD button 4. Click and drag with the mouse to highlight the data columns required (note, of course, these will match the columns that have been set up in your spreadsheet); the cell range that you defined in step 1 will be displayed in the Reference list box 5. Click OK to confirm the entries in the Data References dialog box 6. Click OK to complete the procedure; the Excel worksheet should display the queried data
Notes:
5/21/04
Page 42
Showcase Strategy Report Writer & Query User Training Manual for ABC
At this point, the data is available for use as in any normal Excel worksheet: format the cells as required, build new formulas, create charts, etc.
Suppose your query data currently resides in the area of A2 to C5 as shown above. Suppose further that you create a formula based on that data and populate it in cells D2 to D5. This latter area (see diagram above) must be designated as an extendable detail area so that the next time the query is updated, the entire range of cells A2 to D5 will be refreshed. The steps to do this are the following: 1. Create the formula(s) in the Excel worksheet 2. Format and copy the formula(s) as required
Notes:
5/21/04
Page 43
Showcase Strategy Report Writer & Query User Training Manual for ABC
3. Click and drag to highlight the area taken up by the formulas 4. Go to Showcase Strategy and pull down the QUERY REFERENCES menu 5. Click the ADD button 6. Select Extendable Detail Area from the Data Category list box (it should indicate the area that you previously highlighted in step 3) 7. Click the OK button to confirm 8. Click OK to return to the worksheet (if the changes are to be retained, remember to save your worksheet) To start the query again and refresh all data, simply go back to Showcase Strategy, pull down the REFRESH QUERIES menu, and click on the name of the query.
Exercises
The following is an exercise to set up and modify a spreadsheet report.
Report Setup
1. Start Excel 2. Type Budget Status Report in cell A2 3. In cells A4 to D4, type Account, YTD Expense, YTD Budget and Variance respectively 4. Highlight columns A through D and adjust the width as necessary for best fit 5. Click on the Showcase menu item
Notes:
5/21/04
Page 44
Showcase Strategy Report Writer & Query User Training Manual for ABC
6. Select QUERIES, then ADD 7. Highlight interactive report 8. Click OPEN 9. Click OK 10. Highlight cells A5 through D6 11. Select the Showcase menu 12. Select QUERIES REFERENCE 13. Click ADD 14. Hold down the [CTRL] key and select CTDESC (chart of account description), GLCUR (current balance), BXTOT (budget amount) and BXTOT-GLCUR (variance) 15. Click OK 16. Highlight columns A through D and adjust the widths for best fit 17. Save as variance
Notes:
5/21/04
Page 45
Showcase Strategy Report Writer & Query User Training Manual for ABC
M ANAGING R EPORTS
s was mentioned at the beginning, the Query tool can also be run from within the Report Writer application to create results that follow a custom report format and design.
Report Types
Four different types of reports are available via Report Writer:
Columnar Report
Notes:
5/21/04
Page 46
Showcase Strategy Report Writer & Query User Training Manual for ABC
The type of data that you require will more than likely dictate the type of report that must be chosen. Most reports will be columnar reports. Crosstab reports are useful for summarizing data and comparing totals. Form letters and mailing labels are, of course, highly specialized report formats that the ABC may not ever require.
Sections
Within each of the four different report types you will find standard report sections that can be manipulated and Report Header customized. They are the Page Header Group Header following:
report headers & footers page headers & footers group headers & footers detail
Detail Group Footer Group Header Detail Group Footer Group Header Detail Group Footer Page Footer Report Footer
When you run a report for the first time, you will see the above sections outlined as distinct areas. Reports will always have something inside the detail area, but any of the remaining areas can be left blank. Alternatively, any number of objects (see next) can be added to each section to enhance the overall look of the report.
Notes:
5/21/04
Page 47
Showcase Strategy Report Writer & Query User Training Manual for ABC
Objects
The following objects can be added to any report format to fulfill customization requirements:
any graphic image (such as a corporate logo) additional fields and field labels (including summary fields such as SUMs and system fields like DATE and TIME) additional text
Notes:
5/21/04
Page 48
Showcase Strategy Report Writer & Query User Training Manual for ABC
To run a report that has been previously saved and is not presently loaded in Report Writer: 1. Pull down the FILE menu 2. Select OPEN 3. Select the name of the report that you wish to run (you may have to change the path to find the correct folder) 4. Once loaded, click the Run icon
Printing a Report
Printing reports through Showcase Strategy Report Writer is the same as through the Query tool, via the PRINT option under the FILE menu. 1. Pull down the FILE menu 2. Select PRINT 3. Specify desired print settings and click OK to print
Notes:
5/21/04
Page 49
Showcase Strategy Report Writer & Query User Training Manual for ABC
Formatting Tools
Report Writer has a selection of formatting tools with which to change the look of your reports:
the formatting submenu allows you to change aspects relating to fonts, borders, numeric formats, text alignment, column width and field height the alignment tool a graphical toolset that auto-aligns objects and text in a variety of ways the drawing tool a standard tool with which to draw and place shapes on the report layout surface
Notes:
5/21/04
Page 50
Showcase Strategy Report Writer & Query User Training Manual for ABC
6. Enter a more meaningful name for the shortcut and then press [ENTER] 7. Right click on the shortcut name that you just entered 8. Select Properties from the submenu 9. Select the Shortcut tab and click on the CHANGE ICON button 10. Choose an appropriate icon 11. Click OK twice 12. Finally, drag the shortcut to the Desktop At this point, if you exit totally from the Report Writer, doubleclicking on the shortcut that you just created will start up the program and run the report.
Exercises
In the following set of exercises, you will continue with the results from your query exercises to produce a custom report. Once again, be sure to consult your instructor if you have difficulties.
Notes:
5/21/04
Page 51
Showcase Strategy Report Writer & Query User Training Manual for ABC
5. Select sorted report as the query to import from; click OPEN 6. Click on the Run icon to view your results and then click OK 7. Adjust the page layout of the report to landscape by pulling down the FILE menu 8. Select PAGE SETUP, then Size and orientation and then select Landscape 9. Click OK and then Yes to resize the sections to the margins
Notes:
5/21/04
Page 52
Showcase Strategy Report Writer & Query User Training Manual for ABC
1. Select the standard amount - current balance heading 2. Click on heading once more (ensure that you do not select the entire column); when a flashing cursor appears, delete the text with the [Delete] key 3. Enter Variance as the new name 4. Select the standard amount heading 5. Double-click on it and delete the text with the [Delete] key 6. Enter Annual Budget as the new name 7. Change the name of 30 Character Description to Description Adjust the columns: 1. Highlight all columns and click the icon for Best Fit again 2. Highlight the Description column and drag it over to the right to make the report more readable 3. Using the [SHIFT]-click method, highlight the three columns from Variance to the last field on Current Balance (a blue box will appar around these columns once they are properly selected); drag these columns over to the right to make the report more readable Move the column titles to report header section: 1. Click the Column Mode icon 2. Click on the bottom of the report so that no specific field or column is selected 3. Click the Group Header icon 4. Click the Field Mode icon
Notes:
5/21/04
Page 53
Showcase Strategy Report Writer & Query User Training Manual for ABC
5. Using [SHIFT]-click again, highlight all column titles and drag them to the header section; drop into place Add totals to numeric columns: 1. Click the Column Mode icon (remember to click on bottom of report to select entire report) 2. Click the Group Footer icon 3. Select the Current Balance and click the Sum icon 4. Sum up the other two columns in similar fashion Edit summary line: 1. Click on the text sum of standard amount - current balance and delete it using the [Delete] key 2. Click on the text sum of standard amount and delete it 3. Select the text sum of current balance 4. Click on the text again and use the [Delete] key to remove the existing text 5. Enter Total in place of the above Adjust text alignment: 1. Highlight the text Total, and the numeric totals of the Current Balance and Annual Budget columns 2. Pull down the T OOLS menu and select ALIGNMENT 3. Click on the option to align bottom edges 4. Align the sum of the variance column with the other totals using the top edges option Edit report titles:
Notes:
5/21/04
Page 54
Showcase Strategy Report Writer & Query User Training Manual for ABC
1. Click on the text title, then click on it again and delete it using the [Delete] key 2. Type VARIANCE REPORT instead 3. Save the report as draft variance report 4. Highlight the new report title and move it to the top centre of the page header 5. Move the text Accounting Year under the title 6. Move the 1998 beside the text Accounting Year 7. Change the text from Accounting Year to Fiscal Year 8. Select the 1998 and click the button to Align Left 9. Highlight the Fiscal Year text and the 1998 together and center them under the title Add graphics object: 1. Click the Picture icon to insert a graphic 2. Scroll through the list to find the ABC logo 3. Click OK 4. Move to the upper left corner of the report header and click the mouse to drop the graphic into place Move page number: 1. Select the page number (the 1) at the top right corner of the report 2. Move it to the bottom right corner underneath the footer. Insert system fields: 1. Pull down the INSERT menu and select FIELD
Notes:
5/21/04
Page 55
Showcase Strategy Report Writer & Query User Training Manual for ABC
2. Use the drop down list for Data Fields and select System Fields 3. Highlight Print Date and Time and click Insert 4. Drag the items to the bottom of the report 5. Insert a text field also and drag to the bottom of the report 6. Click Done to return to your report layout 7. Move the date and time beneath the page number 8. Change the default text field to read Report Date 9. Align the new text field with the date 10. Create a text field for the page number (i.e., Page) and align it with the current page number. Apply numeric formats: 1. Select the Current Balance column 2. Click the $ icon to apply a currency format 3. Apply this format to all other columns and totals 4. Realign columns and totals as necessary Add borders, colours and change fonts: 1. Select all the totals 2. Pull down the FORMAT menu and select BORDER 3. In the patterns box, select Custom 4. Select the solid colour aqua in foreground pattern 5. Select the bottom style 6. Select the bottom style, increase thickness to 0.02
Notes:
5/21/04
Page 56
Showcase Strategy Report Writer & Query User Training Manual for ABC
7. Select line type and apply a double line type 8. Click OK to finish 9. Select the report header 10. Pull down the FORMAT menu and select BORDER 11. Choose the aqua pattern again and click OK 12. Highlight the title and drop the font size to 20 13. Increase the font size of Fiscal Year 1998 to 15 and realign as required 14. Save as variance report 15. Run the report and specify a minimum account number of 001-3000-300-11500000-40000000 and a maximum number of 001-3000-300-11500000-49999999 (the results should be for Operating Expenses only)
Notes:
5/21/04
Page 57