itemfocuschanged


pfcdwsrv.pbl   >   pfc_w_filtersimple   >   dw_filter   >   itemfocuschanged   

Full name pfc_w_filtersimple.dw_filter.itemfocuschanged
Access public
Extend of
Return value
Prototype event itemfocuschanged()

Name Datatype
No Data

Name Datatype
li_foundrow integer
ls_colname string
ls_currentcolumn string
ls_findexp string

event itemfocuschanged;call super::itemfocuschanged;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  		itemfocuschanged
//
//	(Arguments: None )
//
//	(Returns:   None )
//
//	Description:  Provide Type Ahead capabilities.
//					  Populate the DropDownDatawindow with column values.
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.0   Initial version
// 5.0.03 Clear the columnvalues via a Reset operation.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Provide Type Ahead capabilities.
If IsValid(inv_dropdownsearch) Then
	inv_dropdownsearch.event pfc_itemfocuschanged(row, dwo)
End If

// Populate the DropDownDatawindow with column values.
integer 	li_foundrow
string	ls_findexp
string	ls_colname
string	ls_currentcolumn

IF this.GetColumnName ( ) = "colvalue" THEN
	SetPointer ( HourGlass! )
	
	// Get the column name for which column values are needed.
	ls_currentcolumn = this.GetItemString ( this.GetRow(), "colname")
	
	ls_findexp = 'Lower(display_column) = "' + Lower(ls_currentcolumn) + '"'
	li_foundrow = idwc_cols.Find(ls_findexp, 1, idwc_cols.RowCount())
	IF li_foundrow > 0 THEN 
		// Populate the list with column values.
		ls_colname = idwc_cols.GetItemString ( li_foundrow, "columnname" )
		of_GetValues(ls_colname)  
	Else
		// Clear all of the values.
		idwc_values.Reset()
	END IF 
END IF 

end event

     
Name Owner
No Data

     
Name Owner
datawindow.getcolumnname datawindow
datawindow.getitemstring datawindow
datawindow.getrow datawindow
datawindowchild.find datawindowchild
datawindowchild.getitemstring datawindowchild
datawindowchild.reset datawindowchild
datawindowchild.rowcount datawindowchild
systemfunctions.isvalid systemfunctions
systemfunctions.lower systemfunctions
systemfunctions.setpointer systemfunctions
pfc_w_filtersimple.of_getvalues pfc_w_filtersimple
pfc_n_cst_dwsrv_dropdownsearch.pfc_itemfocuschanged pfc_n_cst_dwsrv_dropdownsearch
pfc_u_dw.itemfocuschanged pfc_u_dw

     
Full name
No Data

     
Name Scope
No Data