Subversion Repositories DevTools

Rev

Rev 5506 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
5268 dpurdie 4
'|
5
'|  RequestReleaseMoveCombo.asp
6
'|
119 ghuddy 7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0	' always load the page, dont store
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<%
20
'------------ Variable Definition -------------
21
Dim rsQry
22
Dim OutString
23
'------------ Constants Declaration -----------
24
'------------ Variable Init -------------------
25
'----------------------------------------------
26
%>
27
<%
28
'------------------------------------------------------------------------------------------------------------------------
29
'------------------------------------------------------------------------------------------------------------------------
30
%>
31
<%
32
'------------------------ MAIN LINE ---------------------------------
33
If (Request("proj_id")="") Then
34
	Response.write "ERROR: Missing Parameters at "& ScriptName
35
End If
36
'--------------------------------------------------------------------
37
%>
38
 
39
	<%
40
	OraDatabase.Parameters.Add "PROJ_ID", 	Request("proj_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
41
	OraDatabase.Parameters.Add "RTAG_ID", 	Request("rtag_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
42
 
43
	Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesMoveCombo.sql"), cint(0))
44
 
45
	OraDatabase.Parameters.Remove "PROJ_ID"
46
	OraDatabase.Parameters.Remove "RTAG_ID"
47
 
48
 
49
	OutString = NULL
50
 
51
 
52
	While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
53
		OutString = OutString & rsQry("rtag_name") &"|-|"& rsQry("rtag_id") &"|+|"
54
		rsQry.MoveNext
55
	WEnd
56
 
57
 
58
	If NOT IsNull( OutString ) Then
59
		' Remove last ;
60
		OutString = Left( OutString, Len(OutString) - 3 )
61
	End If
62
 
63
	rsQry.Close
64
	Set rsQry = Nothing
65
 
66
	' Render output
67
	Response.write OutString
68
	%>
69
 
70
<%
71
Call Destroy_All_Objects
72
%>