x++ code to add hyperlink to a field in D365FO
Here is a way to provide hyperlink for field. 1.Create an Extension class to the form as below. [ExtensionOf(formStr(TestHistory))] public final class TestHistoryForm_Extension { } 2.Copy onPostRun form eventhandler and write code as below. [FormEventHandler(formStr(TestHistory), FormEventType::PostRun)] public static void TestHistory_OnPostRun(xFormRun sender, FormEventArgs e) { FormStringControl formCtrl = sender.design().controlName(formControlStr(TestHistory,TestHistory_Voucher)); formCtrl .registerOverrideMethod(methodStr(FormStringControl, jumpRef), methodStr(TestHistoryForm_Extension, JumpRefId), sender); } 3.write definition for JumpRefId method public void jumpRefId(FormControl _formControl) { MenuFunction menuFunction; ...
This article is very much helpful and i hope this will be an useful information for the needed one.Keep on updating these kinds of informative things.. Thank you for sharing any good knowledge and thanks for fantastic efforts.
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore