|
of_refresh
|
|
Full name
|
pfc_n_cst_dwsrv_linkage.of_refresh
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_refresh(long)
|
Name
|
Datatype
|
ldw_root
|
u_dw
|
public function integer of_refresh (long al_row);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_Refresh
//
// Access: Public
//
// Arguments:
// al_row: The current row of the requesting datawindow
//
// Returns: Integer
// 1 if it succeeds
// 0 if there is no data to refresh.
// -1 if an error occurs.
//
// Description:
// Refreshed detail datawindows based on its style.
//
// Note:
// This function is not typically called by the developer.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Changed to use service constants and not use absoleted functions.
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
u_dw ldw_root
// This operation is not valid for the root datawindow.
If of_IsRoot() Then Return FAILURE
// Find the root datawindow.
If of_FindRoot(ldw_root) <> 1 Then Return FAILURE
// If the linkage service is off on the root, then error.
If IsNull(ldw_root.inv_Linkage) Or &
Not IsValid (ldw_root.inv_Linkage) Then Return FAILURE
// Cause a refresh on the details.
Choose Case of_GetStyle()
Case FILTER
Return of_FilterDetails(al_row)
Case RETRIEVE
Return of_RetrieveDetails(al_row)
Case SCROLL
Return of_ScrollDetails(al_row)
End Choose
Return FAILURE
end function