# \[IGN-2121\] Status Message to Disappear after few seconds

**URL:** <https://forum.inductiveautomation.com/t/ign-2121-status-message-to-disappear-after-few-seconds/79029>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 12, 2023, 4:45pm UTC](https://forum.inductiveautomation.com/t/ign-2121-status-message-to-disappear-after-few-seconds/79029 "2023-09-12T16:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [September 12, 2023, 4:45pm UTC](https://forum.inductiveautomation.com/t/ign-2121-status-message-to-disappear-after-few-seconds/79029/1 "2023-09-12T16:45:08Z")

</div>

Hi IA Forum,

How do you implement the above topic?

I have a query button, when click and query was successful, I want to display success message for 10 seconds and then disappear..

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [September 12, 2023, 6:00pm UTC](https://forum.inductiveautomation.com/t/ign-2121-status-message-to-disappear-after-few-seconds/79029/2 "2023-09-12T18:00:08Z")

</div>

```auto
def onActionPerformed(self):
    from time import sleep
    # perform query logic here.
    success = system.db.runPrepUpdate(<args_here>) > 0. # runPrepUpdate returns a count of modified records
    if success:
        # modify the openPopup invocation to include positioning and "sizing" arguments, but beware of 
        # locating the Popup too far to the right
        successful_popup_id = "SomethingUnique"
        system.perspective.openPopup(id=successful_popup_id, view="TargetViewPath")
        sleep(10)
        system.perspective.closePopup(id=successful_popup_id)

```

We also have an open feature request to provide access to our Notification UI via scripting. No ETA as it's still in the incubation phase.
