I recently upgraded from UD2.1.3 to 2.12.2. However, the UDtableColumn $eventData passed to an OnClick event is NULL in the latest version - no issue with the previous version. My code is something like below - the SQL_ID is not passed. What changed?
I’m unaware of any issues with this version and table rendering. Can you please verify the $EventData is null by trying:
Show-UDToast ($EventData | ConvertTo-Json)
I just want to make sure that it’s not a null property. I just went through the commit history and am not seeing any changes to this particular functionality so I’m not quite sure yet what has changed.
I have tested this before posting - I have 2 UDtoast, one after column render and one inside button onClick event, the former shows eventData value while the latter is null regardless how I set the variables.
FYI, this is a new server we are migrating to, and I dont see any other issue except this.
Looking at the test script that he gave you, I think it was going to fail, $EventData isn’t defined in the script he asked you to try. Change it to $Data and see if it shows then?
I see what the problem is. We need to merge a fix back into 2.x. I’ll get that done today. The problem is actually with New-UDIconButton. If you use New-UDButton, i can work around it for now.