Skip to content

Show warning icon on condition #15409

Answered by vaskoZGU
vaskoZGU asked this question in Help
Discussion options

You must be logged in to vote

Here’s how I resolved my problem, which may be helpful for others facing the same issue:

  1. I created a MySQL recurring event to perform the calculation and save the results in a separate table.

  2. In BB, I created a MySQL query to check this table with the following command:

    SELECT DISTINCT(comparison_result) FROM bb_sum_compare_stgrad WHERE comparison_result = 'Not Equal!';
  3. I added an "Interval" element that triggers the following 3 actions every 60 seconds:

    • Execute the query from step 2.
    • Perform a conditional action.
    • Show a notification if the condition is met.

In the conditional action, I used the following JavaScript script:

return $("Action 1.Query result")?.data?.[0]?.["Not Eq…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vaskoZGU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant