Send to a window field

Command group Flag affected Reversible Execute on client Platform(s)
Report destinations NO YES NO All

Syntax

Send to a window field {field-name}

Description

This command directs the output of a report to a window Screen Report field; you cannot print to any other type of window field. When you print the report the field is changed into a standard screen report window that has all the features of the standard screen report.

An error is generated if the field name is invalid for the current window. If you use Send to a window field in a reversible block, the report destination reverts to its former setting when the method terminates.

Example

; the $event method behind a pushbutton on a window
On evClick
  Send to a window field {WindowReportField}
  Set report name rMyReport
  Print report ;; prints the report in the window field