pfc_finddlg


pfcdwsrv.pbl   >   pfc_n_cst_dwsrv_find   >   pfc_finddlg   

Full name pfc_n_cst_dwsrv_find.pfc_finddlg
Access public
Extend of
Return value
Prototype event pfc_finddlg()

Name Datatype
No Data

Name Datatype
li_rc integer

event pfc_finddlg;call super::pfc_finddlg;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  			pfc_finddlg
//
//	(Arguments:		None)
//
//	(Returns:  		None)
//
//	Description:  	Begin a search based on current settings
//						of the nvo-structure inv_findattrib with the find dialog. 
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.0   Initial version
// 5.0.02 Close existing Dialog window prior to displaying the new Dlg window.
// 6.0	Enhanced with pfc_prefinddlg capabilities.
// 6.0	Ehnanced to use new Allow Dialog attribute.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_rc

//Make sure is allowed to open dialog.
If Not of_IsAllowFindDlg() Then Return

//Validate required reference.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then Return

//Close existing Dialog window prior to displaying the new Dlg window.
If IsValid(w_replace) Then Close(w_replace)
If IsValid(w_find) Then Close(w_find)

//Set this object as the requestor.
inv_findattrib.ipo_requestor = this

//Look Options are required for Column Searches.
inv_findattrib.ib_lookvisible = True
inv_findattrib.ib_lookenabled = True

//Whole word capabilities are not supported on column searches.
inv_findattrib.ib_wholewordvisible =False
inv_findattrib.ib_wholewordenabled =False
inv_findattrib.ib_wholeword = False

//Build the Column List for the Find operation.
//The Find list is build everytime to catch for possible manipulation of the
//columns.  i.e., columns changing between visible and not visible.
li_rc = of_BuildColumnNames (False)

//Pfc_prefinddlg capabilities.
idw_requestor.Event pfc_prefinddlg(inv_findattrib)

//Open find window.
OpenWithParm(w_find, inv_findattrib)

end event

     
Name Owner
pfc_u_dw.pfc_finddlg pfc_u_dw

     
Name Owner
systemfunctions.close systemfunctions
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.openwithparm systemfunctions
pfc_n_cst_dwsrv_find.of_isallowfinddlg pfc_n_cst_dwsrv_find
pfc_n_cst_dwsrv_find.of_buildcolumnnames pfc_n_cst_dwsrv_find
pfc_u_dw.pfc_prefinddlg pfc_u_dw

     
Full name
w_replace
w_find

     
Name Scope
No Data