|
pfc_rowchanged
|
|
Full name
|
pfc_n_cst_dwsrv_linkage.pfc_rowchanged
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_rowchanged()
|
Name
|
Datatype
|
li_rc
|
Integer
|
event pfc_rowchanged;call super::pfc_rowchanged;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_rowchanged
//
// Arguments: None
//
// Returns: Integer
// 1 success
// -1 error
//
// Description:
// Notification when the buffer has been sorted, filtered or otherwise
// manipulated such that the current row has not changed, but the actually row
// at that location may be different.
//
// Note:
// This event could be triggered without the benefit of a RowFocusChanging
// notification. With the Retrieve Style and updateonrowchange = True there
// is the possibility of data requiring updates prior to going to the new row.
// The developer needs to prevent this event from being fired when required
// updates are not valid updates.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_rc
// Determine by looking at the linked dws, if current dw requires
// Updates to occur on RowChange.
If of_UpdateOnRowChange() Then
// If Updates are pending save them. This is usually not requested via
// user interaction so there is no notification.
li_rc = of_Save(0, False)
If li_rc <0 or li_rc > 1 Then
// The developer needs to prevent this event from being fired when required
// updates are not be valid updates.
Return -1
End If
End If
li_rc = this.Event pfc_RowFocusChanged (idw_requestor.GetRow())
Return li_rc
end event