Open a hyperlink when clicking on a field
Paolo Manfrin
I was recentry ask to create a customize rule to open a hyperlink when clicking on a field.
Here the code snippet and attached the customize rule that open the hyperlink filled in the customer reference number field of a sales order.
try
{
string hyperlink = TextEdit.GetFromUID(pVal.Form, pVal.Item.UniqueID).Value;
if (!string.IsNullOrEmpty(hyperlink))
System.Diagnostics.Process.Start(hyperlink);
}
catch (Exception ex)
{
StatusBar.WriteError(ex.Message);
}
return true;
[attachment=490:Screenshot.png]
Happy coding with coresuite!
Comments
Please sign in to leave a comment.