pfc_updateobjects


pfcmain.pbl   >   pfc_w_master   >   pfc_updateobjects   

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

Name Datatype
No Data

Name Datatype
No Data

event pfc_updateobjects;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_Update2
//
//	Arguments:
//	apo_control   Array of controls that need to be updated
//	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 taken
//	-1 = At least one update failed
//
//	Description:
//	Updates the specified array of controls
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Validate arguments.
If IsNull(ab_accepttext) or IsNull(ab_resetflag) Then Return -1

// 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_w_master.of_update pfc_w_master
pfc_w_master.pfc_update pfc_w_master

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

     
Full name
No Data

     
Name Scope
No Data