itemchanged


pfcdwsrv.pbl   >   pfc_w_filtersimple   >   dw_filter   >   itemchanged   

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

Name Datatype
No Data

Name Datatype
li_newrow integer

event itemchanged;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  ItemChanged!
//
//	Description:  Determine the column that changed and take some action
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.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_newrow

IF dwo.Name ="and_or" And row =this.RowCount() THEN
	// If the user clicks the "and_or" column on the last row, add one row.
	li_newrow = this.Event pfc_AddRow()

	If li_newrow > 0 Then
		// Change the current row to the new row.
		dw_filter.ScrollToRow(li_newrow)
		dw_filter.SetRow(li_newrow)
		
		// Change focus to the first column on the new row.
		dw_filter.SetColumn("colname")
	End If
END IF

end event

     
Name Owner
No Data

     
Name Owner
datawindow.rowcount datawindow
datawindow.scrolltorow datawindow
datawindow.setcolumn datawindow
datawindow.setrow datawindow
pfc_u_dw.pfc_addrow pfc_u_dw

     
Full name
pfc_w_filtersimple

     
Name Scope
No Data