Hello,
When I infer a data source, the Service.cs file excludes parameters from the generated URL for exporting a stored procedure with paramters to Excel / CSV.
For example, here is some generated code:
public async System.Threading.Tasks.Task ExportVerifyRawuploadsToExcel(Guid? RawUploadKey, Query query = null, string fileName = null)
{
navigationManager.NavigateTo(query != null ? query.ToUrl($"export/wv_dev/verifyrawuploads/excel(fileName='{(!string.IsNullOrEmpty(fileName) ? UrlEncoder.Default.Encode(fileName) : "Export")}')") : $"export/wv_dev/verifyrawuploads/excel(fileName='{(!string.IsNullOrEmpty(fileName) ? UrlEncoder.Default.Encode(fileName) : "Export")}')", true);
}
But for it to work I have to edit it as:
public async System.Threading.Tasks.Task ExportVerifyRawuploadsToExcel(Guid? RawUploadKey, Query query = null, string fileName = null)
{
navigationManager.NavigateTo(query != null ? query.ToUrl($"export/wv_dev/verifyrawuploads/excel(RawUploadKey={RawUploadKey}, fileName='{(!string.IsNullOrEmpty(fileName) ? UrlEncoder.Default.Encode(fileName) : "Export")}')") : $"export/wv_dev/verifyrawuploads/excel(RawUploadKey={RawUploadKey}, fileName='{(!string.IsNullOrEmpty(fileName) ? UrlEncoder.Default.Encode(fileName) : "Export")}')", true);
}