Hey guys drawing a blank on this one, maybe someone can shd some light, I have a custom object thats being output to a UDTable (computernames are then converted to UDlinks that show a modal), I want to be able to give the user the option to refresh the services table on demand, so my thinking was a button, the button fires but never updates the session variable??
I think you are missing 'UDEndpoint ’ in your OnClick Event.
Here is my button:
New-UDButton -Text "Sync-Data from ALL SITES" -BackgroundColor orange -FontColor white -OnClick (New-UDEndpoint -Endpoint {
Show-UDToast -Message "Reloading all tables this Will take some time" -Duration 200000
Sync-Data_tables -data_object $data_object
Show-UDToast -Message "Reload the Page now" -Duration 240000
Thanks @maylife, I tried to move the endpoint and place it before the modal, like the below but same deal, the table inside the modal does not update, I thought this was going to be straight forward but im running in circles here… lolol
@maylife, apparently it seems like a bug with UDtable function its expecting ‘-tbody’ when performing a sync or update, I’ve confirmed this one with a different table, the code in the button still fails to fire and I’m not sure if this is expected behavior, since I even wrapped it up in a separate endpoint.