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
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?
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
2 Likes