Is it possible to make a URL a clickable link in a dashboard?
We have a third-party SaaS for part forecasting. It generates a unique URL for each part using a combination of a fixed string and an item number we have stored in E10. We can generate the URL for each part using a calculated field in a BAQ. It would be an efficiency gain if our buyers could just click on that URL and launch the website, rather than copy/pasting the value into a browser or through the usual browsing method.
@lizb here a thread on how to do it as a link if the embedded browser has issues. I had to add some tracking links recently since my versions embedded browser had some outdated IE components and a windows update caused issues.
Just as another option, this is some fairly simple code to make a field into a hyperlink:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Ice.BO;
using Ice.UI;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
public class Script
{
EpiUltraGrid grid1;
public void InitializeCustomCode()
{
this.grid1 = (EpiUltraGrid)csm.GetNativeControlReference("***CONTROL_REFERENCE_NUMBER***");
}
public void DestroyCustomCode()
{
this.grid1 = null;
}
private void MainController_Load(object sender, EventArgs args)
{
grid1.DisplayLayout.Bands[0].Columns["COLUMN_NAME"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL;
}
}
Thanks Fernando for this post! Tried this with file attachments and it worked fine. The fileref field from the xfilref could be published and then subscribed by the URL/XSLT view without a problem.