Click or drag to resize

AppWindow.ReportNotification Method (Typed)

X#
Called by ReportQueue when it has a message for the owner window.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD ReportNotification(
	oRQ
) AS USUAL CLIPPER
Request Example View Source

Parameters

oRQ (Optional)
Type: Usual
The ReportQueue object to be checked for pending commands.

Return Value

Type: Usual
TRUE if there are any pending reporting commands waiting to be executed; otherwise, FALSE.
Remarks
This method provides a mechanism to determine if a report queue that this application window owns has any pending reporting commands. See ReportQueue:EventType access for different event codes. To implement different behavior, recode this method for your class that derives ultimately from AppWindow. Polymorphism ensures that the event is dispatched to your ReportNotification() handler, rather than AppWindow's.
Examples
This example optionally reacts to a report server closing event and ignores other events:
X#
 1METHOD ReportNotification(oRQ) CLASS AppWindow
 2LOCAL oTB
 3LOCAL Reply
 4IF (oRQ:EventType == REPORTSERVERCLOSEEVENT)
 5oTB := TextBox{SELF,"You closed";
 6+ oRQ:ReportServer,;
 7"Should pending reports be attempted?"}
 8oTB:TYPE := BUTTONYESNO + ;
 9BOXICONQUESTIONMARK
10Reply := oTB:Show()
11oTB:Axit()
12IF (Reply == BOXREPLYNO)
13RETURN FALSE
14ENDIF     // Reply was BOXREPLYYES
15ENDIF
16RETURN TRUE   // De-queue any pending
17// commands which can cause
18// restart prompt
See Also