Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6584 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|
5
'|  _DeleteBaseView.asp
6
'|
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="common/_form_window_common.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_login.asp"-->
24
<%
25
'------------ VARIABLE DEFINITION -------------
26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'--------------------------------------------------------------------------------------------------------------------------
33
Sub DeleteBaseView (view_id)
34
	On Error Resume Next
35
	OraDatabase.Parameters.Add "VIEW_ID",	view_id,	ORAPARM_INPUT, ORATYPE_NUMBER 
36
	objEH.TryORA ( OraSession )
37
	OraDatabase.ExecuteSQL "BEGIN DELETE FROM VIEWS WHERE VIEW_ID = :VIEW_ID; END;"
38
	objEH.CatchORA ( OraSession )	
39
	OraDatabase.Parameters.Remove "VIEW_ID"
40
End Sub
41
'--------------------------------------------------------------------------------------------------------------------------
42
%>
43
<%
44
'**************************** M  A  I  N ******************************
45
' --- Form is Valid ---
46
Call DeleteBaseView(Request("view_id"))
47
 
48
If objEH.Finally Then
49
	Call OpenInWindow ("admin_baseviews.asp")
50
End If
51
'**********************************************************************
52
%>
53
<%
54
'------------ RUN AFTER CODE RUN --------------
55
'----------------------------------------------
56
'----------------------------------------------
57
Call Destroy_All_Objects
58
%>