Hi guys, Today we how to Access unbound form control on Event Handlers In D365Fo.
[FormControlEventHandler(formControlStr(SalesTable, Test), FormControlEventType::Clicked)]
public static void NewBooking_OnClicked(FormControl sender, FormControlEventArgs e)
{
NumberSeq numberSeq;
FormRun form = sender.formRun();//Getting form
FormStringControl name= form.design().controlName(formControlStr(SalesTable, Name));//Getting Form control
numberSeq = NumberSeq::newGetNum(NumberSeqReference::findReference(extendedTypeNum(TestId)));
name.text(numberSeq.num());
}
Keep Daxing!!
No comments:
Post a Comment