DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Script to check if value has been exceeded and feed test to report

Solved!
Go to solution

Hi All, I want to check to see if a value has been exceeded and then have an alerts tab on a report. For example I want to check if the speed of 7000 rpm was exceeded. I then want on the alert tab of the report for it to say yes or no for verification the value was exceeded. I can find if it was exceeded fine but how do I translate that into a corresponding text statement for a report? Thanks in advance!

0 Kudos
Message 1 of 3
(2,355 Views)
Solution
Accepted by topic author KarenD

I think you just need to stock the warning in a text variable like this :

 

If valueMax < currentValue Then
  T1 = "This is a warning!"
Else
  T1 = "No warning"
End If

On your report just place a text box and write @@T1@@ inside. When refreshing the report you should see if the warning has been triggered or not.

 

Does it help ?

CLAMaxime -- Kudos are a great way to say thank you
Message 2 of 3
(2,336 Views)

Thank you very much! Exactly what I was looking for and so simple!

0 Kudos
Message 3 of 3
(2,331 Views)