Subversion Repositories DevTools

Rev

Rev 62 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                 RequestReleaseCombo.asp       |
'|                                                   |
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0    ' always load the page, dont store
%>
<!--#include file="common/config.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->

<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_rtree_common.asp"-->
<%
'------------ Variable Definition -------------
Dim rsQry
Dim OutString
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------------------------------------------
'------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------------------ MAIN LINE ---------------------------------
If (Request("proj_id")="") Then
        Response.write "ERROR: Missing Parameters at "& ScriptName
End If
'--------------------------------------------------------------------
%>

        <%
        OraDatabase.Parameters.Add "PROJ_ID",   Request("proj_id"),     ORAPARM_INPUT, ORATYPE_NUMBER 
        OraDatabase.Parameters.Add "BRANCH_ID",         NULL,   ORAPARM_INPUT, ORATYPE_NUMBER 
        
        Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
        
        OraDatabase.Parameters.Remove "PROJ_ID"
        OraDatabase.Parameters.Remove "BRANCH_ID"
        
        
        OutString = NULL
        
        
        While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
                OutString = OutString & rsQry("branch_name") &"|-|"& rsQry("branch_id") &"|-|"& rsQry("selected") &"|+|"
                rsQry.MoveNext
        WEnd
        
        
        If NOT IsNull( OutString ) Then
                ' Remove last ;
                OutString = Left( OutString, Len(OutString) - 3 )
        End If
        
        rsQry.Close
        Set rsQry = Nothing
        
        ' Render output
        Response.write OutString
        %>
          
<%
Call Destroy_All_Objects
%>