Hi, i am trying to build a dashboard with hyperlink so that our users can access directly to the attached file. I had tried two methods and both work well in Epicor. However, when come to Web Access, both method failed.
Below is the customization code for my first method.
using Infragistics.Win; using Infragistics.Win.UltraWinGrid;public class Script
{
Ice.Lib.Framework.EpiUltraGrid gridlist;
public void InitializeCustomCode()
{
this.gridlist = (Ice.Lib.Framework.EpiUltraGrid)csm.GetNativeControlReference("1e5a21f9-c4d0-414b-87de-cc43209a5b27");
}
public void DestroyCustomCode()
{
this.gridlist = null;
}
private void MainController_Load(object sender, EventArgs args)
{
gridlist.DisplayLayout.Bands[0].Columns["XFileRef_XFileName"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.URL;
gridlist.DisplayLayout.Bands[0].Columns["XFileRef_XFileName"].CellAppearance.FontData.Underline = Infragistics.Win.DefaultableBoolean.True;
}
}
Another method i tried was button click event and yet i get the error message from EWA. As attached below are the code and error message.
using System.Diagnostics;public class Script
{
Ice.Lib.Framework.EpiTextBox url;
public void InitializeCustomCode()
{
this.url = (Ice.Lib.Framework.EpiTextBox)csm.GetNativeControlReference("e71de5cf-7dbe-4c98-898f-7fdfe3da7b7f");
this.epiButtonC1.Click += new System.EventHandler(this.epiButtonC1_Click);
}
public void DestroyCustomCode()
{
this.url = null;
this.epiButtonC1.Click -= new System.EventHandler(this.epiButtonC1_Click);
}
private void epiButtonC1_Click(object sender, System.EventArgs args)
{
System.Diagnostics.Process.Start(url.Text.ToString());
}
}
Do anyone here know how to fix this out?