of_UnRegister


pfcapsrv.pbl   >   pfc_n_cst_lvsrv_datasource   >   of_UnRegister   

Full name pfc_n_cst_lvsrv_datasource.of_UnRegister
Access public
Extend of integer
Return value integer
Prototype public function integer of_UnRegister()

Name Datatype
No Data

Name Datatype
li_rc integer
ltr_obj n_tr

public function integer of_UnRegister ();//////////////////////////////////////////////////////////////////////////////
//	Public Function:	of_UnRegister
//	Arguments:		None
//	Returns:			Integer
//	 					1 = the data source was unregistered successfully
//						-1 = error
//	Description:	UnRegister a data source for the ListView.  Reset the attribute
//						values to defaults and destroy the datastore reference
//////////////////////////////////////////////////////////////////////////////
//	Rev. History:	Version
//						6.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 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
n_tr		ltr_obj

// reset the values in the array structure
inv_Attrib.is_DataObject = ""
inv_Attrib.is_LabelColumn = ""
inv_Attrib.is_PictureColumn = ""
inv_Attrib.is_StateColumn = ""
inv_Attrib.is_OverlayColumn = ""
inv_Attrib.is_XPosColumn = ""
inv_Attrib.is_YPosColumn = ""
inv_Attrib.is_Method = ""

inv_Attrib.itr_obj = ltr_obj

if isvalid(inv_Attrib.ids_Source) then	Destroy inv_Attrib.ids_Source

// unregister with cache service
inv_Cache.of_UnRegister(CACHE_ID) 

// Delete the report view columns
of_UnRegisterReportColumn()

// no need to remember the undo items
of_ClearUndo()

return 1
end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isvalid systemfunctions
pfc_n_cst_lvsrv_datasource.of_ClearUndo pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.of_UnRegisterReportColumn pfc_n_cst_lvsrv_datasource
pfc_n_cst_dwcache.of_unregister pfc_n_cst_dwcache

     
Full name
No Data

     
Name Scope
No Data