alex_angusandmack Posted August 2, 2023 Share Posted August 2, 2023 Hi folks, Does anyone know of a way to force update a PIO when a field is changed in an attached record? Quote Link to comment
Pat Stanford Posted August 2, 2023 Share Posted August 2, 2023 Since the script that is making the change has to know the handle to the object, the best way would be for that script to initiate the update. vs.ResetObject(Handle) Quote Link to comment
alex_angusandmack Posted September 13, 2023 Author Share Posted September 13, 2023 Hi Pat, Thank you for the tip and apologies for the late reply. I see how that would work in some scenarios but perhaps not the one I'm in: The record is being updated manually not via a script. If you manually change a record field from the OIP this does not seem to force a reset of the parent plug-in-object. This is the functionality I was aiming for: Essentially using record fields as data-entry boxes for a plug-in-object rather than having to add more editable parameters to the object definition. Might be the functionality is just not supported by the API? Quote Link to comment
Pat Stanford Posted September 17, 2023 Share Posted September 17, 2023 Is this a custom PIO? If so you could add something like: ResetObject(GetParent(HandleToMe)); to to code. You would use GetCustomObjectInfo to get HandleToMe. If it is just nested standard PIOs, then the only options would be an external script you would run to force a reset of selected objects or the Tools:Utilities:Reset All Plug-ins command from the menu. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.