of_setsecurity


pfcapsrv.pbl   >   pfc_n_cst_security   >   of_setsecurity   

Full name pfc_n_cst_security.of_setsecurity
Access public
Extend of boolean
Return value boolean
Prototype public function boolean of_setsecurity(datawindow)

Name Datatype
No Data

Name Datatype
li_rc integer
ls_dwname string

public function boolean of_setsecurity (datawindow adw_obj);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_SetSecurity
//
//	Access:		public
//
//	Arguments: 
//	aw_dw 		Datawindow to the security set for
//
//	Returns:		Boolean
//					True if security was set otherwise false
//
//	Description:  Sets the security for the passed datawindow. 
//					It only uses the security that has been specified 
//					for the dataobject as a seperate object in the security tables
//
//	Note:  This function can be used to secure dynamically created datawindows objects
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

string		ls_dwname
integer     li_rc

// check arguments
If IsNull(adw_obj) or Not IsValid(adw_obj) Then Return False

// check if security was set
if not ib_initsecurity then return false

ls_dwname = adw_obj.dataobject
if len(ls_dwname) = 0 then return false

IF of_LoadSecurity(ls_dwname) < 1 then return false

of_SetDatawindowColumns ( adw_obj )

return true


end function

     
Name Owner
No Data

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.len systemfunctions
pfc_n_cst_security.of_loadsecurity pfc_n_cst_security
pfc_n_cst_security.of_setdatawindowcolumns pfc_n_cst_security

     
Full name
No Data

     
Name Scope
No Data