Dynamic links to external website (Google Map example)
In this recipe, we will introduce you to the 'Hyperlink' component.
A report shows retailers information by products. It shows various fields like Retailer name, Contact information, City, and Postal zone. Business wants to have a link to Google maps that will show retailer's place on the map using the Postal zone information.
As the addresses might change in the backend, the technique needs to be dynamic to pick up the latest postal zone.
Getting ready
Create a simple list report that shows Retailers information by Product lines.
How to do it...
From the 'Insertable Objects' toolbox, drag a hyperlink object onto the report as a new column.
Change its Text property to Map. Set the URL Source Type to Report Expression and define the report expression as follows:
'http://maps.google.com/maps?q=' + [Query1].[City]
Run the report to test it.
As you can see, there is a link for each retailer record. If you Shift+click on the link, it will open the...