New-UDTable Main Post

I open this thread so we can track all the issues related to the new table that we introduced in version 3.

I start with the know issues

Table crash when -Data is empty.

we know and we are working on fixing this bug.

when we build this table we only give the option that data can be empty if you are using server-side, that’s meant using parameter -LoadData and Out-UDTableData, we didn’t think of empty data when the data is static.

PageSize and PageSizeOptions

those are fixed and the fix will be in the up coming release.

Row selection

in order to use row selection, you need to use the parameter -OnRowSelection
inside the row selection script block, you have access to $EventData, it should hold all the info about the selected row.
this script block only runs when you select a row NOT deselect the row.

if you want to get all the selected rows from the table you need to use Get-UDElement -Id in the return object you will have a property named SelectedRows, that holds all the selected rows as objects.

You don’t see the table id in the HTML code

this is a bug and was fixed, the fix will be in the upcoming release

people using this id to style the table or to get access to nested table nodes for styling.

Export data

the export option in the new table have 2 properties that build the all export stuff

on the New-UDTable you have a switch parameter named -ShowExport or alias -Export this will control if the table display an export button or not

the second part is on the column, New-UDTableColumn has a property named -IncludeInExport or alias -Export this control when you export the data if that column show is included in the export.

if you only specified -Export on the New-UDTable and didn’t use -IncludeInExport on any column you will get an empty file with no data. so please use -IncludeInExport for the columns that you want to.

Search data

the search option in the new table has 2 parts

on the New-UDTable you have a switch parameter named -ShowSearch or alias -Search this will control if the table displays the search input control button or not

the second part is on the column, New-UDTableColumn has a property named -IncludeInSearch or alias -Search this control if this column will be searchable

if you only specified -Seach on the New-UDTable and didn’t use -IncludeInSearch on any column you won’t see any results when searching.

Notes

We are working on updating and adding new examples related to the new-udtable in our docs

if you have any issue with the New Table please post the issue here

Search does not seem to be working for me, having the same issue as described here:

Also a documentation issue, I was having trouble with the -Padding parameter, trying to use Dense padding. Turns out the correct parameter is -Dense. This is reflected in some of the examples, but the parameter documentation here seems wrong:
https://docs.ironmansoftware.com/dashboard/components/data-display/table

you need to use -IncludeInSearch on the columns that you want to be included in the search, and -ShowSearch to display the search input on the top, by default no columns are included in the search

That fixed it, thanks!

1 Like

Hi, thanks for this information.
I am just wondering about the default sort that seems to be enabled on the first column.
I have built tables that “sort” the information in a special order, not by descending or ascending.
Is there any plan to change this back, or an option/switch to remove it?

Thanks!

I think we can change the behavior of this, so by default, no sorting will happen

Hey @AlonGvili !

Thanks for that new table, it’s pretty cool !

I was wondering if you may be able to configure the table in order to be able to click on the row and have a -OnRowClick for instance in order to act only on one record instead of using the row selection check box ? it would be neat if that’s possible ! many thanks in advance !

I think it can be done, i will check your suggestion