Situation
You have a link stored in a text field. You want to provide a button for the user that opens the link in a web browser.
- Create a Web Report
Right click on Reports and select New > Web Report. As an Url just set {link}
where link is the parameter name. So the whole URL will be passed as a parameter. If you want to pass just a part of the URL, prepend/append some text to the parameter.
- Create a UI Action
Right click on the entity which contains the field and select New > Report Action
- Set a ButtonIcon so the button has a picture next to it
- Caption will set the text of the button
- Set Mode to
ActiveRecord
so it opens the link in the currently selected record - Set Placement to
PanelHeader
so the link appears on the panel, not on the top of the screen toolbar - Select your newly created Web Report link as the Report
After saving the UI Action right click on it and select New > Parameter Mapping
- Set the Name of the parameter to link. This is the name we specified in the Web Report.
- Set the Field to the name of the field from the entity, which contains the link.