pfc_insertrow


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_linkage   >   pfc_insertrow   

Full name pfc_n_cst_dwsrv_linkage.pfc_insertrow
Access public
Extend of integer
Return value integer
Prototype event integer pfc_insertrow(long)

Name Datatype
No Data

Name Datatype
li_rc Integer

event pfc_insertrow;call super::pfc_insertrow;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  			pfc_insertrow
//
//	(Arguments:
//	 al_row: 		A long identifying the row that has just been inserted.
//
//	(Returns:  		Integer
//   					 1 If sucessful.
//						-1 If an error is encountered.
//
//	Description:  
//	Notification that a new row has been added.  
//	Performs all required actions for a new row.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.0   Initial version
// 5.0.04 Make sure detail dws linked through dwShareData are synchronized.
// 6.0	Added setrow and scrolling to the new added row.
// 6.0 	Added notification of row about to be added for the UpdateOnRowChange.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_rc

If al_row = 0 Then
	// Capture notification of new row about to be added.
	ib_insertingrow = True
	Return 1
End If

// Reset flag that keeps tracks of new rows being added.
ib_insertingrow = False

// Set focus to the new row.
If al_row > 0 And al_row <> idw_requestor.GetRow() Then
	idw_requestor.SetRow (al_row)
	idw_requestor.ScrollToRow (al_row)
End If

// Make sure detail dws linked through dwShareData are synchronized.
this.Event pfc_RowFocusChanged(al_row)

// Set the Key values for the new row.
li_rc = of_SetKeyValues(al_row) 

Return li_rc
end event

     
Name Owner
pfc_u_dw.pfc_insertrow pfc_u_dw
pfc_u_dw.pfc_addrow pfc_u_dw

     
Name Owner
datawindow.getrow datawindow
datawindow.scrolltorow datawindow
datawindow.setrow datawindow
pfc_n_cst_dwsrv_linkage.of_setkeyvalues pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_linkage.pfc_rowfocuschanged pfc_n_cst_dwsrv_linkage

     
Full name
No Data

     
Name Scope
No Data