AfterRetrieve

Description

Occurs just after the call to Retrieve on the server component.

Applies to

PSWebDataWindowClass objects

Arguments

Argument

Description

numRows

Number of rows retrieved by the server component

Returns

None

Usage

This event is not triggered if the call to Retrieve fails.

This is the equivalent of the RetrieveEnd event for the PowerBuilder DataWindow.

Examples

Example 1

This example counts the rows retrieved and sends a message to the user if the count is higher than 1000:

If (numRows>1000) {
 psPage.Alert ("Please refine your database query.\n"
    +"It currently returns in excess of " + numRows     
    +"		 rows.", true);
 psPage.Redirect("sendingpage.html");}

See also

Retrieve in the DataWindow Reference