//in d365fno
[Control("Button")]
class Download
{
public void clicked()
{
super();
new Browser().navigate(LoaneeDocumentsTable.PassportFileURL);
}
}
{
public void clicked()
{
FileUploadTemporaryStorageResult result = File::GetFileFromUser() as FileUploadTemporaryStorageResult;
if (result && result.getUploadStatus())
{
LoaneeDocumentsTable.PassportFileURL = result.getDownloadUrl();
//store url into table field
info( LoaneeDocumentsTable.PassportFileURL);
}
}
}
i am getting this error on web browser in local VM. I want to download the file in system.