AnsweredAssumed Answered

Halt script if no records found

Question asked by hferrell on Jun 26, 2013
Latest reply on Jun 27, 2013 by hferrell

Title

Halt script if no records found

Post

     I have a Button Setup that Triggers a defined scripted Find Search.  At the end of the script it calls for a change in layout and directs to a Tab Panel for the results.  I do not want to be directed to a tab panel unless there are records found.  If the find has no returns, I would like for the message “No records match this find criteria” to appear.  I do not want to be directed away from my present layout. How do I halt the script if no returns appear before running the last line in the script? 

Outcomes