OI10 - CHANGED Promoted Event not triggered (OpenInsight 64-bit)
At 10 JAN 2020 04:14:41PM Brad Bishop wrote:
I need to trigger a CHANGED event on all the edit fields and edit tables in my app. To me, this makes sense to set it up as a promoted event rather than explicitly having to set it a CHANGED event on every control. This would also be in line with how it works in the existing 7.2 app. So far, I have not been able to get a CHANGED promoted event to trigger. I have lostfocus, gotfocus, read, write, etc. promoted events that fire correctly so I think I have the basic setup correct.
The promoted event is setup as:
Compile Function APP*CHANGED..OIWIN*(CtrlEntID,CtrlClassID,NewData)
If I add the executed code as a script to the control it runs correctly so I don't think the issue is in the event logic. My hunch is that the system is not recognizing the promoted event on CHANGED. Any suggestions on how to isolate this further ? Did I set this up incorrectly or did I miss something ?
thanks
At 10 JAN 2020 04:52PM Carl Pates wrote:
Brad,
Have you enforced the CHANGE event for EditFields and EditTables? You need to set this flag and then recompile your forms.
You can check this in the Event Configuration Dialog which is supplied as part of the IDE but has been missed off the menu (it's been added to the IDE menu in the upcoming v10.0.8)
To run it manually use TCL or the System Monitor and execute the RTI_IDE_CFG_EVENTS form.
Regards
At 13 JAN 2020 04:34PM Brad Bishop wrote:
That was the missing link. Works as expected no. Thanks for the quick response.