Hi,
I understand you are using listener to trigger ‘PreGet’ Callback function.
In the code, setting the ‘Data’ property of ‘obj_a’ does not trigger the ‘PreGet’ listener as you are assigning value to it.
Assigning default value only calls the ‘get.Data’ function. Assigning different value than default value of 5 will result in calling ‘PreSet’ and ‘PostSet’ triggers instead of ‘PreGet’ as it is mentioned in the example shared that "If you query the property value, the PreGet and PostGet events are triggered."
Here is the link to the statement
Assigning value to Property will not trigger the ‘PreGet’ Callback but querying will trigger it. This is why ‘x=obj_a.Data’ triggers ‘PreGet’ Callback.
Hope this helps!
Thanks