Professional Documents
Culture Documents
Table of Contents
Overview ......................................................................................................................................... 1 Database File Structure and Relationships ..................................................................................... 2 Working with LANSA Client Administration.................................................................................... 3 Working with LANSA Client ............................................................................................................. 8 Run a Simple Shipped Query......................................................................................................... 12 Enhance Query Results, Report and Chart ................................................................................... 18 Editing Data ................................................................................................................................... 33 Build, Execute and Save a Join Query ........................................................................................... 36 Build, Execute and Save a Linked Query ....................................................................................... 42 Generate an Application ............................................................................................................... 51 Creating a Report with Crystal Reports ........................................................................................ 60 Customizing a Report .................................................................................................................... 74 [IMPORTANT] Logoff the Lab PC ................................................................................................... 86
Overview
In this LANSA Client self-paced lab, you will focus on building queries and reports using LANSA Client V11.5 and Crystal Reports XI. It is intended for end users and/or developers responsible for designing and implementing Ad-hoc or prepared queries and reports. Analyzing data, data integration, charting and the report designer are also discussed.
Page 1
Page 2
1- Starting LANSA Client Administration 2 - Configuring General Options 3 - Configuring a Host 4 - More Configuring General Options
Page 3
Page 4
The LANSA Client Administrator dialog box shows you the hosts to which you could be connected and allows you to specify the options you would prefer to use in your LANSA Client environment. The options you select on this dialog box apply to LANSA Client in general, rather than when you are connected to a particular host.
Page 5
The Host Configuration Details dialog box allows you to define a host system to the LANSA Client environment as well as options relating to the use of that host system. b. Enter these values for this exercise: Host Name: Host Description: Host Partition: Host Language: User: Password: Maximum Records Allowed: Priority: Allow Inserts/Updates: Allow Deletes: Display Object Names: Display Logical Files: Use Library List: *LOCAL (must be uppercase) LANSA Music Store DEM ENG PCXUSER (must be uppercase) PCXUSER (must be uppercase) 0 25 Click this checkbox Click this checkbox Click this checkbox Click this checkbox Do not click this checkbox
Page 6
The options you have defined are written to the LANSA Client configuration file, LC32.LCX. Before you can use a new or changed LANSA Client environment, you must close and start LANSA Client again. Language The Language allows you to select the language in which you wish to run LANSA Client. The default is English. You can also use this option to change the font attributes used for the Results window. Query Location: The Query Location allows you to specify the location of saved queries, if it is different to the default (C:\Program Files\LANSA Client). DateTime Results Format: The DateTime Results Format allows you to specify the format in which the Date and Time fields are saved to either Excel or dBase files.
Page 7
Page 8
c. Click the OK button. Alternatively, you could simply double-click on LANSA Music Store line.
If you only have one host system to connect too, the Select Host dialog will not be shown. You will be logged in automatically.
Page 9
The LANSA Client main window is available when connected to the host. It contains the standard windows facilities which include: - Maximize and minimize buttons in the top right corner. - The system menu icon in the top left corner. - A title bar across the top of the window. - A menu bar just below the title bar. - A tool bar just below the menu bar. - A status bar at the bottom of the window. The status bar is used to display: - information about the file you have selected - the host system and partition you are currently connected to - the status of your query, when it is running.
Page 10
If a connection cannot be established to the host, the LANSA Client alternate window is displayed. In this case, you will need to restart the signing on process, after you have investigated the reason for not connecting to the host. This window is displayed when: - LANSA Client cannot connect to the host system when it starts. - you have disconnected from the host system you have been working with. - you have clicked the Cancel button on the Host Select dialog box and put LANSA Client into a "disconnected" state. From this window you can either: - exit from LANSA Client by selecting the Exit command from the File menu. - connect to a host system by selecting the Host menu and choosing the Connect command and following the Host Selection procedure. - force a refresh of the Local Data Dictionary by selecting the File menu and choosing the Refresh Local Data Dictionary option. If you choose this option, the Refresh Local Data Dictionary dialog box is displayed so that you can select the Local Data Dictionary that you wish to refresh.
Page 11
Page 12
Page 13
Note In this window, the field and file names are displayed beside their field and file descriptions. To remove these names, go to the Options menu, select Display Object Names and click on it to remove the checkmark.
In the Query window, you will see the "definition" of the query that you have opened. That is, in the Selected File area: - the Name of the primary file selected for the query, in this case, the Sales History file. - all the fields in the Sales History file. - the fields selected for the query. They have a checkmark over their icon. in the Selected Fields (columns) area: - the fields that have been selected for this query. in the Defined Links to Queries area: - the LMS Sales History Query. Only this query is displayed, as there are no linked queries.
Page 14
LANSA Client Self-paced Lab 2010 2. Review Selection Condition for the Query
a. From the toolbar select the Options menu and then choose the Field Conditions command. Alternatively, you could select the Set field conditions... icon from the toolbar. The Field Conditions dialog box is opened.
Field Conditions You can see that a field has a condition attached when there is an asterisk (*) to the left of the field's name in the Selected Fields area of the Query window. Do you see the asterisk next to Artist Name in this exercise's Query window? This sample query already has a field condition defined. In this case, it selects all Artist/Album records except for Madonna. You can lean more about Field Conditions by clicking the Help button on the Field Conditions dialog.
Page 15
Page 16
LANSA Client will now execute the query on the host system. While it is doing this, it will display messages in the Status Bar to inform you of the progress of the query. The results of the query are displayed in a spreadsheet-like data viewer. This is known as the Results window.
To quickly adjust the column width in the Result window, position the cursor in the column header area, over one of the divider lines and then double-click. Repeat for each column header that is to be resized.
Leave this Result window open, to use in Exercise 4 - Enhance Query Results, Report and Chart.
Page 17
Page 18
Page 19
To quickly adjust the column width in the Result window, position the cursor in the column header area, on one of the divider lines and then double-click. Repeat for each column header that is to be resized.
Page 20
All the fields defined for the query are displayed in the Query fields list in the Group By dialog box. c. You are going to group the data according to Artist Name & Album Title. To do this, double-click on the Artist Name in Query fields or alternatively, select the Artist Name and click on the Add button. You will notice that Artist Name is immediately displayed in the Group By fields list. Repeat this step for the Album Title.
Page 21
e. When done, click the OK button. The Results window will now show the new results.
Any numeric columns including dates and times will also be summarized.
f. Scroll through the Results window. You will see that there are additional rows for each Album. This is the result of applying the grouping conditions. Notice that at the end of the results you still have the totals which apply to all the records in the query.
Page 22
LANSA Client Self-paced Lab 2010 3. Collapse and Expand your Results
You can further manipulate the presentation of your data by collapsing and expanding the rows in the Results window. a. Click on the right mouse button to bring up the pop-up window and select Collapse Group command. Alternatively, you can open the Collapse icon on the toolbar of the Result window. b. You can repeat this command until only the final totals are shown. c. Select the Expand Group command from the pop-up window to see the effect on the data in your Results window. Alternatively, you can open the Expand icon on the toolbar of the Result window. d. You can repeat this command until only the details are shown.
Expand Group & Collapse Group If you have specified grouping conditions, the Expand and Collapse Group commands allow you to expand and contract the grouped results. Before you can expand or contract information, you must first specify the groups in which you wish to group your data under the Group By options. Use the Collapse Group command to hide the display of the query's details so that you can easily see the group totals. Then use the Expand Group command to see the details again. Using the Collapse Group command, you can collapse the rows until only the grand totals are displayed.
Leave the results fully expanded for the next step, Step 4. Display the Results using a Report Format.
Page 23
LANSA Client Self-paced Lab 2010 4. Display the Results using a Report Format
LANSA Client comes with Crystal Reports, a powerful Report Writer. A report for the sample query is supplied. In this step, LANSA Client will find the LMS Sales History report format and display the results in the report's layout. a. Your results must be expanded to show details (see previous exercise). b. From the toolbar select the Results menu then choose the Report command. Alternatively, you could select the Display results using a report icon from the toolbar. A new window is displayed with the results of the query in the report layout specified for the query.
So that LANSA Client can automatically find the report belonging to this query: the query file, its result file, and the report file all share the same file name of LMS Sales History. That is: LMS Sales History.LCQ is the query's definition. LMS Sales History.MDB is the query's results. LMS Sales History.RPT is the query's report.
c. Close the Report window only. Leave the Result window active, so that you can continue to Step 5. Chart Results.
Page 24
b. If the details are not all displayed, select the Expand Group command. Repeat selecting the Expand group command until you see only the details.
Page 25
d. Sales QuanWhen all the cells you require have been highlighted, select from the toolbar the Result menu and then choose the Chart command. Alternatively, you could select the Create a chart icon on the toolbar.
A Chart window is displayed showing the rows you selected as a 3dimensional Bar Chart. This is LANSA Client's default chart type.
Page 26
e. From the toolbar select the Chart menu and choose 3D Pie chart type from the list. Notice that the Chart window instantly displays the same data in a 3D Pie chart. This is how you can quickly change the Chart Type.
Page 27
You can explode or "lift out" a portion of a pie chart by pressing the <Shift> key while clicking with your mouse pointer on the portion of the chart you want to explode. Repeat the same action to toggle between exploding and not exploding portions of the chart.
To explode all the portions of the pie chart, press the <Ctrl> and <Shift> keys simultaneously and, while keeping these keys pressed, click on any portion of the chart. This action will explode all the portions of a pie chart. Repeat the same action to toggle between exploding and not exploding the pie chart.
Note: Pie charts are not suitable to use when you have selected more than one column to chart.
Page 28
Have you noticed that each time you change an option associated with the chart, the sample chart displayed in the top right hand corner of the dialog box reflects the new option.
Page 29
d. Retain this chart as a 3-dimensional Bar chart for the next step, Step 7. Use the HotGraphing Facility.
Page 30
Page 31
Page 32
Editing Data
1. Editing Data
You must modify the sample query to allow you to edit the data for the exercise. a. From the toolbar select the Options menu and then choose the Sort Options command. Alternatively, you could select the Set the sort options icon from the toolbar. The Sort Options dialog box is opened.
b. Click the Display field in results checkbox for Artist ID and Album ID. c. When done, click the OK button. d. Execute the current query by selecting the toolbar menu for Query and choose the Execute command. Alternatively, you could select the Execute (run) the current query icon from the toolbar or use this command's accelerator keys (Ctrl + E). Now to change the data you have retrieved from the host. This is done from the Result window, so you need to make it the active window. e. If the Results window is not the active window, click on its title bar. Alternatively, use the option described in Exercise 4, Step 5.a f. If the details are not all displayed, use the Expand Group command until they are.
Page 33
You can change the details displayed provided you have the authority to do so.
You will not be able to change the key fields such as the Artist ID, Album ID, Album Sale Year and Album Sale Month.
i.
j. Click the Next button to display the next row. You do not need to return to the Results window to select another row.
If you are changing a record with many fields, you may need to use the scroll bar located to the right of the box to scroll down to the bottom.
k. Click the Close button to dismiss the Edit Row dialog box.
Page 34
LANSA Client Self-paced Lab 2010 2. Getting Help about Field Definitions.
a. To get this help, press the Shift and F1 keys at the same time or select the query icon from the toolbar. A question mark will be attached to your cursor's pointer. Drag the to the Artist Name box. When you click the mouse button again, LANSA Client will retrieve the help text for the Artist Name from the Repository and display it in a pop-up window in the language defined for the host system.
Can you see how really useful LANSA Client can be? You did not have to define any of these screens, any of the business rules or any of the help text. As the business rules and your authority for making changes are defined in the Repository, you will not be able to change data or bypass the business rules to make unacceptable modifications under any circumstances.
b. To close the Help window, click the OK button. c. Return to the Query window and select the Close command from the File menu on the toolbar. All related windows will also be closed. d. If prompted to save the query, click the NO button.
Page 35
Step 1 - Build a Join Query Step 2 - Execute a Join Query Step 3 - Save a Join Query
Page 36
When you create a query, you must first choose a file to be the primary file. In this case, the primary file is the Sales History file. You can easily identify the primary file because its name is displayed in the title bar of the Selected File area.
Page 37
c. Locate the Album Details file in the Selected File area of the Query window and select it by also double-clicking on the file name. The fields for the Album Details file will be immediately displayed, indented in the Selected File area.
d. Add the Album Release Date to your query by dragging the Album Release Date from the Selected File area and dropping it into the Selected Fields area immediately below Album Sale Quantity. e. Repeat this process by locating the Album Price and dragging and dropping it immediately after the Album Release Date.
You can re-sequence the fields in the Selected Fields area by using the left-mouse-click on a field and dragging them up or down in the list and releasing them between two other fields.
Page 38
Page 39
Note that the Album Release Date and Album Price are displayed. You have just created a query that accesses two files to produce the results in a single window.
Page 40
c. Give the query file a name, for example, My Tutorial Join Query in the File Name. d. Click the Save button to save the query. The Save Query dialog box is closed and you are returned to the Query window. e. Close the Query by selecting the Close command from the File menu. This query will be used in Exercise 8 - Generate an Application.
Page 41
1 2 3 4 5 6
Create the first query Select the fields for the first query Define the link for the second query Select the fields for the linked or second query Save the Linked Query Run the Linked Query
Page 42
Selected Fields (Columns) area shows you the fields included in the query. Initially this area will be blank. There are several field types in a file. You can recognize them by:
o o o Key fields: Normal fields: (key icon) (orange icon) (blue icon)
Defined Links to Queries area shows the queries that are linked together. An indented query indicates that it can be called by the query above it. Initially this area will be blank.
Page 43
b. The name of the files used for this exercise all start with X. To display only the files whose names start with X, from the toolbar select the Options menu and then choose the File Filter command.
Choose these options for this exercise: Filter: Display files with Use case sensitivity: c. Click the OK button In the File to Select From area, select the Album Details file by double clicking on its name. Immediately, the fields in the Album Details file are listed beneath the file name and the file's name is inserted into the title bar of the area. This file is now identified as the primary file of your query. Enter the value X* Click this checkbox Do not click this checkbox
Page 44
LANSA Client Self-paced Lab 2010 2. Select the fields for the first query
a. Drag the Artist Name from the Selected File area into the Selected Fields area. b. Drag the Album Title from the Selected File area into the Selected Fields area. You have just created a query that will list all the available albums.
Page 45
LANSA Client Self-paced Lab 2010 3. Define the link for the second query
a. Locate the Reviews by Artist/Album file in the Selected File area and drag it into the Defined Links to Queries area.
When your mouse button is released, in the Defined Links to Queries area you will see the Reviews by Artist/Album file indented beneath the folder representing the first query. The fields you moved into the Selected Fields area are no longer displayed. You are now ready to select the fields for the secondary query.
Page 46
LANSA Client Self-paced Lab 2010 4. Select the fields for the linked or second query
a. Drag the DateTime and User Review Comments, one by one, from the Selected File area into the Selected Fields area. Alternatively, you could select them by double clicking on their name in the Selected File area.
Page 47
b. Give the query file a name, for example My Tutorial Linked Query.LCQ in the File Name. c. Click the Save button to save the query. The Save As dialog box is closed and you are returned to the Query window. You have just created and saved a linked or drill down query, from the Album Details file to the Reviews by Artist/Album file.
Page 48
d. Select the Reviews by Artist/Album command from the drop down or pop-up menu. This will execute the secondary query using The Eagles, Hotel California data as its selection criteria.
Page 49
To resize columns in the Result window, refer to Exercise 3, step 3.1 To show all the opened query and result windows, select the toolbar Windows menu and then choose the Tile command to display your windows side by side. e. Repeat the process for another album to see how LANSA Client executes the linked query.
As you have seen, LANSA Client provides you with the ability to build queries which can span multiple files and allow you to drill down from one file to another, without you having to write a single line of programming code.
f. Close the Linked Query by selecting the Close command from the File menu on the toolbar. All related windows will also be closed. You have now completed the Linked Query Exercise.
Page 50
Generate an Application
Using a generated application, you can "package" one or more queries into a stand-alone application which you can start without first starting LANSA Client. This exercise shows you how to generate a stand-alone application based on the query you created in exercises: Exercise 6 - Build, Execute and Save a Join Query Exercise 7 - Build, Execute and Save a Linked Query When you have finished this exercise, you will be able to run the Sample query, the Join query and the Linked query without first starting LANSA Client. If you have not done the previous exercises to create and save the queries used in this exercise, then any query that you have saved can be used. These are the steps required to generate and application:
1 2 3 4 5 6 7
Create a New Generated Application Define your Application Add a menu to the application's menu bar Add Commands to the new Queries Menu Add more Commands to the new Menu Run the Generated Application Distribute a Generated Application
Page 51
The Generated Applications dialog box shows you a list of existing LANSA Client generated applications. Initially this list will be blank. b. Select the New button. The Generate Application dialog box is displayed.
Page 52
Page 53
LANSA Client Self-paced Lab 2010 3. Add a menu to the application's menu bar
To give you a quick start with your new query, you are provided with a ready to use menu bar containing menus and commands. These are the basic commands, such as File, Print and so on and they are listed in the Generate Application's Menu box when it is opened. You cannot modify these commands. For each query packaged in your application, you will need to add a command to your menu bar in order to start the query. In this exercise, these commands will be added to a new item in the menu bar.
a. Add a new menu to the menu bar by placing your mouse pointer on any item in the Menu box and pressing the Add button. Do you see the additional blank entry that has been added above the Options item in the Menu box? This will become a menu on your application's menu bar. b. Give the new menu a name, by entering &Queries in the Menu Text entry box.
What you have done is added a menu item called Queries to the menu bar with Q as its short cut key. The '&' character does not appear, but it causes the Q character to be underlined.
To create a short cut key for a menu item, insert an ampersand (&) immediately to the left of the character you would like to use. For example &Queries will cause the keys <Alt> and <Q> to be used as short cut keys for this menu and Queries to be displayed on the menu bar. If you entered, instead, Q&ueries, the shortcut keys would be <Alt> and <U>.
Page 54
LANSA Client Self-paced Lab 2010 4. Add Commands to the new Queries Menu
You will need to add one command for each query that you include in your application. a. To create a new command, highlight the menu item immediately below your new Queries menu item and click the Add button. A new entry will be added above the menu item you highlighted. b. Give the entry a name, by typing &Simple Query in the Menu Text box. As Simple Query is to be a subcommand of the Queries menu, you need to indent it beneath the Queries menu in the list. c. To do this, keep the Simple Query entry selected and then click the right arrow button,once. This indents the Simple Query entry to the right by one position. d. While Simple Query is highlighted, select LMS Sales History.LCQ from the Query To Execute list.
You now have a subcommand in the Queries menu. This command is called Simple Query and has the letter S as its short cut key. When you select this command, it will execute the Sample Query which was used earlier in this exercise.
Page 55
LANSA Client Self-paced Lab 2010 5. Add more Commands to the new Menu
Now to add the commands for the Join and Linked queries. a. Highlight the menu item immediately below your new Simple Query menu item and click the Add button. A new entry will be added above the menu item you highlighted. b. Type &Join Query in the Menu Text box. Indent your new command beneath the Queries menu item by clicking the right arrow button at the bottom of the box.
Select the My Tutorial Join Query.LCQ from the Query to Execute list.
c. Highlight the menu item immediately below your new Join Query menu item and click the Add button. A new entry will be added above the menu item you highlighted. d. Type &Linked Query in the Menu Text box. Indent your new command beneath the Queries menu item clicking the right arrow button at the bottom of the box. Select the My Tutorial Linked Query.LCQ from the Query to Execute list.
e. If your commands are not in the desired sequence, re-arrange them using the up and down arrows.
You may wish to attach a different icon to this application. The LANSA Client icon in the top right corner of this dialog box is the icon that will be used unless you replace it. To change the icon, select the Change button and then select an icon from your own files using the browse dialog box.
f.
Select the Host System to be associated with this application. Click the check box for Associate Host System. Select the LANSA Music Store from the list of hosts.
Page 56
You are now ready to generate the LANSA Client application. Check that you have selected a Query to Execute for each of you new menu items. If you have not, an error message will be displayed and the Generate will be cancelled. g. Click the Generate button. LANSA Client will generate the application. h. Reply Yes to the message telling you that your new applications will be stored in the APPS directory. (There is no option for you to choose or change the directory.)
i. If you are prompted with a message similar to the following, click the Yes button, to overwrite any files in the APPS directory:
Page 57
Note that you do not have to start LANSA Client first. In the Sample application's Main window, did you notice that LANSA Client has included your new Queries menu in the menu bar?
c. One by one, select the commands in your Queries menu to run the queries. d. Close the Generated Application. e. If prompted to disconnect, click the Yes button.
Page 58
Page 59
Step Step Step Step Step Step Step Step Step Step Step Step
1 - Start Crystal Reports 2 - Select a Report Wizard 3 - Select a Database 4 - Select Database Fields 5 - Group the Data 6 - Add Summary Information 7 - Group Sorting 8 - Charting 9 - Record Selection 10 - Select a Template 11 - Generate the Report 12 - Save the Report
Page 60
LANSA Client will execute Crystal Reports. Alternatively, you can start Crystal Reports from the windows Start button, point to All Programs, point to BusinessObjects XI, point to Crystal Reports and then click Crystal Reports XI icon.
Page 61
The New Reports area of the Start Page contains a number of wizards to guide you through the creation of specific types of reports. b. In the New Reports area, click Standard Report Wizard. The Standard Report Wizard will prompt you for information about the report to be created.
Page 62
to the side of
Page 63
Page 64
Page 65
Page 66
Page 67
Page 68
Page 69
Page 70
a. In the Template dialog box, select the Block (Blue) template from the list of Available Templates.
Page 71
This is the generated report you should see. Ignore the date format for now. This will be modified later.
Page 72
a. From the toolbar select the File menu and then choose the Save As command to open the Save As dialog box.
b. Give the report a new name, for example, My Sales History Report in the File Name. c. Click the Save button to save the report. The Save dialog box is closed and you are returned to the Crystal Report window. This report will be used in Exercise 10 Customizing a Report.
Page 73
Customizing a Report
In this exercise, you will customize the report created by the wizard in Exercise 9. The wizard had included the objects in the report that you will be customizing.
These are the steps covered in this exercise to customize this report:
1 2 3 4 5 6 7 8
Add a Title and Description Add a Logo Modify Column Headers Delete Duplicate Detail Fields Format Detail Fields Add Sorting on a Detail Field Save the Report Link the Report to LANSA Client
Page 74
b. Give the Comments a description of the report, for example, Sales History of Artist / Album showing units sold per month. c. Give the Title a value of Sales by Artist / Album d. Click the OK button. e. Click the Preview tab if the Preview tab is not already visible, to see the changes just made.
A title box has been provided by the wizard which takes the title information directly from the Title text box in the Document Properties dialog box. To manually add a title and/or comment 1. Click the Design tab. 2. In the Field Explorer , scroll down to Special Fields and expand it. 3. Choose Report Title or Report Comments. 4. Drag the object over the report and release it. An object frame appears.
Page 75
Use the Open dialog box to locate the splash_logo.jpg file. This file is found in the C:\Program Files\LANSA Client\ directory. c. Click the Open button for the splash_logo.jpg file. d. An orange placeholder appears. Move it to the same location as the deleted logo and click the left mouse button to release it. The header area of your report should now look like this:
Page 76
d. Repeat the process for Sale_Month column header, to change the value to be Month. e. Repeat the process for Album_Sale_Quantity column header, to change the value to be Quantity. f. To delete the column header for Artist_Name, click on the Artist_Name column header, and then click the right mouse button. A pop-up menu is displayed with a list of commands. Select the Delete command. g. Repeat the process for Album_Title column header, to delete it. The detail area of your report should now look like this:
Page 77
c. Click the Preview tab if the Preview tab is not already visible, to see the changes just made.
Page 78
c. Repeat the process to format the Month field. d. Repeat the process to format the Quantity field. The detail area of your report should now look like this:
Page 79
Notice how the Group By fields are already added to the Sort Fields area. b. Highlight the LMS_Sales_History.Sale_Month field in the list of Available Fields area then click the > arrow to add it to the Sort Fields list. Accept the Sort Direction of Ascending for the LMS_Sales_History.Sale_Month field. c. Click the OK button The detail area of your report should now look like this:
Page 80
Page 81
LANSA Client Self-paced Lab 2010 8. Link the Report to LANSA Client
a. Return to the LANSA Client Main Window which should still be active after completing Exercise 9, Step 1, earlier. b. From the toolbar select the File menu and choose the Open command. c. Open the LMS Sales History.LCQ, the sample query. The Query window showing the sample query is displayed. Return to Exercise 3, Step 1, Open an Existing Query, for a reminder.
d. From the toolbar select the Query menu and choose the Output To command and then select the Report option. You have told the query to automatically output results to report. e. From the toolbar select the Query menu again and choose the Linked Query Option command. The Link Query Options dialog box appears.
Page 82
g. Use the Open dialog box to search for and select the My Sales History Report.rpt file. By default, you will have created this report file in the C:\Program Files\LANSA Client\ directory. h. Click the Open button. You have told the query the name of the report file name and where to locate it. The Open dialog box is closed and you are returned to the Link Query Options dialog box.
i.
Page 83
k. Give the query a new name, for example, My Sales History in the File Name. l. Click the Save button.
Page 84
In Exercise 4, Step 4, you saw that LANSA Client can automatically find the report belonging to a query if the query file, the result file, and the report file all share the same file name and are located in the LANSA Client query location i.e. LMS Sales History.LCQ is the query's definition. LMS Sales History.MDB is the query's results. LMS Sales History.RPT is the query's report. If any of these files do not share the same name or any of the files are located in a different directory, you will need to tell the saved LANSA Client query what the name of the report file is and where to locate it.
Page 85
Thank you for participating in this self paced lab. Visit www.lansa.com for more information.
Page 86