Detect the change of an attribute of an NPE.

0
I would like to know if there is a way to detect the change of an attribute of an NPE.  For example: if I have an NPE with an attribute named ‘Status’.  There may be many places in the app where this attribute might be changed.  Is there some way, during the session, when I can discover if the attribute has been changed?  Perhaps looking at the Object Cache or something?      
asked
3 answers
0

The On Any Change widget does this, not sure if it supports NPEs though for https://appstore.home.mendix.com/link/app/108281/Mansystems/On-Any-Change

answered
0

If you have attached that NPE to the user session you can then always check the latest status of that NPE in microflows. Do note that NPE only exist client side. So only client side activities could change the status.

Regards,

Ronald

 

answered
0

Maybe there is a neat trick with the session, like Ronald suggests, but otherwise I would wrap any change to the NPE in a nanoflow that not only makes the chance but also stores it somewhere in an associated entity named ‘<NPE>_History’.

answered