Tag change open a popup in Perspective?

Ignition Version : 8.1.24 Perspective

I add a project Library.

# messageBox def messageBox(title,message,sessionId=None,pageId=None): system.perspective.openPopup("messageBox",'Popup/messageBox', title=title,params = {'message':message}, showCloseIcon = True, resizable = True,modal=True,sessionId=sessionId, pageId=pageId)

I have a tag , when it change from False to True, show a messageBox in Perspectvie.

I try on btn to show messgebox , It's ok.

I try on Gateway - Tag change script, it can't show.

I try on Tag - Value change script , it can't show.

How to show in Perspective?

As @pturmel said in this thread

The most convenient place to do this is in a shared docked view for the entire project. The change event on one of its custom properties, bound to the tag, will have the context needed to unconditionally open a popup.