Automatic Popup trigger

Using Perspective, I need to trigger a popup.

Explanation:
I have a set of tags, including:

  • startTime

  • endTime

  • stdTime (e.g., Hr – 5, 6, …) Its not a Tag

Based on stdHR, I need to trigger the popup:

  • Starting 1 hour before the configured stdTime.

  • Repeated every 15 minutes until the stdTime.

  • It will close after 5 sec

This doesn't sound like a good user interface design. What if nobody is looking when the popup appears.

What is the real problem you are trying to solve? (Don't describe your solution. Describe the problem. What is to be communicated to the user? How important is it that it is seen? What kind of application are you creating?)

2 Likes

Thanks for the feedback! I understand your point about popups not always being the best user experience, especially if operators might miss them.

In my case, the popup is not meant to be a critical safety alarm, but more of a reminder/notification to operators on the shop floor. The requirement from our process team is that:

  • The operator should be reminded starting 1 hour before the configured end time (stdTime).

  • The reminder should appear every 15 minutes until the end time.

  • The popup will stay open until the operator closes it manually (they requested this, so it won’t auto-close).

So, it’s more like a timed “heads-up” message rather than a critical alarm. I agree that for safety or urgent conditions I would definitely use the alarm system instead.

You should be able to achieve this using gateway event scripts. The timer gateway event allows you to configure scripts to be run based on the gateway’s system time, from which could use a message handler to target any perspective session for the popup.

1 Like

You should not use a popup for this, IMNSHO. It should be a top dock banner or docked sidebar so that it doesn't interfere with the operator's focus.

2 Likes