pfc_refreshlevel


pfcapsrv.pbl   >   pfc_n_cst_tvsrv_levelsource   >   pfc_refreshlevel   

Full name pfc_n_cst_tvsrv_levelsource.pfc_refreshlevel
Access public
Extend of integer
Return value integer
Prototype event integer pfc_refreshlevel(integer)

Name Datatype
No Data

Name Datatype
lds_source n_ds
li_rc Integer
ll_handle long
ll_row long
ll_rowcount long

event pfc_refreshlevel;//////////////////////////////////////////////////////////////////////////////
//
//	Event:		pfc_RefreshLevel
//
//	Arguments:	
//	ai_level		The treeview level to refresh
//
//	Returns:		integer
//					 1 = treeview level refreshed successfully  
//					-1 = an error occurred
//
//	Description:	Refresh the treeview level with items from the data source.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	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_rc
long		ll_handle, ll_row, ll_rowcount
n_ds		lds_source

// check reference variables
If IsNull(itv_requestor) or Not IsValid(itv_requestor) Then Return -1
If IsNull(ai_level) or (ai_level < 1) Then Return -1

Setpointer(hourglass!)

// perform application specific processing if needed
itv_requestor.event pfc_prerefreshlevel(ai_level) 

// Refresh all items at this level
this.of_GetDataSource(ai_level, lds_source)
ll_rowcount = lds_source.RowCount()
For ll_row = 1 to ll_rowcount
	ll_handle = this.of_GetHandle(lds_source, ll_row, ai_level)
	If ll_handle < 1 Then Continue
	If itv_requestor.event pfc_RefreshItem(ll_Handle) = -1 Then Return -1
Next

Return 1

end event

     
Name Owner
pfc_u_tvs.pfc_refreshlevel pfc_u_tvs

     
Name Owner
datastore.rowcount datastore
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.setpointer systemfunctions
pfc_n_cst_tvsrv_levelsource.of_gethandle pfc_n_cst_tvsrv_levelsource
pfc_n_cst_tvsrv_levelsource.of_getdatasource pfc_n_cst_tvsrv_levelsource
pfc_u_tvs.pfc_prerefreshlevel pfc_u_tvs
pfc_u_tvs.pfc_refreshitem pfc_u_tvs

     
Full name
No Data

     
Name Scope
No Data