Unable to enable sysevent
Forms 14.1.2 JDK 21
When defining a system event (p.e. type System notification) with Auto subscribe YES it is possible to unsubscribe it with set_event_object_property('…..',EVENT_ENABLED,PROPERTY_FALSE);
But enabling it isn't possible.
You can reproduce it by making a simple form:
With the following code
:info := 'Event SYSNOTIFY';
:info := :info||chr(10)||'Current status:'||get_event_object_property('SYSNOTIFY',EVENT_ENABLED);
set_event_object_property('SYSNOTIFY',EVENT_ENABLED,PROPERTY_FALSE);
:info := :info||chr(10)||'Status after set to False:'||get_event_object_property('SYSNOTIFY',EVENT_ENABLED);
set_event_object_property('SYSNOTIFY',EVENT_ENABLED,PROPERTY_TRUE);