Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| _RevokeRole |'| |'=====================================================%><%Option explicitResponse.Expires = 0%><!--#include file="common/globals.asp"--><!--#include file="common/config.asp"--><!--#include file="common/common_subs.asp"--><!--#include file="common/_code_behind_common.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ VARIABLE DEFINITION -------------'------------ CONSTANTS DECLARATION -----------'------------ VARIABLE INIT -------------------'------------ CONDITIONS ----------------------'----------------------------------------------%><%'--------------------------------------------------------------------------------------------------------------------------Sub RevokeRole ()On Error Resume NextOraDatabase.Parameters.Add "ROLE_ID_LIST", Request("role_id_list"), ORAPARM_INPUT, ORATYPE_VARCHAR2OraDatabase.Parameters.Add "USER_ID", Request("user_id"), ORAPARM_INPUT, ORATYPE_NUMBERobjEH.TryORA ( OraSession )OraDatabase.ExecuteSQL _"BEGIN pk_Role.Revoke_Role ( :ROLE_ID_LIST, :USER_ID ); END;"objEH.CatchORA ( OraSession )OraDatabase.Parameters.Remove "ROLE_ID_LIST"OraDatabase.Parameters.Remove "USER_ID"End Sub'--------------------------------------------------------------------------------------------------------------------------%><%'**************************** M A I N ******************************' --- Form is Valid ---Call RevokeRole()If objEH.Finally ThenCall OpenInWindow ( Request("rfile") &"?"& objPMod.ComposeURL() )End If'**********************************************************************%><%'------------ RUN AFTER CODE RUN --------------'----------------------------------------------%><!--#include file="common/globals_destructor.asp"-->