|
of_retrieve
|
|
Full name
|
pfc_u_tvs.of_retrieve
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_retrieve(long,any[20],ref n_ds)
|
Name
|
Datatype
|
li_nextlevel
|
Integer
|
public function long of_retrieve (long al_parent, any aa_args[20], ref n_ds ads_data);//////////////////////////////////////////////////////////////////////////////
//
// Event: of_Retrieve
//
// Arguments:
// al_parent The handle to the Treeview item to place retrieved data under
// aa_args retrieval arguments to pass to the datastore if needed
// ads_data The datastore holding the rows to add to the treeview as items
// passed by reference
//
// Returns: long
// number of items returned by the retrieve
// -1 = error
//
// Description:
// Return the number of rows placed in 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_nextlevel
// Check Arguments
If (al_parent < 0) or IsNull(al_parent) Then Return -1
// we know which level we are on by the parent, so we want to get the children
// items for the parent, which mean that the data for the next level down (level + 1)
// will need to be retrieved for a level centric tree.
li_nextlevel = of_GetNextLevel(al_parent)
if li_nextlevel < 1 then Return -1
// retrieve the rows into the datasource
If isvalid(inv_levelsource) then
Return inv_levelsource.of_retrieve(li_nextlevel, aa_args, ads_data)
End If
Return -1
end function