pfc_update


pfcmain.pbl   >   pfc_u_tab   >   pfc_update   

Full name pfc_u_tab.pfc_update
Access public
Extend of integer
Return value integer
Prototype event integer pfc_update(powerobject[],boolean,boolean)

Name Datatype
No Data

Name Datatype
No Data

event pfc_update;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_update
//
//	Arguments:
//	apo_control[]	The controls on which to perform functionality.
//	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.
//
//	Returns:   integer
//	 1 = all updates successful
//  0 = no action
//	-1 = at least one update failed
//
//	Description:
//	Request the Logical Unit of Work service to perform Update functionality
//	on the array.
//
//	Note:
//	This function will update objects in the order in which they are found in
//	the array.  The linked datawindows are updated according to linkage service
// information.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Make sure there is something to take action on.
If UpperBound(apo_control) = 0 Then Return NO_ACTION
If Not of_IsUpdateable() 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_Update(apo_control, ab_accepttext, ab_resetflag)
End If

Return -1
end event

     
Name Owner
pfc_u_tab.of_update pfc_u_tab

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_cst_luw.of_update pfc_n_cst_luw
pfc_u_tab.of_isupdateable pfc_u_tab
pfc_u_tab.of_setlogicalunitofwork pfc_u_tab

     
Full name
No Data

     
Name Scope
No Data