pfc_propertyapply


pfcutil.pbl   >   pfc_u_tabpg_dwproperty_srvquerymode   >   pfc_propertyapply   

Full name pfc_u_tabpg_dwproperty_srvquerymode.pfc_propertyapply
Access public
Extend of
Return value
Prototype event pfc_propertyapply()

Name Datatype
No Data

Name Datatype
lb_current boolean
lb_desired boolean
li_cnt integer
li_index integer
li_querycnt integer
li_rc integer
li_upper integer
ls_allcols string[]
ls_querycols string[]

event pfc_propertyapply;call super::pfc_propertyapply;//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		pfc_PropertyApply
//
//	Access:    		Public
//
//	Arguments:  	None
//
//	Returns:   		Integer
//   1 if it succeeds.
//	 -1 if an error occurs.
//
//	Description:  		
//	 Apply the requested changes.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.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_upper
integer	li_cnt
integer 	li_rc
integer	li_index
integer	li_querycnt = 0
string	ls_allcols[]
string	ls_querycols[]
boolean	lb_current
boolean	lb_desired

// Validate references.
If IsNull(idw_requestor) or Not IsValid(idw_requestor) Then
	Return -1
End If
If IsNull(idw_requestor.inv_querymode) or Not IsValid(idw_requestor.inv_querymode) Then
	Return -1
End If

// -- QueryMode. --
lb_current = idw_requestor.inv_querymode.of_GetEnabled()
lb_desired = cbx_enabled.Checked
// If the desired value differs from the current value, set the new style.
If  lb_current<> lb_desired Then
	li_rc = idw_requestor.inv_querymode.of_SetEnabled(lb_desired)
End If

// -- ResetQueryCriteria. --
lb_current = idw_requestor.inv_querymode.of_GetResetCriteria()
lb_desired = cbx_resetcriteria.Checked
// If the desired value differs from the current value, set the new style.
If  lb_current<> lb_desired Then
	li_rc = idw_requestor.inv_querymode.of_SetResetCriteria(lb_desired)
End If

// -- Retrieve on Disabled. --
lb_current = idw_requestor.inv_querymode.of_GetRetrieveOnDisabled()
lb_desired = cbx_retrieveondisabled.Checked
// If the desired value differs from the current value, set the new style.
If  lb_current<> lb_desired Then
	li_rc = idw_requestor.inv_querymode.of_SetRetrieveOnDisabled(lb_desired)
End If

// -- Query Columns. --
// Get the number of items in the ListBox.
li_upper = lb_cols.TotalItems( )
For li_cnt = 1 to li_upper
	// Is the item selected?  If so, display the text
	If lb_cols.State(li_cnt) = 1 THEN  
		li_querycnt ++
		ls_querycols[li_querycnt] = lb_cols.text(li_cnt)
	End If
Next
li_rc = idw_requestor.inv_querymode.of_SetQueryCols(ls_querycols)

Return 1

end event

     
Name Owner
No Data

     
Name Owner
listbox.state listbox
listbox.text listbox
listbox.totalitems listbox
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_dwsrv_querymode.of_getenabled pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_getresetcriteria pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_getretrieveondisabled pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_setquerycols pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_setresetcriteria pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_setretrieveondisabled pfc_n_cst_dwsrv_querymode
pfc_n_cst_dwsrv_querymode.of_setenabled pfc_n_cst_dwsrv_querymode
pfc_u_tabpg_dwproperty_base.pfc_propertyapply pfc_u_tabpg_dwproperty_base

     
Full name
pfc_u_tabpg_dwproperty_srvquerymode

     
Name Scope
No Data