The UDTypography seems to update fine with the needed values as the selection is changed, but the UDTable just never updates past the original load of the data. Tried the Dynamic and the Table ID directly without success.
I tried updating the code but unfortunately still same behavior. The selection works initially to load the UDTable, but upon changing to a different selection, the UDTable will not update to reflect the new content. The New-UDTypography will however.
Okay so I think I’ve had similar issues like this, try changing -content to -endpoint on your new-uddynamic and let me know if that makes a difference?
Also you’re refreshing both dyVpg & vpg_table, but why not just dyVpg only since vpg_table is inside that it will be re-rendered anyway, probably no need for both and may also be introducing other complications.
My answer may not help actually here, I could have sworn I did this the other day but maybe it was a different component (possibly New-UDElement) and not New-UDDynamic, I’m just getting ‘endpoint’ is not a valid parameter now.
But I would say, I do think something might be broken possibly either in my setup or in the latest version with the dynamic content, I’ve had quite a few issues, and I’m just currently trying out this code from the docs for auto refreshing charts, and it just does not refresh or update at all, it loads once and thats it!
New-UDDynamic -content {
$Data = 1..10 | % {
[PSCustomObject]@{ Name = $_; value = get-random }
}
New-UDChartJS -Type 'bar' -Data $Data -DataProperty Value -Id 'test' -LabelProperty Name -BackgroundColor Blue
} -AutoRefresh -AutoRefreshInterval 1
EDIT:
I’m going to make sure its nothing in my environment (since im running on a NAS through a reverse proxy) and run a clean insteall of the MSI installer locally on my desktop where I’ve had this working before. Back in a mo
Yeah so I just did a clean install of 4.0.12 on my local pc using the MSI installer, I think this is a bug, the new ud dynamic refresh example in the above snippet just doesnt work at all. I’ll roll back to an earlier version and try to figure at what point it starts working again.
Edit:
Just tried on 4.0.2 - it’s the same
Edit 2:
Okay, rolled back to 3.9.17 and it’s working. urgh.
Unless something fundamental has changed and the documentation is outdated and I’m doing somehting wrong I think it’s a bug. I’ll get it logged in github.
Edit 3: Op, I never actually asked @rrspyder - what version are you running?
Unfortunately, the problem still exists. Just tested with version 4.2.7. As soon as an ID is added to the table within a dynamic region, the content is no longer updated. Is there a solution for this?
I ran into this recently, remove the -ID from your table so that PSU will auto-generate a random one. I don’t know which version this behavior changed in because I don’t remember it being the case before.