Friday, 8 February 2019

GET FORM FROM xFormRun sender IN D365

GET FORM FROM xFormRun sender IN D365  

GET FORM  form control from xFormRun
[FormEventHandler(formStr(FormName), FormEventType::Initialized)]
public static void SomeForm_OnInitialized(xFormRun sender, FormEventArgs e)
{
    // set the control to invisible as an example
    sender.design().controlName(formControlStr(FormName, MyControl)).visible(false);
}

tHANKS

No comments:

Post a Comment

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++  Introduction In our previous posts, we explored what Copilot can do o...