Friday, 8 February 2019

Get current record in form control IN D365

Get current record in form control IN D365  

Get current record in form control event
[FormControlEventHandler(formControlStr(FormName, SomeButton), FormControlEventType::Clicked)]
public static void SomeButton_OnClicked(FormControl sender, FormControlEventArgs e)
{
       SomeTable callerRec = sender.formRun().dataSource(1).cursor();
}

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...