SmarteSoft Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SmarteSoft Forums is now live!

Author Topic: How to Turn off reporting for a command sent to the report?  (Read 875 times)

SmarteSupport

  • Administrator
  • Jr. Member
  • *****
  • Posts: 171
How to Turn off reporting for a command sent to the report?
« on: October 21, 2009, 05:37:37 PM »
Purpose:
Sometimes a user will need to turn of an error message that is expected to appear, in which the command will fail and create an error on the report.

How we turn off the error reporting for this command-
•   Right click on the command and selected  Add Additional User Code…
•   Click on Script Code
•   Click on Objects User Code (before) – ReportEchoStatus=FALSE; (to turn it off)
•   Click on Objects User Code (after) – ReportEchoStatus=TRUE; (to turn it back on after)

First Scenario the window/dialog is expected to appear so this will pass.
The Second Scnario we expect the window to not appear, however we want a passing result in the reports that is generated.
Logged