Hi there, running the latest build (1.5.8) of UD. When using a New-UDTable, the -pagesize parameter doesn’t seem to be working. All records are displayed regardless of the number set. Weirdly, the navigator down the bottom shows the correct page size. In this example, pagesize is set to 10, however all 67 records are displayed on the page. Using the right and left arrows does nothing.
No problems @mmcdougall I still need to get on and use PU have you tried invoking the variable on the -TotalCount parameter something like:- $($Data).Count
I know I had to do this sort of thing to make sure some stuff reads properly if you get me. Probably a typo but you mention $data then you are calling $Data in the parameter set…as mentioned probab a copy paste typo thing but also look into that
Yep @psDevUk definitely tried with and without, the count is returning the correct integer. Spent a while thinking that was the cause.
When this happened in the ‘traditional’ version of Universal Dashboard, it was because an element of the dashboard hadn’t finished loading, and any dynamic elements like buttons in columns would refuse to respond. On this occasion however the dashboard loads and responds exactly as expected however doesn’t conform to the pagesize set, which is causing somewhat of a UX issue, especially when you have 500+ lines.
Ok so if the query takes some time to process I tend to use the Timeout parameter on my SQL query to make sure it has plenty of time to run…also just out of curiosity have you tried putting the data into a $Cache variable name and load the data from cache variable instead of on-the-fly just thinking of other ways…hope this helps…?
Also not seeing you specifying the columns like in the examples on Build Server-Side tables with PowerShell Universal Dashboard
and not seeing the -Sort parameter being used…this may or maynot solve the issue?
I haven’t looked at $Cache but as other tables in my dashboard have the same issue even with minimal amounts of data to load, I don’t think this is going to be the culprit. Do you know of any examples to use this? The table needs to load on demand as the data changes minute to minute, not sure if that approach will still work?
Have also tried -sort and basically every other switch available to no avail.