# Problem with Alarm Status

**URL:** <https://forum.inductiveautomation.com/t/problem-with-alarm-status/76927>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [July 26, 2023, 7:50am UTC](https://forum.inductiveautomation.com/t/problem-with-alarm-status/76927 "2023-07-26T07:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surya\_Chandra\_Mohan](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Surya\_Chandra\_Mohan](https://forum.inductiveautomation.com/u/Surya_Chandra_Mohan)\
**Post date:** [July 26, 2023, 7:50am UTC](https://forum.inductiveautomation.com/t/problem-with-alarm-status/76927/1 "2023-07-26T07:50:00Z")

</div>

Hello

I am currently trying to trigger an alarm when the TOTALAVAILABLEQUANTITY reaches less than 10 count from the STOCK table.  
The script is written under root/table component and it's not working  
I have attached the snapshots of the scripting used for the alarm condition for reference  
Can you please help me out with this issue

 ![2023-07-26 (1)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7badaa3c95119bce28588d81cf770dfd0384281d.png)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [July 26, 2023, 12:11pm UTC](https://forum.inductiveautomation.com/t/problem-with-alarm-status/76927/2 "2023-07-26T12:11:40Z")

</div>

You never call any of your functions? Line 18 should probably be `triggerAlarmForLowQuantity()`

If the triggerAlarmForLowQuantity function detects low stock and passes the component name to the triggerAlarmFunction, there is nothing in there that will do anything. What are you wanting to see happen?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 26, 2023, 12:32pm UTC](https://forum.inductiveautomation.com/t/problem-with-alarm-status/76927/3 "2023-07-26T12:32:03Z")

</div>

More importantly, why are you trying to trigger an alarm on a graphic component and not in a tag? If the page isn't open, nothing will happen. You seem to be confusing gateway logic with frontend logic
