of_confirmondelete


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   of_confirmondelete   

Full name pfc_n_cst_dwsrv_linkage.of_confirmondelete
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_confirmondelete()

Name Datatype
No Data

Name Datatype
li_i integer
li_numdetails integer

public function boolean of_confirmondelete ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_ConfirmOnDelete
//
//	Access:  Public
//
//	Arguments:	None
//
//	Returns: boolean 
//	stating if confirmation is needed.
//
//	Description:
//	Determine by looking at the linked dws, if current dw requires confirmation
//	on Delete.
//
//	Note: 
//	This functionality is only used by the Retrival style.
//	This function is not typically called by the developer.  
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

integer	li_numdetails
integer	li_i

// Determine if current dw requires Updates to occur on RowChange.
If of_GetStyle() = RETRIEVE And of_IsConfirmOnDelete() Then
	Return True
End If

// Determine if any Detail requires Updates to occur on Delete.
li_numdetails = UpperBound ( idw_details ) 
For li_i = 1 to li_numdetails 
	If IsNull(idw_details[li_i]) Or Not IsValid (idw_details[li_i]) Then Continue
	If IsNull(idw_details[li_i].inv_Linkage) Or & 
	 	Not IsValid (idw_details[li_i].inv_Linkage) Then Return False
	
	If idw_details[li_i].inv_Linkage.of_ConfirmOnDelete() Then
		Return True
	End If
Next 

Return False

end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_confirmondelete pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.pfc_predeleterow pfc_n_cst_dwsrv_linkage

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.upperbound systemfunctions
pfc_n_cst_dwsrv_linkage.of_getstyle pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_isconfirmondelete pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.of_confirmondelete pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data