Anda di halaman 1dari 32

Nortel Workforce Management

Creating Reports in Cognos

NN44480-127
.

Document status: Standard Document version: 01.01 Document date: 16 October 2009 Copyright 2009, Nortel Networks All Rights Reserved. While the information in this document is believed to be accurate and reliable, except as otherwise expressly agreed to in writing NORTEL PROVIDES THIS DOCUMENT "AS IS" WITHOUT WARRANTY OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED. The information and/or products described in this document are subject to change without notice. Nortel, Nortel Networks, the Nortel logo, and the Globemark are trademarks of Nortel Networks. All other trademarks are the property of their respective owners.

Contents
New in this release
Features 5

5 7

Introduction
User Guide Content Overview 7 Intended Audience for this Guide 8 Conventions Used in This Guide 8 Standard Conventions 8 Customer support 9 Finding the latest updates on the Nortel Web site 9 Getting help from the Nortel Web site 9 Getting help over the phone from a Nortel Solutions Center 9 Getting help from a specialist by using an Express Routing Code 10 Getting help through a Nortel distributor or reseller 10

Creating Reports in Cognos


Creating a Stored Procedure 11 Create your Stored Procedure Query Subject in the SQL Project Create Your Second Query Subject in the SQL Project 15 Create Your Report 16 Update the Oracle Version of the Model 18 13

11

Usage Notes
Report Header 21 Currency 21 Time Zone 22 Time Zone 22 Remove a Section 22 Localization Summary 23 Saving a report 23

21

Frequently Asked Questions


How do I get Cognos Connection to run? 25 How do I get Cognos Connection to open an XML report stored in the le system? 25 In Framework Manager how do I access a prompt value for use in a calculation in the query subject denition? 26
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

25

4 Contents Is there a way to hide a column? 26

Known Issues Sample Reports


Activity Manager Reports Adherence Reports 29 Stafng Reports 29 Time Off Reports 30 29

27 29

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

New in this release


The following sections detail whats new in Creating Reports in Cognos NN44480-300) for Release 7.0. "Features" (page 5)

Features
This is the rst release of Creating Reports in Cognos NN44480-300)

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

6 New in this release

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Introduction
This guide is intended for use by report developers. It, and its companion documents, are intended to provide you with enough information to create and deploy custom reports that can be run from within the Workforce Optimization Solution. This guide is not intended to teach the basics of computer or software operation or use, and does not contain tutorial information. You are expected to be experienced in working with contact center equipment and software applications as well as PC workstation hardware and software. Please note that this document is intended primarily for viewing on-line. However, the format of the document is based on that of a printed manual, to support customers who print all or portions of the document. For similar reasons, entries in the Table of Contents, cross references, and index entries refer to page numbers. Those same entries function as hyperlinks for ease of use when the document is viewed electronically. Note: Colors may not print legibly on black and white printers. If you are using a non-color printer, select the option to print colors as black. In addition, please note that any screen shots used in this guide are for illustrative purposes only. There may be some differences between what you see in the product and these screenshots, but those differences should not be signicant or affect the accuracy of the information contained in this guide. This introductory section to the guide provides information on: "User Guide Content Overview" (page 7) "Intended Audience for this Guide" (page 8) "Conventions Used in This Guide" (page 8)

User Guide Content Overview


This guide consists of the following: "Creating Reports in Cognos" (page 11) describes the process of creating a custom report. "Usage Notes" (page 21)gives some practical tips and workarounds.
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

8 Introduction

"Frequently Asked Questions" (page 25)gives answers for some frequently asked questions. "Known Issues" (page 27)lists known issues with custom report creation. "Sample Reports" (page 29)summarizes useful information on a set of sample reports.

Intended Audience for this Guide


This guide is designed to be used by report developers. They are expected to have the skills and associated experience listed in the following table:
Product Cognos Report Framework Manager Cognos Report Studio Microsoft SQL Server or Oracle Server Years of Experience 1 1 2 Specific Experience Connecting to databases; defining parameters and formulas; grouping Connecting to databases; defining parameters and formulas; grouping Creating SQL queries. Select, Join, Outer Join, and Union operations. Creating temporary tables and parametrized queries. Using Datediff, DateAdd, Case, and other SQL functions. Running queries using SQL Query Analyzer or Oracles SQL Plus utility. The developer must have attended the Workforce Optimization Solution basic training.

Workforce Optimizatio n Solution

Attended the basic training.

Conventions Used in This Guide


The following table describes the Standard Conventions table highlights conventions used to describe user interaction, as well as special notations.

Standard Conventions
Area Menu Items Description Menu items are highlighted in bold as in the following example: From the menu, choose File > Preferences > Options. Document Names Other Nortel Systems documents are referred to using italics. For example: Refer to the Quality Monitoring 7.7 Installation Guide for more information.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Customer support

Area Buttons, Functions, and Dialog Box and Window Names

Description Specific button or function names are highlighted in bold. The following example shows how a button and dialog name are referred to in the documentation: Click OK, and then choose the Restore Database dialog box.

User Variables

When the user is expected to type a value, the name of the variable to be replaced is surrounded by < > . The following are examples: <Your ER Server Name> The notation <Your ER Server Name> refers to the name of your Enterprise Reporting server. When you see this notation, replace it with the actual name of your Enterprise Reporting server.

Customer support
This section explains how to get help for Nortel products and services.

Finding the latest updates on the Nortel Web site


The content of this documentation was current at the time the product was released. To check for updates to the latest documentation, go to www.nortel.com/documentation.

Getting help from the Nortel Web site


The best way to get technical support for Nortel products is from the Nortel Technical Support web site: www.nortel.com This site provides quick access to software, documentation, bulletins, and tools to address issues with Nortel products. download software, documentation, and product bulletins search the Technical Support web site and the Nortel Knowledge Base for answers to technical issues sign up for automatic notication of new software and documentation for Nortel equipment open and manage technical support cases

Getting help over the phone from a Nortel Solutions Center


If you do not nd the information you require on the Nortel Technical Support web site, and have a Nortel support contract, you can also get help over the phone from a Nortel Solutions Center.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

10 Introduction

In North America, call 1-800-4Nortel (1-800-466-7835). Outside North America, go to the following web site to obtain the phone number for your region: www.nortel.com/callus

Getting help from a specialist by using an Express Routing Code


To access some Nortel Technical Solutions Centers, you can use an Express Routing Code (ERC) to quickly route your call to a specialist in your Nortel product or service. To locate the ERC for your product or service, go to: www.nortel.com/erc

Getting help through a Nortel distributor or reseller


If you purchased a service contract for your Nortel product from a distributor or authorized reseller, contact the technical support staff for that distributor or reseller.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

11

Creating Reports in Cognos


Creating a Stored Procedure
This section contains an explanation of the structure of the standard structure of the stored procedure. You are responsible for creating the SQL statement that will return the record set with the necessary information. The rst section of the stored procedure contains the parameters. These parameters are transmitted to the stored procedure through Cognos.
CREATE procedure BP_RPT_EXCEPTIONS(@fromdate datetime, @todate datetime, @filterid int, @nLastNDays int = null)

In the second section the date range is selected based on user selection. Notice that if @nLastNDays is negative or null, the @fromdate and @todate parameters are selected.
as if (@nLastNDays is not null and @nLastNDays > 0) begin select @todate = getutcdate() select @fromdate = dateadd(day, @nLastNDays * -1, @todate) end

The third section is the SELECT statement that will return the record set.
Select

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

12 Creating Reports in Cognos

After you have created the stored procedure, test it using the SQL Query Analyzer. Once you have tested the stored procedure, assign the necessary permissions. To do this, open the stored procedure and click on the Permissions tab. Assign Exec rights to BPREPORTDB and to BPAPP.

The following tables are populated by the report dump process and contain data for creating most reports. PlannedEventTimeLine: Scheduled / Planned events. ActualEventTimeLine: Actual events. AdherenceException: Difference between the scheduled and actual events.
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Create your Stored Procedure Query Subject in the SQL Project 13

TraceReport: Contains call data statistics.

The following table is used to log the last timestamp of report dump process: TraceDumpLog

Create your Stored Procedure Query Subject in the SQL Project


To create your Stored Procedure query subject: Step 1 2 3 4 Action Start the Framework manager and open the Stored Procedures (SQL) project. Go to the namespace BPMAINDB, right-click, and select: Import Metadata> Database> BPMAINDB> Select the stored procedure from step 1. The Edit Denition dialog will now pop up. You now need to enter values for the stored procedure arguments. These have to be prompts, where the prompt names have been dened in a prompt.xml le that is unique to this report. Some common prompts are: EmployeeFilterIDthis causes the selection list of available employee lters, for that user, to show up on the Workforce Optimization Solutions report parameter page. SPID causes the selection of campaign / sp selector to show up in suites report parameter page. . BPFromDateTimedate time selector. Works in conjunction with SP selector. BPToDateTimedate time selector. Works in conjunction with SP selector. Previously there were more reserved prompt names, such as BPFromDateTime, BPToDateTime, combined with ShowDateOnly to control whether the prompt was Date or DateTime. Now we use the Cognos data type Date, or DateTime to control this Note: If the stored procedure parameter is DATETIME you cannot create a prompt of the form # prompt(BPFromDateTime, DATE)#. This form will cause an error, because ReportNet does not convert the data type from DATETIME to DATE. You have to convert it yourself

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

14 Creating Reports in Cognos

in the following way: #prompt(BPFromDateTime, DATE)+ 00:00:00.000#. ReportNet will interpret this as a DATETIME. Boolean values previously we used the datatype BOOLEAN (for SQL) or the prompt name prex b_ (for Oracle) to denote the Boolean prompt. As Cognos does not have a Boolean data type, we use the Cognos data type short to indicate Boolean data type to the report framework.

Prompt examples: 5 # prompt(EmployeeFilterID, INT )# # prompt(Published, short) # # prompt(SPID, INT )# # prompt(BPFromDateTime, DATETIME)#

Make sure the data type of the prompt is compatible with the data types of stored procedure parameters (you may have to experiment with this). Note: All prompt names need to be localizable. As ReportNet does not have a good way to localize prompt names, we do it in our Report Framework by looking up the display name in a table keyed on the prompt name (for example, EmployeeFilterID, Published) and the locale. If you have added any new prompts, you need to add entries into this lookup table.

6 7

After you are done creating prompts for the SP argument values, click OK. ReportNet has a Usage property which is often set incorrectly when a Query Subject is rst created. For Query Subjects based on a stored procedure, it is best to set the Usage property to Identier or Attribute. ReportNet generally selects the Identier property correctly, but often set elds as Facts when they should be Attributes. To resolve this issue, multi-select any elds that are Facts (they will be marked with a yellow ruler symbol), go to the properties tab, and set their Usage property to Attribute. Note: Fields that can be aggregated (durations, for example) can be left as Facts. End

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Create Your Second Query Subject in the SQL Project 15

Step

Action End

Create Your Second Query Subject in the SQL Project


The query subject that you just created will not be the one visible in the published package. There will be another layer, based on this query subject, that will contain all the calculations, display column names, time and conversions, and essentially anything that used to be done in Crystal. Step 1 2 3 4 Action Go to the namespace BPMAINDB, right-click, and select: Create> Query Subject Enter the name you want for the Query Subject. (Nortel recommends making this the report name). There will be a radio button with three selections for the type of Query Subject to create. Select Model. You will be shown a list of the model query subjects already created. Select the one based on the stored procedure that you created in the previous steps and drag it into the Query items and Calculations pane. Create any needed calculations. For example, Employee Name, which is a concatenation of LASTNAME and FIRSTNAME. Note: Localization of the Name format is not yet supported 6 Many time durations are returned by the stored procedures as duration in minutes. These must be converted to ReportNet time intervals. This is currently difcult because a Cognos bug prevents custom functions from being used. The following shows a method of working around this problem:
CAST((2000-01- + CAST(CAST((<duration in minutes field> / 1440) + 1, INTEGER) , VARCHAR(2)) + + CAST(CAST(<duration in minutes field> / 60, INTEGER) , VARCHAR(2)) + : + CAST(CAST(MOD(<duration in minutes field>, 60), INTEGER) , VARCHAR(2)) + :00.000),TIMESTAMP) - 2000-01-01 00:00:00.000.

At this stage you should convert any duration in minutes elds to time interval elds using this method. For duration in hours elds, see the Time Off Allocations By Time query subject as an example.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

16 Creating Reports in Cognos

If you have elds that should return predened constant strings (such as boolean true/false, yes/no answers), these need to be localizable. You can do this with parameter maps. There is currently a parameter map for Yes and No which is keyed on the session parameter runLocale. Here is an example of a calculation to return Yes/No:
if ([BPMAINDB].[EMPLOYEE_SCHEDULE].[ISPAID] = 1) then (#$Yes{$runLocale}#) else (#$No{$runLocale}#)

Next, for elds used in the report, you need to rename the column names to the correct display name. You might need to do this in multiple languages. Note: The properties page of the Query Items has a Language tab which allows you to do this. Column names are therefore localized inside the model.

You have now completed the model part; Publish the model. End

Create Your Report


To create your report: Step 1 2 3 Action From Cognos Connection http://localhost/crn/cgi-bin/cognos.cgi, click on the Report Studio link. You are prompted with a list of published models. Select the Stored Procedures model. Then select Create New and List template. On the right hand tab, you see a list of query subjects for this model. Open the one you selected in a previous step and start dragging in the needed elds. We generally recommend you start by getting the right data/elds and worry about group and such later. Note: There is a ReportNet bug in the group by/create section feature. You need to upgrade to version 414.43 to x this. 4 If you are doing group by with sections and you want to get aggregations for different groupings, make sure you group by rst, add the aggregations, and then create sections. Sections dont work with aggregations. Cognos considers sections to be a "list" within a list; the aggregation within the inner does not work correctly because of the section. You could try creating sections and aggregations as
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Create Your Report

17

above, and then later remove the section, r moving the grouped elds into the group header without creating sections. 5 Next you want to display the prompt values on the report header. Some prompt values you can display as is, such as BPFromDateTime. For these, go to the report header and insert a text box. Then, from the properties page of Text Item from the Toolbox, open Report Expression. In the Expression editor there is a Parameters tab, from which you can drag the parameter into the expression. The prompt values will be displayed in the Text Item. If you want to display BPFromDateTime in conjunction with LastXDays, you need to use a Calculation instead of a Text Item. The Business/DateTime functions that you need are not available through Text Item>Report Expression. Note: If you edit the Calculation and then click the Parameters tab (to drag in a parameter), you will get an error. To work around this, rst enter a 1 in the calculation, then save it (click OK), reopen it, and select the Parameters tab. In general the nal calculation will look something like this:
if (?LastXDays? = -1)

then (?BPFromDateTime?) else (_add_days(current_timestamp, ?LastXDays? * -1))

This is equivalent to the way it was done in Crystal Reports. 7 For prompt values that are IDs, you might want to display some name instead of the ID. A good example is the EmployeeFilterID parameter. Here you would want to display the employee lter name instead of the ID. To facilitate this there is a query subject EMPLOYEEFILTER which is ltered by the EmployeeFilterID prompt. You want to drag the NAME eld into the report head. To do this, rst you have to link the report page with a query. To link the report page with a query: a. Go to Query and drag in a new query. b. Double-click the new Query and drag the NAME eld from the Model tab into the query fact window. c. Now you need to associate the report page with this query: from the Page Explorer, right click over Report Pages. A dialog will pop-up. Select the page to be associated and then click the Page Breaks icon at the bottom of the dialog. From there you can select the previous query. 8 Now you can drag the query item NAME eld into the report header.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

18 Creating Reports in Cognos

If you have many prompt values displayed in the header, organize them with a table. From the Toolbox, drag a Table into the report header and specify the number of columns and rows corresponding to number of prompts to be displayed. You may want to add labels to the display of prompt values. In general, you can do this by dragging the TextItem from the Toolbox and typing in text. However, you might also need to localize this text, in which case: a. click on the TextItem to be localized. b. On the TextItems property page, click Conditional Text. c. If you have already created the Language variable, select it and click OK. Otherwise: d. Select the Variables button to create a variable of type Language (selecting the languages you wish to support) and click OK. e. Click OK a second time. f. Add the conditional text. You do this by opening the Condition Explorer, the Language variable, and selecting the language for which you want to set the text.

10

g. Go to the property page of TextItem and enter the text. Typically, localization agencies or translators are responsible for the actual translation. You might only need to enter a place holder here, and then send the report XML le to the translators. An example of such a place holder is entering the text item as <English label name><language prex>. For example, From (en):, From (fr):, etc. End

Update the Oracle Version of the Model


To update the Oracle version of the model: Step 1 Action Open the project StoredProcedures (Oracle). There are two model datasources: BPMAINDB and BPMAINDB_ORACLE. Both point to the ReportNet datasource BPMAINDB through the Content Manager Datasource property. BPMAINDB is necessary so that the query subjects can be imported from the SQL version of the model.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Update the Oracle Version of the Model 19

2 3

Select Import Metadata>Cognos ReportNet Model> and then select the folder where the SQL version of the model resides. Select the two derived versions of the model and import them. These query subjects (based on the stored procedure) are mapped to the BPMAINDB model datasource at this point. Now reimport the rst query subject (based on the stored procedure) from the database while the Oracle connection on the datasource is the only one active connection, as follows:
Cognos Connection>Directory>Datasources>BPMAIN DB>more>View Connections>BPMAINDB>more>Set Properties>Disable connection.

and
BPMAINDB_ORACLE>moreSet Properties>Enable connection

5 6 7

Go to the namespace BPMAINDB, right-click, and select Import Metadata>Database>BPMAINDB>. Select the stored procedure from step 1. Select the option When duplicate name is detected: Import and create unique name. This will create a new query subject (based on the stored procedure) with the name <stored procedure name>1.

8 9 10 11

Copy all the stored procedure argument prompts from the query subject <stored procedure name> to <stored procedure name>1. Delete the query subject <stored procedure name>. This will invalidate the derived model query subject. Rename <stored procedure name>1 to <stored procedure name>. Go to the model query subject and right-click > Update Query Subject. In most cases this is all you need to do. However, sometimes the column names of SQL stored procedures will be different from the Oracle version of those stored procedures. This may be due to case sensitivity. Where such differences occur, ReportNet will prompt you to repair the unlinked columns. This should resolve the problem. If this does not work, try: a. Opening the model query subject. b. Deleting all the column query items. Do not delete the calculations as these are still valid. c. Add the column query items back in.
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009

Copyright 2009, Nortel Networks


.

20 Creating Reports in Cognos

12

Publish the model and retest the reports. End

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

21

Appendix Usage Notes


Report Header
Its generally easier to copy and paste header information (prompt displays, etc.) from existing reports. For reports that have an employee lter name display, rst copy the name mapping query from the source report to the destination report using Query Explorer. Then link this query with the report header as described in "Create Your Report" (page 16). Next copy the complete report header block (make sure the object type is block) from Page Explorer Page1, to the destination report. Time Zone: How to convert BPFromDateTime/BPToDateTime to ViewTZ in a report header: If you are already displaying the Employee Filter Name, then see the procedure described in "Create Your Report" (page 16). Now go to QueryExplorer > query2 from step 7 in "Create Your Report" (page 16) and drag in model object BPFromTimeTZ.BPFromTime and BPToTimeTZ.BPToTime to query2>TabularModel>Data Items. Then drag these two items from Query Items to query2>Facts. These Query Subjects were created in the model explicitly for this purpose. Since the report header is already linked to query2 (from step 7 in "Create Your Report" (page 16)), all you have to do now is drag the Query Items into the report header. Note: The model must allow cross joins. If your report does not have an Employee Filter Name in the header, then you will have to create query2 and drag in the two elds as above and link query2 to the report header. See step 7 in "Create Your Report" (page 16) for details.

Currency
We will add a global currency symbol which will be displayed for all reports. This symbol will be set as a session parameter.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

22 Appendix Usage Notes

Time Zone
TIMEZONE is a reserved word and cannot be used as a database column name inside ReportNet. To get around this, create a calculated eld on the table TIMEZONEAM, named TIMEZONEID and return the value of TIMEZONE. For Oracle, rename TIMEZONEAM to TIMEZONEAM_SRC and create the following view:
create or replace view timezoneam as select ID, STARTTIME, ENDTIME, BIAS, TIMEZONE, TIMEZONE TIMEZONEID from TIMEZONEAM_SRC

Time Zone
How to convert row set date time elds to view time zone. In the model theres a query subject called TIMEZONEAM. Create a shortcut to this query subject for your conversion (name it what you like). Now create a relationship between the query subject that has the date time eld to be converted and the shortcut you just created. The relationship will look like this:
[BPMAINDB].[<name of query subject that has the field to be converted>].[>name of field to be converted>] >= [BPMAINDB].[converted>].[>name of field to be converted>] >= [BPMAINDB].[shortcut>].[STARTTIME] AND [BPMAINDB]. [<name of query subject that has the field to be converted>].[<name of field to be converted>]<[BPMAINDB].[<name of shortcut>].[ENDTIME].

Then create a calculation on the derived query subject and add <shortcut>.BiasInterval to the eld to be converted.

Remove a Section
Step 1 2 3 Action Delete the section header. From the View menu, click Page Structure . Expand Page Body until you see the data container to which you added the section.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Saving a report

23

4 5 6 7 8 9 10 11

The data container is nested in the List object that is created when you add a section. Drag the data container to Page Body. The data container appears as a node of Page Body. Delete the List object. In the Query Explorer, the query that is created when you add a section is also deleted. From the View menu, click Page Design . In the Insertable Objects pane, click the Query Items tab. Drag the query item that was used as a section header back into the data container. End

Localization Summary
Type of Text Text Labels (for example, in report header) Where to Localize Report Studio How to Localize Use conditional text Add to lookup table

Prompt Names (before a report Report Framework is run) Prompt Values (for example, in Report Studio report header) Column Names Column Values Framework Manager Framework Manager

Properties pane for the selected query item Parameter maps

Saving a report
After saving a report while using one data source, if you then switch to another data source and try to run your report, you may get an error. If this happens, try republishing the package using the appropriate model for that data source.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

24 Appendix Usage Notes

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

25

Appendix Frequently Asked Questions


How do I get Cognos Connection to run?
You may have an expired JCE jar le \cognos\crn\bin\jre\1.3.1\lib\ext\jce1_2_2.jar. You can get the latest version from Cognos. You should also make sure you have the latest Cognos hot patches.

How do I get Cognos Connection to open an XML report stored in the le system?
By default, the reports you create are stored on the ReportNet server. You can, however, open and save reports on your computer. Step 1 2 3 4 Action Obtain the LFA.dll from your ReportNet administrator. The DLL is located in the bin directory where ReportNet is installed. Open a command prompt window. Register the LFA.dll le by typing regsvr32 LFA.dll or C:\Program Files\cognos\crn\bin>regsvr32 LFA. In Internet Explorer, set the ReportNet server as a trusted site: a. From the Tools menu, click Internet Options. b. In the Security tab, click Trusted sites. c. Click the Sites button. d. In the Add this Web site to the zone box, type http://CRN servername and click Add Note: You may need to clear the Require server verication (https:) for all sites in this zone check box. e. Click OK twice.
Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

26 Appendix Frequently Asked Questions

5 6

In Cognos Report Studio, from the Tools menu, click Options. Select the Allow local le access check box and click OK. The menu items (Local) Open and (Local) Save As appear in the File menu. End

In Framework Manager how do I access a prompt value for use in a calculation in the query subject denition?
You can use the same prompt macro that you used in the stored procedure denition, for example: # prompt(BPFromDateTime, DATE)#. You can also use the regular prompt value syntax. For example: ?BPFromDateTime? In Report Studio, the prompt is accessed through: ParamDisplayValue("BPFromDateTime")

Is there a way to hide a column?


Yes. In Report Studio, select the column, and in the Properties pane, set the Box Type to None. The column will be hidden, but the data should still be accessible. If you are sorting by this column, sorting will still work. To show/hide based on a condition, refer the Cognos ReportNet 1.1 Authoring and Modeling FastTrack Part 1 Student Guide.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

27

Appendix Known Issues


Negative intervals dont have the correct values. For example: (0 00:00:00.000 - 0 01:45:00.000) is calculated as: -1 22:15:00.000 But it should be: -0 01:45:00.000 It doesnt appear to be possible at the moment to get the From: parameter to display the correct value to users in the report header when they specify a value for the LastNDays parameter. This is a known issue that is being worked on with Cognos. If your SQLServer stored procedure takes a string prompt, and you are testing your Stored Proceduure Query Subject in Framework Manager, sometimes, depending on the value you enter, you may get an error, even though you know the stored procedure works ne with the parameter you passed. For example, this issue was encountered when testing the BP_RPT_TO_ALLOC query subject. The prompts for the arguments were set up, one of which was a string prompt dened for the @orgsString parameter as follows: # prompt(ListOrgsInString, string)#. When the Test button was clicked in the Edit Denition Stored Procedure window, the system prompted the tester to enter values for the prompts. The stored procedure should have accepted values for this parameter such as 1, 1,7,13, or ALL. The test worked ne with values such as 1, 1,7,13, but fails when for ALL. The error received was: QE-DEF-0177 An error occurred while performing operation sqlExecute status=-56. UDA-SQL-0115 Inappropriate SQL request. UDA-SQL-0206 The OLEDB driver returned the following value: HRESULT= DB_E_ERRORSINCOMMAND ". In spite of the error returned, the report runs ne from Query Studio and Report Studio.

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

28 Appendix Known Issues

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

29

Appendix Sample Reports


Activity Manager Reports
Name Stored Procedure Query Subject XML Report Crystal Report Activity Cost (Unburdened) BP_RPT_ACTIVITY_COST ACTIVITY_COST ACTIVITYCOST.XML AM11_Activity_Cost_Unburdened.rpt

Adherence Reports
Name Stored Procedure Query Subject XML Report Crystal Report Name Stored Procedure Query Subject XML Report Crystal Report Adherence Exceptions BP_RPT_EXCEPTIONS ADHERENCE_EXCEPTIONS Adherence Exceptions.xml AD4_Exceptions.rpt Adherence Numbers By Interval BP_INTERVALSTATS AdherenceNumbersByInterval Adherence Numbers By Interval.xml AD2_Adherence_Numbers_by_Interval.rpt

Stafng Reports
Name Stored Procedure Query Subject Daily Planned Time Assesment by Employee BP_RPT_DAILYPLANNEDTIMEASSEMP DailyPlannedTimeAssessmentByEmployee

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

30 Appendix Sample Reports

XML Report Crystal Report Name Stored Procedure Query Subject XML Report Crystal Report

DailyPlannedTimeAssessmentByEmployee.xml DailyPlannedTimeAssessmentByEmp.rpt Employee Schedule by Date BP_RPT_EMPLOYEESCHEDULE_WORK EMPLOYEE_SCHEDULE EmployeeScheduleByDate.xml Employee_Schedule_by_Date.rpt

Time Off Reports


Name Stored Procedure Query Subject XML Report Crystal Report Time Off Allocations by Time BP_RPT_TO_ALLOC TimeOffAllocationsByTime TimeOffAllocationsByTime.xml TO120_Time_Off_Allocations.rpt

Nortel Workforce Management Creating Reports in Cognos NN44480-127 01.01 Standard 7.0 16 October 2009
Copyright 2009, Nortel Networks
.

Nortel Workforce Management

Creating Reports in Cognos


Copyright 2009, Nortel Networks All Rights Reserved. Publication: NN44480-127 Document status: Standard Document version: 01.01 Document date: 16 October 2009 While the information in this document is believed to be accurate and reliable, except as otherwise expressly agreed to in writing NORTEL PROVIDES THIS DOCUMENT "AS IS" WITHOUT WARRANTY OR CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED. The information and/or products described in this document are subject to change without notice. Nortel, Nortel Networks, the Nortel logo, and the Globemark are trademarks of Nortel Networks. All other trademarks are the property of their respective owners. To provide feedback or report a problem with this document, go to www.nortel.com/documentfeedback..

Anda mungkin juga menyukai