Posts

Showing posts with the label Button clicked

On clicked event of form button in D365 X++

Form : SalesQuotationListPage Button : DH_AmendmentButton DataSource : SalesQuotationTable [FormControlEventHandler(formControlStr(SalesQuotationListPage, DH_AmendmentButton), FormControlEventType::Clicked)]     public static void DH_AmendmentButton_OnClicked(FormControl sender, FormControlEventArgs e)     {         FormRun                  fromRunLoc;         FormDataSource      formDataSourceLoc;         SalesQuotationTable salesQuoteTable;         DH_SalesQuote        DHQuote;         fromRunLoc             = sender.formRun();         formDataSourceLoc   = sender.formRun().dataSource("SalesQuotationTable");         salesQuoteTable       = formDataSourceLoc.cursor(); ...