pfc_updatespending


pfcmain.pbl   >   pfc_u_tvs   >   pfc_updatespending   

Full name pfc_u_tvs.pfc_updatespending
Access public
Extend of integer
Return value integer
Prototype event integer pfc_updatespending(powerobject[],ref powerobject[])

Name Datatype
No Data

Name Datatype
li_rc Integer
lpo_pending PowerObject[]
lpo_updatearray powerobject[]
NO_UPDATESPENDING integer

event pfc_updatespending;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_UpdatesPending
//
//	Arguments:	
//	apo_control[]	The controls on which to perform functionality.
//
//	Returns:  integer
//	 1 = updates are pending (no errors found)
//	 0 = No updates pending (no errors found)
//	-1 = error
//
//	Description:
//	Request the Logical Unit of Work service to determine which objects have
//	UpdatesPending.  Store references in pending array.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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.
//
//////////////////////////////////////////////////////////////////////////////

constant integer NO_UPDATESPENDING =0
Integer	li_rc
PowerObject lpo_pending[]
powerobject lpo_updatearray[]

// Clear the pending by reference array.
apo_pending = lpo_pending

// Make sure there is something to take action on.
If UpperBound(apo_control) = 0 Then Return NO_UPDATESPENDING
If Not of_IsUpdateable() Then Return NO_UPDATESPENDING

// 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
	li_rc = inv_luw.of_UpdatesPending(apo_control, lpo_pending)
	apo_pending = lpo_pending
	Return li_rc
End If

Return -1

end event

     
Name Owner
pfc_u_tvs.of_updatespending pfc_u_tvs
pfc_u_tvs.of_validation pfc_u_tvs
pfc_u_tvs.of_updateprep pfc_u_tvs
pfc_u_tvs.of_postupdate pfc_u_tvs
pfc_u_tvs.of_update pfc_u_tvs

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_cst_luw.of_updatespending pfc_n_cst_luw
pfc_u_tvs.of_setlogicalunitofwork pfc_u_tvs
pfc_u_tvs.of_isupdateable pfc_u_tvs

     
Full name
No Data

     
Name Scope
No Data