|
of_getregisterable
|
|
Full name
|
pfc_n_cst_dwsrv_filter.of_getregisterable
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_getregisterable(ref string[])
|
Name
|
Datatype
|
li_i
|
integer
|
li_numcols
|
integer
|
li_numcomputes
|
integer
|
ls_computes
|
string[]
|
ls_filtercolumns_all
|
string[]
|
public function integer of_getregisterable (ref string as_allcolumns[]);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_GetRegisterable
//
// Access: Public
//
// Arguments:
// as_allcolumns[] Passed by reference, that will hold all the columns
// (including computed columns) that the service can use to perform filter.
//
// Returns: Integer
// # of entries
// -1 if an error occurs.
//
// Description:
// To get the list of all the columns (including computed columns) that the service
// can use to perform filter.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_numcols
integer li_numcomputes
integer li_i
string ls_filtercolumns_all[]
string ls_computes[]
// Get all the column names on the datawindow.
li_numcols = of_GetObjects(ls_filtercolumns_all, "column", "*", ib_visibleonly)
// Get all the computed column names on the datawindow and add them to the array.
li_numcomputes = of_GetObjects(ls_computes, "compute", "*", ib_visibleonly)
// Add compute columns to the array.
FOR li_i = 1 to li_numcomputes
li_numcols++
ls_filtercolumns_all[li_numcols] = ls_computes[li_i]
NEXT
as_allcolumns = ls_filtercolumns_all
Return UpperBound(as_allcolumns)
end function