of_RegisterReportColumn


pfcapsrv.pbl   >   pfc_n_cst_lvsrv_datasource   >   of_RegisterReportColumn   

Full name pfc_n_cst_lvsrv_datasource.of_RegisterReportColumn
Access public
Extend of integer
Return value integer
Prototype public function integer of_RegisterReportColumn(n_ds,string)

Name Datatype
No Data

Name Datatype
ls_header string

public function integer of_RegisterReportColumn (n_ds ads_obj, string as_columnname);//////////////////////////////////////////////////////////////////////////////
//	Public Function:	of_RegisterReportColumn
//	Arguments:		ads_obj			The data store which holds the column information of as_columnname
//						as_ColumnName	The column in the DataWindow object to add as a column in the ListView. 
//	Returns:			Integer
//						The index of the column if added successfully
//						-1 if an error occurred
//	Description:	Add a column to the ListView control for Report View only.
//						This function overrides the real of_RegisterReportColumn to allow the 
//						column width, alignment and label to be determined by the attributes 
//						of the column in the DataWindow.
//////////////////////////////////////////////////////////////////////////////
//	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.
//////////////////////////////////////////////////////////////////////////////
string	ls_header

// Validate required reference.
if IsNull(ads_obj) or not IsValid(ads_obj) then return -1
if IsNull(ads_obj.inv_base) or not IsValid(ads_obj.inv_base) then return -1
if IsNull(as_columnname) or (trim(as_columnname) = "") then return -1

// Get the header of the column in the DataWindow
ls_header = ads_obj.inv_base.of_GetHeaderName (as_columnname)

// Add the column to the ListView
return of_RegisterReportColumn (ads_obj, as_columnname, ls_header)
end function

     
Name Owner
pfc_n_cst_lvsrv_datasource.of_Register pfc_n_cst_lvsrv_datasource
pfc_n_cst_lvsrv_datasource.of_RegisterReportColumn pfc_n_cst_lvsrv_datasource

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.trim systemfunctions
pfc_n_cst_lvsrv_datasource.of_RegisterReportColumn pfc_n_cst_lvsrv_datasource
pfc_n_cst_dssrv.of_getheadername pfc_n_cst_dssrv

     
Full name
No Data

     
Name Scope
No Data