top of page

Tooltip in RS

ABSTRACT (by Federico Levis ) Category: RS

RS Tip: Add Tooltip in RS

Tooltips are a standard Cognos Feature only for few objects, like Charts. To add tooltip to other objects (ValuePrompts, List Cells....) there are following options:

1. Static Tooltip

Example:

Steps:

Insert a span HTML Item in Front of the Cognos Object and another to close the span after it:

First HTML Item (<span for Static Tip>):

  • SourceType = Text

  • HTML = <span title="Insert part of the Film you are looking for. For example 'AMERICAN' to filter all the Film containing 'AMERICAN'">

Second HTML Item:

  • SourceType = Text

  • HTML = </span>

2. Dynamic Tooltip accessing Report Data

As Before insert the 2 HTML Item before and after the involved object, but this time to acces to Report Data set SourceType = Report Expression

Follow an example, to show for each List cell of Film Column additional information related to the same row records ([QryTable].[Description] and [QryTable].[Special Features]):

Each Film Cell show its particular Tootip, related to the selected row

Changing Film we will see a different tooltip

Steps:

Insert a span HTML Item in Front of the List Column Text Item and another to close the span after it:

First HTML Item (<span for Dynamic Tip>):

  • SourceType = Report Expression

  • Report Expression = '<span title="' + [QryTable].[Description] + ' - SPECIAL FEATURES: ' + [QryTable].[Special Features] + '">'

3. Advanced Tooltip with CEL Features

If you need advanced Tooltips (HTML Tip, AutoUpdated Txt Tip,...) they are supported by CEL: see CEL Tooltip Post

bottom of page