New-UDTable -ExportOption

Product: PowerShell Universal
Version: 1.5.14

Heyas, just wondering if anyone knows if it’s possible to hide the “all” export options from a table.

The reason being with my server-side processed table results, it doesn’t matter whether I choose “Export all…” or “Export Current View…” - I’ll only ever get an export that contains the “Current View”.

Preferably I’d like to be able to customise the Export list to only show:

  • Export Current View as CSV
  • Export Current View as XLSX

Then the user can adjust the page size to ‘All’ if they want to export all rows.

The following is set with -ExportOption "csv,xlsx"

Imgur

Cheers!
Steve.

In 1.5.15, we added -OnExport to support “server-side” exports.

That said, I’ll log a feature request for this since I think you should be able to hide the all option.

Docs: Table - PowerShell Universal

1 Like

Ack. I did just remember this though: Server-Side Exporting. All but CSV doesn't download files · Issue #117 · ironmansoftware/issues · GitHub

rtfm haha

ah I see - cool I’ll wait for the .16 release and look at this again