I am currently getting the following error when trying to run a qaction
The purpose of the qaction is to get a parameter from a remote element and then use that value to set a parameter. It updates on change of an IP parameter and then uses that parameter to look up the remote element. However whenever I add the line with the "GetValue", the qaction fails to execute:
What could be causing this issue? It also fails when I use "GetDisplayValue".
Is it possible the autogenerated code in QAction 63000 was not regenerated and didn’t contain all necessary code from the Code Library you were using in your QActions? Probably DIS rebuilt the QAction 63000 when you did additional changes and this then solved your compilation errors.
It’s possible. I had it set to auto generate though, but maybe there was some bug where it wasn’t able to generate all the necessary code?
Hi Alex
With how the Class Library is working, you need to use int? for the GetStandaloneParameter call. I don't remember anymore if Class Library will throw an exception for this or not.
I’ve tried this with int?, double, and string and none of those fixed it, unfortunately.
An update to this – the qaction was indeed not compiling. But it randomly started compiling once I added a button to manually trigger it. Do note that I didn’t have to manually trigger the qaction for it to work, it just was a coincidence.
So I’m not exactly sure why it wasn’t compiling, but it’s fixed now! I did end up using the int? instead of the int, but that was not the issue.