Rev 13 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| |'| RequestReleaseCombo.asp |'| |'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.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 rsQryDim OutString'------------ Constants Declaration -----------'------------ Variable Init -------------------'----------------------------------------------%><%'------------------------------------------------------------------------------------------------------------------------'------------------------------------------------------------------------------------------------------------------------%><%'------------------------ MAIN LINE ---------------------------------If (Request("branch_id")="") ThenResponse.write "ERROR: Missing Parameters at "& SCRIPT_NAMEEnd If'--------------------------------------------------------------------%><%OraDatabase.Parameters.Add "BRANCH_ID", Request("branch_id"), ORAPARM_INPUT, ORATYPE_NUMBEROraDatabase.Parameters.Add "BOM_ID", NULL, ORAPARM_INPUT, ORATYPE_NUMBERSet rsQry = OraDatabase.DbCreateDynaset( GetQuery("SBOMCombo.sql"), cint(0))OraDatabase.Parameters.Remove "BRANCH_ID"OraDatabase.Parameters.Remove "BOM_ID"OutString = NULLWhile ((NOT rsQry.BOF) AND (NOT rsQry.EOF))OutString = OutString & rsQry("version") &"|-|"& rsQry("bom_id") &"|-|"& rsQry("selected") &"|+|"rsQry.MoveNextWEndIf NOT IsNull( OutString ) Then' Remove last ;OutString = Left( OutString, Len(OutString) - 3 )End IfrsQry.CloseSet rsQry = Nothing' Render outputResponse.write OutString%><%Call Destroy_All_Objects%>