I am studying D365FO. I am practicing upload files with FileUpload control. I have followed tutorials from the web. Here is the link
https://community.dynamics.com/365/financeandoperations/b/dynamics365foaxhub/posts/import-upload-data-in-d365-ax7-using-excel-file
I tried to display the test message after uploading completed but was unable to show it. Here is the sample code, which has no error but the result is not as required.
Here is the code. OK button click is working fine. But upload the complete event is not working, I need help to fix the problem
public class MyFileUploadEventHandler extends FormRun
{
FileUploadTemporaryStorageResult fileUploadResult;
[Form("Custom")]
class FileUploadData
{
public void uploadCompleted(FormControl sender, FormControlEventArgs e)
{
Info("File Uploaded");
}
}
[FormControlEventHandler(formControlStr (FrmUploadData,OKCommandButton), FormControlEventType::Clicked)]
public static void OKCommandButton_OnClicked(FormControl sender, FormControlEventArgs e)
{
Info("Ok Clicked");
}
}