How to Creat Dynamic Hyperlinks in Text Controls
Creating dynamic hyperlinks in text controls is a common requirement in many applications. This can be achieved by using label parameters directly in the Text Control. However, it’s important to note that these cannot be used as a href value directly. The label parameters values are updated based on a common class which is appended in the HTML page.
Here are the steps to load hyperlinks in a text widget with a dynamic parameter:
Step 1: Create an Expression Column
First, create an expression column with the required HTML tags. For example, you can name it as AnchorTag
.
The expression could look something like this:
CONCAT('<a href="https://www.google.com/search?q=', [ShipCountry] ,'">',[ShipCountry] ,'</a>')
Step 2: Use the Expression Column as Label Parameters
Next, use this expression column as label parameters in the text widget.
Step 3: Bind the Dynamic Value
Bind the dynamic value that you want to change dynamically in some widget. For instance, you can use a combobox and bind the ShipCountry
column.
Step 4: Update Hyperlinks in Text Widget
Now, changing values in the Combobox will update its respective hyperlinks in the Text widget.
By following these steps, you can create dynamic hyperlinks in text controls.
For more information, please refer to the official documentation: Configuring Label Parameters