Hello,
i am trying to migrate most of my UDTables to UDDataGrid, at the moment i am stuck at the file export.
In 3.6.2 i will get this error (custom export example from the docs Data Grid - PowerShell Universal)
if a use this code
-OnExport {
$Data = $EventData | Select-Object -Expand name
[string]$MimeType = 'text/plain'
[string]$FileName = 'export.csv'
@{
data = $Data
mimeType = $MimeType
fileName = $FileName
}
}
the download starts but will produce this file:
I am a bit lost here.
My goal is that the DataGrid export will work like the server side export from UDTable.
The OnExport component in UDTable also contained the full filter / query and that is very helpful when working with large datasets and downloads.
Thanks for your help
Product: PowerShell Universal
Version: 3.6.2