Working with ToolTips


All report objects can have rollover text or ToolTips available when the report is viewed. For example, if you would like to use descriptive text to explain why a certain formula was created, you could do this with a ToolTip.

In the example created in Chapter 6, you now want to inform the end user about a formula. The text should appear whenever a user mouses over the 'Days Until Shipped' fields on the report. The following steps create a ToolTip:

1.

Open Chap6RealWorld.rpt, or the report created earlier in Chapter 6. Select File, Open and browse to find Chap6RealWorld.rpt and open it.

2.

Format the e-mail field at the far right. Right-click on it and choose Format Field.

3.

Add the ToolTip text. In the Format Editor dialog, select the Common tab. To the right of the ToolTip Text box, click on the formula editor button (see Figure 9.2), and enter the following formula, which makes a custom message for each e-mail address:

"Click here to compose an e-mail to " + {Customer.Contact First Name} + " " + {Customer.Contact Last Name} + "."


Figure 9.2. On the Common tab, click the ToolTip text formula button.


4.

Test the ToolTip text. Click OK to finish the formatting. In Preview, scroll the mouse over the e-mail field and see that the rollover text now appears as a custom message, which is different when viewed by each e-mail recipient. Before proceeding, save the report as Chap9_1.rpt by choosing File, Save As.




Crystal Reports XI(c) Official Guide
Crystal Reports XI Official Guide
ISBN: 0672329174
EAN: 2147483647
Year: N/A
Pages: 365

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net