Refreshing report data and formatting
There are two ways in which you can update your report content:
- Refresh all the reports in a document
Retrieve the latest changes for all the imported reports in the Microsoft Office document by using the Refresh all Data button on the IBM Cognos toolbar.
- Refresh a specific report, report element, widget, or workspace
Retrieve the latest changes for a report, report element, or widget by using the Refresh Data command from the pop-up menu, available from the IBM Cognos pane, on the Manage Data tab.
In Microsoft Excel, all worksheets in the workbook are updated with the most recent data. These updates include any imported reports, regardless of the application used. In Microsoft Word, IBM Cognos content on all pages of a document are updated. In Microsoft PowerPoint, IBM Cognos content on all slides of a presentation are updated.
- refresh only the source data
Retrieve the latest changes to the source data for all reports in the document or a report element. Any formatting changes applied from the Microsoft Office application remain unchanged.
You can also automate this task by using the RefreshAllData method. For more information, see RefreshAllData.
- refresh all data and formatting
Retrieve the latest changes to the source data and formatting characteristics, such as cell color and number formatting, as designed by the report author. Any customized formatting in the Microsoft Office document is changed or overwritten by the current report formatting.
You can also automate this task by using the RefreshAllDataAndFormat method. For more information, see RefreshAllDataAndFormat.
Formatting status after source data is updated | Format type |
---|---|
Preserved |
|
Updated |
|
Refresh limitations and considerations
Following are some considerations or limitations that you might encounter when performing the refresh process:
- Copying Microsoft Excel worksheets
While you can copy or move imported elements between worksheets by using Windows Copy and Paste commands, you cannot properly refresh the source data on the copied content. Similarly, you cannot refresh content on a new worksheet that was copied from an existing worksheet. The report elements on the copied worksheet are no longer linked to the source data. You must reimport the report or report element on the new worksheet to properly refresh the source data.
- Increasing and decreasing number of rows in lists and crosstabs
When an imported list or crosstab is refreshed in Microsoft Excel, the number of rows can increase or decrease as a result of new source data or changes to prompt values. If new source data is returned, the new range of cells is inserted after the last row of the current list or crosstab. The new range of cells inherits the formatting style of the last row in the list or crosstab.
If new prompt values or updated source data result in a reduced number of rows, the spare cells are deleted from the list or crosstab in the Excel worksheet.