of_setdatasource


pfcmain.pbl   >   pfc_u_tv   >   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,boolean,integer)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setdatasource (integer ai_level, string as_datawindow, n_tr atr_obj, string as_labelcolumn, string as_retrieveargs, boolean ab_recursive, integer ai_pictureindex);//////////////////////////////////////////////////////////////////////////////
//
//	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.
//	ab_Recursive				True - indicates that this is the last data source for this tree.
//									It will be used recursively for each subsequent level.
//	ai_PictureIndex			The index to the picture array to use for this level.
//
//	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 three 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, ab_Recursive, &
							ai_PictureIndex, 0, 0, 0)
end function

     
Name Owner
No Data

     
Name Owner
pfc_u_tv.of_setdatasource pfc_u_tv

     
Full name
No Data

     
Name Scope
No Data