|
of_Update
|
|
Full name
|
pfc_u_dw.of_Update
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_Update(boolean,boolean,powerobject)
|
Name
|
Datatype
|
li_rc
|
integer
|
lpo_notvalid
|
powerobject
|
public function integer of_Update (boolean ab_accepttext, boolean ab_resetflag, powerobject apo_requestor);//////////////////////////////////////////////////////////////////////////////
// Public Function:of_Update
// Arguments: ab_accepttext When applicable, specifying whether control should perform an
// AcceptText prior to performing the update:
// ab_resetflag Value specifying whether object should automatically
// reset its update flags.
// apo_requestor An object requesting the update within a transaction.
// Returns: Integer
// 1 = The update was successful
// -1 = The update failed
// Description: Execute the specific Update logic.
// Note: Specific Update logic should be coded in descendant pfc_Update event.
//////////////////////////////////////////////////////////////////////////////
// Rev. History Version
// 6.0 Initial version
//////////////////////////////////////////////////////////////////////////////
// Copyright © 1996-1999 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
powerobject lpo_notvalid
if IsValid(inv_Linkage) then
// Set the object requesting the update.
if inv_Linkage.of_SetUpdateRequestor(apo_requestor) <0 then return FAILURE
// Perform the actual update.
li_rc = this.of_Update(ab_accepttext, ab_resetflag)
// Clear the object which requested the update.
inv_Linkage.of_SetUpdateRequestor(lpo_notvalid)
else
// Set the object requesting the update.
if this.of_SetUpdateRequestor(apo_requestor) <0 then return FAILURE
// Perform the actual update.
li_rc = this.of_Update(ab_accepttext, ab_resetflag)
// Clear the object which requested the update.
this.of_SetUpdateRequestor(lpo_notvalid)
end if
return li_rc
end function