Beruflich Dokumente
Kultur Dokumente
1 Workshop Goals
We are going to create a Framework Manager model in which we use data source query subjects to represent a physical layer in the model and model query subjects to represent the presentation layer of the model. We will use the model as the basic for many further workshops, so please follow the directions carefully. This workshop is a script that reads from top to bottom. Each step depends on you having followed the instructions for the previous steps correctly. This first workshop is VERY LONG. Time is LIMITED. Focus on getting the workshop COMPLETED in the time available. This workshop requires you to have the GO Sales and GO Retailers databases installed on your computer. If you do not, please go to Appendix A now and restore the databases.
When you work in Framework Manager, you work in the context of a project. The Framework Manager project contains objects that you organize for reporting authors according to the business model and business rules of your organization. You view these objects in the project page.
A Framework Manager project appears as a folder that contains a project file (.cpf) and the specific .xml files that define the project. The files in a project folder are unique to each project. Tip: The project and the projects associated files are contained in a project folder. We recommend that you do not add any other files to this project folder.
Project Folder
These are the contents of a project folder. Files that are used by all projects of the same type are stored in the templates folder. The templates folder also contains initial templates of the project and user preferences. File name <project name>.cpf Description The Framework Manager project file, which references the .xsd and .xml files used to define a project The actual model data created by Framework Manager users The preferences for Framework Manager projects The stored diagram information. For example, the diagram layout, notation, font, color, etc. The logged version history for each project or segment that has been added to a repository
Files that are used by all projects of the same type are stored in the templates folder. The templates folder also contains initial templates of the project and user preferences.
Templates Folder
These are the contents of the templates folder. File name BMTModelSpecification.xsd CR1 Behaviors.xml Description The schema definition for Framework Manager projects. The user interface behavior of Framework Manager projects. This file also contains the mapping between actions and plug ins, XML tags and CR1 objects. A Framework Manager model template. The preferences template for Framework Manager Text to be translated for localization Text to be translated for localization, including icons and graphics
We will not select an import method right now. Select Cancel to the Import process.
Between the imported query subjects Convert to inner join ( 1..n ) This is important so your results mesh with later steps in this workshop. <Import> <Finish> Open the GO Sales folder and you will see that Framework Manager has created one data source query subject per table you selected.
You will see a list of objects in the model. This is a convenient view of the model for managing relationships and large numbers of objects. Using the Framework Manager toolbar buttons, switch to the <Object Diagram> view.
Using the toolbar buttons, select <Fit all> as your zoom level. Using the toolbar buttons, select <100%> as your zoom level.
Look at the bottom right corner of the diagram (where the scroll bars intersect) for the icon. Click on this and figure out what it does. Using the toolbar buttons, switch to <Large Icons>. Select a query subject in the model and Uusing the toolbar buttons, select <Auto LayoutSet Focal Point> then <Fit all>. It that more readable?to redraw the diagram.
Select the query subject called RETURN_REASON and press <Auto layout>. Note that the auto layout feature used the table you selected as it starting point for the layout. Using the toolbar buttons, select <Fit all> as your zoom level.
<Test> your query. Fix any errors that arise. Did you remember all the commas and ( )? <OK> In the left-pane tree of Framework Manager, open the ORDER_DETAILS query subject and you will see the columns you just added. <Save>
You will create some folders and namespaces to organization the model. This will keep the model organized, and prepare the model for publishing. Use the to, close all of your query subjects.
Rename the root namespace GO Sales to Model. The top-level namespace will not appear in Query Studio or Report Studio. In the left-pane tree of Framework Manager, select all of the query subjects. <Right click> and select <New Parent Namespace>. Rename the Namespace to GO Sales. This namespace will be used to identify the database and table you are using Create a Folder under Model. Name the folder Database View. Include GO Sales in the folder. This folder is used to organize the database and tables. It will not be use to identify the Query subjects.
Change LANGUAGE1 to LANGUAGE. Because LANGUAGE is a reserved word in the database, it should be surrounded with double quotes. Remember to test you query you close the window.
8 Publish a Package
You will now create a package and publish your model to Cognos ReportNet.
In the left-pane tree of Framework Manager, <right click> on Packages and select <Create Package>. Name the package GO_ApplicationGO Sales ML Framework Manager WKSHP. <Next> <Finish> We are taking all the package defaults for now. Click <Yes> when asked to open the publishing wizard. Ensure that Cognos ReportNet Server is selected as the destination. <Publish> <Finish>
9 Test Drive
9.1 Cognos Connection
Open your browser and log into Cognos Connection. Go to Public folders. You will see the package you just created. In Framework Manager, the package is just the metadata. In Cognos Connection (Content Manager), you have created a package that is both the metadata and reports, folders and what-notwhatnot associated with in. Click on the GO_ApplicationGO Sales ML Framework Manager WKSHP package to open it. Notice there are no reports in the package yet.
10 Framework Manager
Now, we want to add the presentation layer to the model.
Notes: The GORetailers namespace will be created in workshop 2b. The Product Information folder will be created later in this workshop. The Sales Rep folder will be created later in this workshop.
Name this query subject Orders and select <Model (Query Subjects and Query Items)> query subject. <Finish> You may wish to resize the dialog to make the next steps easier. Drag and drop query items from the Available Model Objects pane to the Query Items and Calculations pane as shown below:
ORDER_HEADER.ORDER_NUMBER ORDER_HEADER.RETAILER_NAME ORDER_HEADER.ORDER_DATE ORDER_METHOD.ORDER_METHOD_EN ORDER_DETAILS.PRODUCT_NUMBER PRODUCT_MULTILINGUAL.PRODUCT_NAME ORDER_DETAILS.QUANTITY ORDER_DETAILS.UNIT_COST ORDER_DETAILS.UNIT_PRICE ORDER_DETAILS.UNIT_SALE_PRICE ORDER_DETAILS.GROSS_PROFIT ORDER_DETAILS.ACTUAL_REVENUE ORDER_DETAILS.PLANNED_REVENUE ORDER_DETAILS.PRODUCT_COST ORDER_DETAILS.MARGIN
Test your query subject. Note: You might notice some duplicate rows. Do you know why this is? <OK> <Save>
Test your query subject. Note: You might notice some duplicate rows. Do you know why this is? <OK> <Save>
Right click on the query subject and select Create shortcut. This will create a shortcut in the same location. Right click on the shortcut and select Cut. Right click on the Order Information folder and select Paste. Note: You could have also dragged and dropped. We want the Sales Reps shortcut to be the last entry in this folder. Select Orders and drag it up to be the first item in this folder. Select Returns and drag it up to be the second item in this folder. <Save> Re-Publish the Package
This is what the final model should look like at the end of this workshop.
22 Test Drive
22.1 Cognos Connection
Open your browser and log into Cognos Connection. Go to Public folders. You will see the package you just updated. Click on the GO_Application package to open it.
you might wish to give this a try. You simply click on an item in the Framework Manager metadata tree and drag and drop it up or down the tree as required. Another clean-up item for a production model, which we will skip in this model, it to ensure all of our query items have meaningful names. Often the names from the database are not user friendly. You can select any folder, query subject or query item and simply rename it in the model.
24 End
This ends Framework Manager workshop 1. Please be sure you saved your model. We will use this model for the next workshop. We will make many enhancements to this basic model to show you how to truly add value to your customerscustomers database. Note: We may want to remove access to the Database View Folder from our end-users. You may do this now.
These files names in the right hand column will have the incorrect path D:\MSSQL7\DATA. This path was correct for the original database files but not for your system. You need to correct the path to point to the data location of your SQL Server install WITHOUT CHANGING THE ACTUAL FILENAME (qssqd_log.ldf and qssqd.mdf). You need to locate your SQL Server data directory. It might be C:\Program Files\Microsoft SQL Server\MSSQL\Data. Yours is probably something similar. Edit the filenames mentioned above to correct the path. In this example, C:\Program Files\Microsoft SQL Server\MSSQL\Data\qssqd_log.ldf and C:\Program Files\Microsoft SQL Server\MSSQL\Data\qssqd.mdf. Click on to begin the restore process. Assuming no errors, you are complete Repeat this for the GO Retailers database.