|
pfc_postupdate
|
|
Full name
|
pfc_w_master.pfc_postupdate
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_postupdate(powerobject[])
|
event pfc_postupdate;//////////////////////////////////////////////////////////////////////////////
//
// Event:
// pfc_postupdate
//
// Arguments: none
//
// Returns: integer
// 1 = success
// -1 = fail
//
// Description:
// Perform Post Update process.
// i.e. Reset the datawindow update flags on a successful save.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 6.0 Redirected to the Logical Unit of Work Service.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Make sure there is something to take action on.
If UpperBound(apo_control) = 0 Then Return NO_ACTION
// Let Logical Unit of Work Service perform the functionality (create if necessary).
If IsNull(inv_luw) Or Not IsValid (inv_luw) Then of_SetLogicalUnitofWork(True)
If IsValid(inv_luw) THen
Return inv_luw.of_PostUpdate(apo_control)
End If
Return -1
end event