|
of_setdatasource
|
|
Full name
|
pfc_u_tv.of_setdatasource
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setdatasource(integer,string,n_tr,string,string)
|
public function integer of_setdatasource (integer ai_level, string as_datawindow, n_tr atr_obj, string as_labelcolumn, string as_retrieveargs);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetDatasource
//
// Access: public
//
// Arguments:
// ai_Level The TreeView level to associate the data source with.
// as_DataWindow The DataWindow object to be used for the data source.
// atr_obj The transaction object for this data source (can be
// different for each level).
// as_LabelColumn The column in the DataWindow object to display.
// as_RetrieveArgs Retrieval arugments for the DataWindow. These should
// be separated by commas in the format:
// :keyword.n.column
// where column is the name of a column in another level's
// data source. If keyword is 'level', n is an absolute level
// number. If keyword is 'parent', n is a number relative to
// the current level (i.e. :parent.2.c1 would be column c1 in
// the DataWindow for the level 2 levels above this one.
//
// Returns: integer
// 1 = the data source was added successfully
// -1 = argument validation error
// -2 = the DataWindow object did not have any key columns assigned
// -3 = a previous level had already been marked as recursive (there can be no more)
//
//
// Description: Register a data source for a level of the TreeView. The data source is a
// DataWindow object that will be linked to the TreeView level and used
// to populate.
//
// This function overloads the real of_SetDatasource function to allow the
// last five parameters to be optional.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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.
//
//////////////////////////////////////////////////////////////////////////////
return of_SetDatasource(ai_Level, as_DataWindow, atr_obj, as_LabelColumn, as_RetrieveArgs, False, 0, 0, 0, 0)
end function