<% /* Modification History: 3/15 - Added IfColIDIsNull code 6/3/02 - Added davidgaz to the admins array per SandyWe Request. */ var Admins = new Array( "solson", "gabea", "derekmo", "erikt", "sandywe", "toddc", "v-wsugg", "andreva", "sbeer", "a-mattk", "llau", "davidgaz" ) var Testers = new Array( "sbeer", "kiranrk", "alokkar", "solson", "llau" ) var PMs = new Array ( "derekmo", "andreva" , "solson" ) var CompareOperators = { "EQ" : {Text:"Equal to", Sign:"=" }, "GT" : { Text:"Greater Than", Sign:">" }, "LT" : { Text:"Less Than", Sign:"<" }, "GTET" : { Text:"Greater than/Equal to", Sign:">=" }, "LTET" : { Text:"Less than/Equal to", Sign:"<=" }, "NE" : { Text:"Not Equal to", Sign:"<>" }, "IS" : { Text:"Is Null", Sign:"IS NULL" }, "ISN" : { Text:"Is Not Null", Sign:"IS NOT NULL"}, "LK" : { Text:"Like", Sign:"LIKE " }, "CONT" : { Text:"Contains", Sign:"CONTAINS" }, "DNCONT" : { Text:"Does Not Contain", Sign:"DNCONTAINS" } } var SearchFields = { "1" : { Text:"Bucket ID", Value:"BucketID", ValType: "String" }, "2" : { Text:"Has a Full Dump", Value:"bHasFullDump", ValType: "Number" }, "3" : { Text:"Follow Up", Value:"FollowUp", ValType: "String" }, "4" : { Text:"Response ID", Value:"SolutionID", ValType: "Number" }, "5" : { Text:"Bug ID" , Value:"BugID" , ValType: "Number" }, "6" : { Text:"Crash Count" , Value:"CrashCount", ValType: "Number" }, "7" : { Text:"Driver Name" , Value:"DriverName", ValType: "String" }, "8" : { Text:"iBucket" , Value:"iBucket", ValType: "Number" } } var CrashSearchFields = { "1" : { Text:"BucketID" , Value:"BucketID", ValType: "String" }, "2" : { Text:"Build", Value:"BuildNo", ValType: "Number" }, "3" : { Text:"Entry Date", Value:"EntryDate", ValType: "String" }, "4" : { Text:"Email" , Value:"Email" , ValType: "String" }, "5" : { Text:"Description" , Value:"Description", ValType: "String" }, "6" : { Text:"FullDump" , Value:"bFullDump", ValType: "Number" }, "7" : { Text:"Source" , Value:"Source", ValType: "Number" }, "8" : { Text:"SKU" , Value:"sku", ValType: "Number" }, "9" : { Text:"Crash Path", Value:"FilePath", ValType: "String" }, "10" : { Text:"iBucket", Value:"iBucket", ValType: "Number" } } //set this to taket the site down var SiteDown = 0 if ( SiteDown == 0 ) { if ( Application("SiteDown") == 1 ) SiteDown = 1 else SiteDown = 0 } //Server name var g_ServerName = Request.ServerVariables( "SERVER_NAME" ) function trim ( src ) { var temp = new String( src ) var rep = /^( *)/ var rep2 = /( )*$/ var rep3 = /\n/ var temp = temp.replace( rep3, "" ) temp = temp.replace( rep2, "" ) return ( temp.replace( rep, "" ) ) } function SendMail ( Recipients, Subject, MessageText ) { var StrBody var MailObject //MailObject = Server.CreateObject("CDONTS.NewMail") //MailObject.BodyFormat=0 //MailObject.MailFormat=0 //MailObject.Body = "HTML" //MailObject.To = "solson@microsoft.com;" + Recipients //MailObject.From = "OCA/SCP_Build_Lab" //MailObject.subject = subject MessageText=MessageText + "\n" MessageText=MessageText + "\n" MessageText=MessageText + "\n" + "Do not respond to this email, it is automatically generated" MessageText=MessageText + "\n" var CDoObject = Server.CreateObject("CDO.Message") CDoObject.From = "DBGPortal" CDoObject.To = Recipients CDoObject.Cc = "" CDoObject.Subject = Subject CDoObject.TextBody = MessageText CDoObject.Send() } function GetUserAlias() { return Request.ServerVariables( "AUTH_USER" ) } function GetShortUserAlias() { try { var FullAlias = new String( GetUserAlias() ) FullAlias = FullAlias.split( "\\" ) return FullAlias[1].toString() } catch( err ) { return "unknown" } } function isAdmin( sUserAlias ) { return( Admins.find( sUserAlias ) ) } function isTester( sUserAlias ) { return( Testers.find( sUserAlias ) ) } function isPM( sUserAlias ) { return( PMs.find( sUserAlias ) ) } function BuildDropDown(SP, Value, SelectName ) { Response.Write("") } function BuildSingleValueDropDown(SP, Value, SelectName, FirstValue ) { Response.Write("") } function DropDown(SP, Value) { //if ( g_DBConn == null ) //DB_GetConnectionObject( "CRASHDB" ) var g_DBConn = GetDBConnection( Application("SOLUTIONS3") ) //var g_DBConn = GetDBConnection( Application("CRASHDB3") ) try { var List = g_DBConn.Execute( SP ) var dbFields = GetRecordsetFields( List ) if ( !List.BOF ) { while ( !List.EOF ) { if( String(List(dbFields[1])) != String( "null") ) { if ( String(List(dbFields[0])) == String( Value ) ) Response.Write ( "\n" ) else Response.Write ( "\n" ) } List.MoveNext() } } } catch ( err ) { Response.Write( "
" ) Response.Write ("An error occured try to create the drop down list: \n
" ) Response.Write ("Query: " + SP + "
" ) Response.Write( "[" + err.number + "] " + err.description ) } } function SingleValueDropDown(SP, Value) { if ( g_DBConn == null ) //DB_GetConnectionObject( "CRASHDB" ) DB_GetConnectionObject( "SEP_DB" ) try { var List = g_DBConn.Execute( SP ) var dbFields = GetRecordsetFields( List ) if ( !List.BOF ) { while ( !List.EOF ) { if( String(List(dbFields[0])) != String( "null") ) { if ( String(List(dbFields[0])) == String( Value ) ) Response.Write ( "\n" ) else Response.Write ( "\n" ) } List.MoveNext() } } } catch ( err ) { Response.Write( "
" ) Response.Write ("An error occured try to create the drop down list: \n
" ) Response.Write ("Query: " + SP + "
" ) Response.Write( "[" + err.number + "] " + err.description ) } } /* * GetDefaultTableFormat * Ok, the syntax is as follows: * The numbers represent the column order, 1-5 will be displayed in order 1-5 * Column : is hte name of the column from the recordset. * InnerText : What you want to display it like, use %VALUE% to use the value of this column * use %1% to use the value from column 1 etc . . . If you want to use values * from other columsn, you must specify the ReplaceColumn entry * ReplaceColumn : The column to get data from, use just the number * NumberOfColumns : is pretty obvious, you must specify the numbered entries exactly thouhg * TRParams : Anything you want added to the TR tags * NoHeader : If true, won't display the column name at the top * IfNone : If the column is null, then display this instead of NONE * TableParams : Formatting you want on the table tag * AltColor : Color to use if alternating the table cells, default is white with your color * MaxRows : Maximum number of rows to display * THParams : Extra goodies to pu in on the TH line of this column * GlobalTHParams : TH parameters that are global * * eg: "5" : { Column: "Modules", InnerText : "%VALUE%", ReplaceColumn : "1" }, * This will print a link with the value of modules from the recordset as the text * and the value of the #1 column as the href. */ function GetDefaultTableFormat() { var TableFormat = { TableParams : "CELLSPACING=0 CELLPADDING=0", GlobalTHParams : "", NoHeader : false, AltColor : "white", MaxRows : 2000, DisplayRowCount : false, "1" : { Column: "*"}, "2" : { Column: "" } , "3" : { Column: "" }, "4" : { Column: "" }, "5" : { Column: "" }, "6" : { Column: "" }, "7" : { Column: "" }, "8" : { Column: "" }, "9" : { Column: "" }, "10" : { Column: "" }, "11" : { Column: "" }, "12" : { Column: "", InnerText : "", ReplaceColumn : "", TDParams : "", THParams : "", IfNull : "", IfColIDIsNull : "", IFColIDIsNullCode : "" }, NumberOfColumns : 1, "TRParams" : "" } return TableFormat } function printTD( str ) { prints( "" + str + "" ) } function prints( str ) { Response.Write( str + "\n" ) } function Trim( ) { return 1 } function find( strToFind ) { try { var strToFind = new String( strToFind.toLowerCase() ) for ( var element in this ) { var CurrentString = new String( this[element] ) CurrentString = CurrentString.toLowerCase() //if ( String(strToFind).toLowerCase() == String( this[element] ).toLowerCase() ) if ( strToFind == CurrentString ) return true } return false } catch ( err ) { Response.Write("Find Failed") } } //add a find method to the Array object. Array.prototype.find = find function findRemoveColumn( column ) { var tmp = new String( this.RemoveColumns ) var tmp = tmp.split( ";" ) for ( var i=0 ; i < tmp.length ; i++ ) { if ( tmp[i] == column ) return true } return false } function GetRecordsetFields( rs ) { var Fields = new Array() for( var i=0 ; i< rs.fields.count ; i++ ) Fields[i] = rs.fields(i).Name return Fields } function BuildTableFromRecordset( rs, TableFormat ) { var altColor = TableFormat.AltColor; var counter = new Number( 0 ) if ( TableFormat["1"].Column=="*" ) { var rsFields = GetRecordsetFields( rs ) for( var i=1 ; i <= rsFields.length ; i++ ) { TableFormat[String(i)].Column = rsFields[i-1] } TableFormat.NumberOfColumns = i } prints( "" ) if ( !TableFormat.NoHeader ) { for( var i=1 ; i < TableFormat.NumberOfColumns ; i++ ) { var Index = new String(i) if ( TableFormat[Index].Column == "" ) prints( "" ) else { if ( typeof( TableFormat[Index].THName) == "undefined" ) prints( "" ) else prints( "" ) } } } if ( rs.EOF ) prints("" ) while( !rs.EOF && Number(counter) < Number(TableFormat.MaxRows) ) { if ( altColor == TableFormat.AltColor ) altColor = "white" else altColor = TableFormat.AltColor if ( typeof(TableFormat["TRParams"].ReplaceColumn) == "undefined" ) prints( "" ) else { prints ( "") } for( var i=1 ; i < TableFormat.NumberOfColumns ; i++ ) { var Index=new String(i) var TDInnerText = new String() try { var rsVal = new String( rs(TableFormat[Index].Column) ) } catch( err ) { var rsVal = new String( TableFormat[Index].Column ) } if ( TableFormat[Index].Column != "" ) { if ( typeof(TableFormat[Index].TDParams ) != "undefined" ) TDInnerText = "" ) } rs.MoveNext() counter++ prints("") } if ( TableFormat.DisplayRowCount ) Response.Write( "" ) prints("
" + TableFormat[Index].Column + "" + TableFormat[Index].THName + "
No records to display
" else TDInnerText = "" if ( rsVal != "null" ) { if ( typeof( TableFormat[Index].InnerText ) != "undefined" ) { if ( typeof(TableFormat[Index].ReplaceColumn) != "undefined" ) { TDInnerText += ReplaceDataColumn( TableFormat[Index].InnerText, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ), TableFormat[Index].ReplaceColumn, rs(TableFormat[String(i)].Column ) ) } else TDInnerText += TableFormat[String(i)].InnerText } else { TDInnerText +=rs(TableFormat[String(i)].Column) } } else { if ( typeof( TableFormat[Index].IfNull ) == "undefined" ) { TDInnerText += "none" } else { if ( typeof( TableFormat[Index].IfColIDIsNull ) == "undefined" ) { if ( typeof(TableFormat[Index].ReplaceColumn) == "undefined" ) TDInnerText += TableFormat[Index].IfNull else TDInnerText += String( ReplaceDataColumn( TableFormat[Index].IfNull, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ), TableFormat[Index].ReplaceColumn, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ) )) } else { var tmp = new String( rs( TableFormat[TableFormat[Index].IfColIDIsNull].Column )) if ( "null" == tmp ) TDInnerText += TableFormat[Index].IfColIDIsNullCode else { //this chunk of code is the same as above if ( typeof(TableFormat[Index].ReplaceColumn) == "undefined" ) TDInnerText += TableFormat[Index].IfNull else TDInnerText += String( ReplaceDataColumn( TableFormat[Index].IfNull, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ), TableFormat[Index].ReplaceColumn, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ) )) } } } } } else { TDInnerText = "" } prints( TDInnerText + "

Number of Records: " + String(counter) + "
") } function ReplaceDataColumn( dest, src, column, orig ) { var tmp = new String(dest) var tmp2 = new String(orig) if ( tmp2.substr(0,7) == "http://" ) { tmp = "" + TextBreak(tmp2,35) + "" return tmp } else { var regexp=new RegExp( "%" + String(column) + "%" , "g" ) var regexp2=new RegExp( "%VALUE%" , "g" ) tmp = tmp.replace( regexp, Server.URLEncode(String(src)) ) tmp = tmp.replace( regexp2, TextBreak(orig,40) ) } return tmp } function TextBreak( aStrParam, aLength ) { var curPos = 0 var retval = new String("") var aStr = new String(aStrParam) if ( aStr.length < aLength ) retval = aStr else while ( curPos < aStr.length ) { retval += aStr.substr( curPos, aLength ) + "
" curPos += aLength } return retval } function BuildTableFromRecordset2( rs, TableFormat ) { prints( "" ) if ( !TableFormat.NoHeader ) { //first dump all the fields into a TH for( var i = 0 ; i < rs.fields.count ; i++ ) { if ( TableFormat[rs.fields(i).Name] ) { if( !TableFormat[rs.fields(i).Name].Remove ) { if ( typeof( TableFormat[rs.fields(i).Name].InnerText) != "undefined" ) prints ( "" ) else prints ( "" ) } } else prints ( "" ) } } while( !rs.EOF ) { prints( "" ) for( var i=0 ; i < rs.fields.count ; i++ ) { if ( TableFormat[rs.fields(i).Name] ) { if( !TableFormat[rs.fields(i).Name].Remove ) if ( typeof( TableFormat[rs.fields(i).Name].InnerText) != "undefined" ) prints( "" ) else prints( "" ) } else prints( "" ) } rs.MoveNext() prints("" ) } prints( "
" + TableFormat[rs.fields(i).Name].InnerText + "" + rs.fields(i).Name + "" + rs.fields(i).Name + "
" + TableFormat[rs.fields(i).Name].InnerText + "" + rs.fields(i).Value + "" + rs.fields(i).Value + "
" ) } function CreateClauseTable() { var sI var Field var sField //submitted field name, requested from the form post var FieldSelected //the selected field var sConjunction var display var sCompare var op var sValue for ( var i=1 ; i < 9 ; i++ ) { //sField=Request("sField" & sI ) //sCompare=Request("sCompare" & sI ) //sValue=Request("tbSearchValue" & sI ) //sConjunction=Request("sConjunction" & sI ) //if sField <> "" then Display="Block" else Display="none" var Display="none" sI = new String(i) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( "
" + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) //if ( sValue != "" ) //Response.Write( " " + "\n" ) //else Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( "
" + "\n" ) } } function BuildBucketTable( Query, PageSize, Sortable ) { if ( PageSize == "undefined" || isNaN( PageSize ) ) PageSize=25 try { var rsRecordSet = g_DBConn.Execute( Query ) } catch ( err ) { Response.Write("Could not get get recordset (BuildBucketTable(...):
") Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) Response.End } try { var TableFormat = GetDefaultTableFormat() TableFormat.MaxRows=PageSize TableFormat.DisplayRowCount = true TableFormat.TableParams = " CELLSPACING=0 CELLPADDING=0 WIDTH=100% NAME=BucketTable ID=BucketTable " TableFormat["1"].ReplaceColumn = "2" TableFormat["1"].InnerText = "Bucket ID %VALUE%" TableFormat["2"].ReplaceColumn = "2" TableFormat["2"].InnerText = "%VALUE%" TableFormat["3"].TDParams="ALIGN=Center" TableFormat["3"].ReplaceColumn = "3" TableFormat["3"].InnerText = "%VALUE%" //SP=DBGP_GetBucketsBySpecificBuildNumber&Platform=2600&QueryType=1 TableFormat["5"].ReplaceColumn = "5" TableFormat["5"].InnerText = "%VALUE%" TableFormat["4"].TDParams="ALIGN=Center" if ( Sortable != false ) { TableFormat["1"].THParams = "OnClick=\"SortColumn( 'iBucket')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " TableFormat["2"].THParams = "OnClick=\"SortColumn( 'BucketID')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " TableFormat["3"].THParams = "OnClick=\"SortColumn( 'FollowUp')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " TableFormat["4"].THParams = "OnClick=\"SortColumn( 'CrashCount')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " TableFormat["5"].THParams = "OnClick=\"SortColumn( 'BugID')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " TableFormat["6"].THParams = "OnClick=\"SortColumn( 'SolutionID')\" OnMouseOver=\"this.style.backgroundColor='#0099ff'\" OnMouseOut=\"this.style.backgroundColor='#eeeeee'\" " } BuildTableFromRecordset( rsRecordSet, TableFormat ) } catch ( err ) { Response.Write("Could not build table from recordset (BuildBucketTable(...):
") Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) Response.End } } function BuildTableFromRecord( rs, TableFormat ) { var altColor = TableFormat.AltColor; if ( TableFormat["1"].Column=="*" ) { var rsFields = GetRecordsetFields( rs ) for( var i=1 ; i <= rsFields.length ; i++ ) { TableFormat[String(i)].Column = rsFields[i-1] } TableFormat.NumberOfColumns = i } prints( "" ) if ( !TableFormat.NoHeader ) { for( var i=1 ; i < TableFormat.NumberOfColumns ; i++ ) { var Index = new String(i) if ( TableFormat[Index].Column == "" ) prints( "" ) else { if ( typeof( TableFormat[Index].THName) == "undefined" ) prints( "" ) else prints( "" ) } } } if ( rs.EOF ) prints("" ) //while( !rs.EOF ) { if ( altColor == TableFormat.AltColor ) altColor = "white" else altColor = TableFormat.AltColor if ( typeof(TableFormat["TRParams"].ReplaceColumn) == "undefined" ) prints( "" ) else { prints ( "") } for( var i=1 ; i < TableFormat.NumberOfColumns ; i++ ) { var Index=new String(i) var TDInnerText = new String() var rsVal = new String( rs(TableFormat[Index].Column) ) if ( TableFormat[Index].Column != "" ) { if ( typeof(TableFormat[Index].TDParams ) != "undefined" ) TDInnerText = "" ) } //rs.MoveNext() prints("") } prints("
" + TableFormat[Index].Column + "" + TableFormat[Index].THName + "
No records to display
" else TDInnerText = "" if ( rsVal != "null" ) { if ( typeof( TableFormat[Index].InnerText ) != "undefined" ) { if ( typeof(TableFormat[Index].ReplaceColumn) != "undefined" ) { TDInnerText += ReplaceDataColumn( TableFormat[Index].InnerText, rs( TableFormat[TableFormat[Index].ReplaceColumn].Column ), TableFormat[Index].ReplaceColumn, rs(TableFormat[String(i)].Column ) ) } else TDInnerText += TableFormat[String(i)].InnerText } else { TDInnerText +=rs(TableFormat[String(i)].Column) } } else { TDInnerText += "none" } } else { TDInnerText = "" } prints( TDInnerText + "
") } function CreateClauseTable2( SearchFields, CompareOperators, TableName ) { var sI var Field var sField //submitted field name, requested from the form post var FieldSelected //the selected field var sConjunction var display var sCompare var op var sValue for ( var i=1 ; i < 9 ; i++ ) { var Display="none" sI = new String(i) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( "
" + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( " " + "\n" ) Response.Write( "
" + "\n" ) } } function BuildPageJump( TotalPages, PageSpace, SubmitForm ) { Response.Write( "Jump to page: " ) var PageIncrement = parseInt ( TotalPages / 18, 10 ) if ( Number(PageIncrement) == 0 ) PageIncrement=1 for ( var i=1 ; i< TotalPages ; i+= PageIncrement ) Response.Write("" + i + "  \n" ) //Response.Write("" + i + "  \n" ) } function DisplayError( err, msg ) { Prints( "
" ) Prints( "

An error has occured:

" ) Prints( "Please notify the Debug Portal Team
" ) Prints( "please also paste the error message into the mail. Thank you.
" ) if ( String( msg ) != "undefined" ) { Response.Write( msg + "
\n" ) } if ( err != null ) { Response.Write( "[" + err.number + "] " + err.description + "
") if ( DebugBuild ) throw( err ) } Response.Write("Page: " + Request.ServerVariables("SCRIPT_NAME") + "
" ) Response.Write("
Back
\n" ) Prints( "
" ) } function Prints( text ) { Response.Write( text + "\n" ) } function LinkSolutionToBucket( SolutionID, BucketID, iBucket, BucketType ) { var g_DBConn = GetDBConnection( Application("SOLUTIONS3" ) ) Query = "SEP_SetSolvedBucket '" + BucketID + "'," + SolutionID + "," + BucketType try { g_DBConn.Execute( Query ) } catch ( err ) { Response.Write ("Could not execute query SEP_SetSolvedBucket(...)" ) Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) throw( err ) Response.End } try { var g_DBConn = GetDBConnection( Application("CRASHDB3") ) Query = "DBGPortal_UpdateStaticDataSolutionID '" + BucketID + "'," + SolutionID g_DBConn.Execute( Query ) } catch ( err ) { Response.Write ("Could not execute query DBGP_UpdateStaticDataSolutionID(...)" ) Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) throw ( err ) Response.End } try { //DB_GetConnectionObject( "CRASHDB" ) Query = "DBGPortal_SetComment '" + GetShortUserAlias() + "', 9, 'Solution linked by " + GetShortUserAlias() + "','" + BucketID + "'," + iBucket g_DBConn.Execute( Query ) //Response.Write("Attempting to Change comment: " + Query + "
") } catch ( err ) { Response.Write ("Could not execute query DBGP_SetComment(...).
The solution queue/comment could not be updated for this bucket.

" ) Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) Response.End } try { Query = "DBGPortal_SetResponseStatus '" + GetShortUserAlias() + "', 1,'" + BucketID + "'" g_DBConn.Execute( Query ) } catch ( err ) { Response.Write ("Could not execute query DBGP_SetComment(...).
The solution queue/comment could not be updated for this bucket.

" ) Response.Write( "Query: " + Query + "
" ) Response.Write( "[" + err.number + "] " + err.description ) Response.End } } function BuildQuickQuery() { %> Currently viewing buckets per page that are and have <% if ( Param5 != "undefined" & Param5 != "" ) { if ( Param5 != "none" ) Response.Write("and are assigned to") %> <% } else { //Response.Write( "" ) //Response.Write( "" ) } if ( Param6 != "undefined" & Param6 != "" & Param6 != 0 ) { %> for the last days. <% } %>    |    <% } function BuildRSNavigationButtons() { %>
Total Records: <%=TotalRows%>
Move to first page. Move 10 Pages back. Move 1 page back. Page <%=Page%> of <%=TotalPages%> Move 1 page forward. Move 10 pages forward. Move to last page.
<% } %> <% function fnBuildRSResults( rsResults, iMode ) { //iMode is whether or not it is kernel or user // an iMode of 1 is user mode // an iMode of 0 is kernel mode. if( typeof( iMode ) == "undefined" ) iMode = 0 var Fields = GetRecordsetFields( rsResults ) var DisplayedFieldValue //use this if you want to change an item column heading Response.Write( "" ) for ( var i = 0 ; i < Fields.length; i++ ) { switch( Fields[i] ) { case "SolutionID": DisplayedFieldValue = "Response ID" break; case "CrashCount": DisplayedFieldValue = "Crash Count" break; case "iIndex": DisplayedFieldValue = "" break; case "bHasFullDump": DisplayedFieldValue = "FD" break; case "ResponseType": DisplayedFieldValue = "Type" break; case "QueueIndex": DisplayedFieldValue = " " break; case "RequestedBy": DisplayedFieldValue = "By" break; case "BuildNo": Response.Write( "Build" ) DisplayedFieldValue = "SP" break; default: DisplayedFieldValue = Fields[i] } if ( DisplayedFieldValue != "" ) { if ( i == 0 ) Response.Write( "" + DisplayedFieldValue + "" ) else Response.Write( "" + DisplayedFieldValue + "" ) } } Response.Write( "" ) //try //{ var altColor = "sys-table-cell-bgcolor2" if ( rsResults.EOF ) { Response.Write("There are no Buckets that fit the selected criteria.\n" ) } while ( !rsResults.EOF ) { if ( altColor == "sys-table-cell-bgcolor1" ) altColor = "sys-table-cell-bgcolor2" else altColor = "sys-table-cell-bgcolor1" Response.Write("\n") for ( var i = 0 ; i < Fields.length ; i++ ) { switch ( Fields[i] ) { case "CrashTotal": Response.Write("" + rsResults("CrashTotal") + "\n" ) break; case "DriverName": Response.Write("" + rsResults("DriverName") + "\n" ) break; case "FilePath": Response.Write("" + rsResults("FilePath") + "\n" ) break; case "BucketID": Response.Write("" + rsResults("BucketID") + "\n" ) break; case "bHasFullDump": if ( rsResults("bHasFullDump") == "1" ) Response.Write("Yes\n" ) else Response.Write(" " ) break; case "FollowUp": case "FollowUP": Response.Write("" + rsResults("FollowUp") + "\n" ) break; case "iBucket": Response.Write("" + rsResults("iBucket") + "" ) break; case "BugID": if ( String(rsResults("BugID" )).toString() != "null" ) { if( iMode == 0 ) Response.Write( "" + rsResults("BugID") + "\n" ) else Response.Write( "" + rsResults("BugID") + "\n" ) } else Response.Write("None\n" ) break; case "BuildNo": var BuildNumber = new String( rsResults("BuildNo" ) ) var SP = BuildNumber.substr( 4, 4 ) var BuildNumber = BuildNumber.substr( 0, 4 ) Response.Write("" + BuildNumber + "") Response.Write("" + SP + "") break; case "SolutionID": if ( String(rsResults("SolutionID" )).toString() != "null" ) Response.Write("" + rsResults("SolutionID") + "\n" ) else Response.Write("None\n" ) break; case "Source": var Source = new String( rsResults("Source") ) if ( Source == "1" ) Response.Write("Web Site") else if ( Source == "2" ) Response.Write("CER Report") else if ( Source == "0" ) Response.Write("CMD DBG") else if ( Source == "5" ) Response.Write("Manual Upload") else if ( Source == "6" ) Response.Write("Stress Upload") else Response.Write("Unknown[" + Source + "]") break; case "iIndex": LastIndex = new String( rsResults("iIndex" ) ) break; case "Link to Solution": Response.Write("
") Response.Write("") break; case "Reject Solution": Response.Write("") break; case "Create Response": case "CreateResponse": Response.Write("") break; case "szResponse": Response.Write("" + rsResults("szResponse") + "\n" ) break; case "szAltResponse": Response.Write("" + rsResults("szAltResponse") + "\n" ) break; case "Status": var ResType = rsResults("Status") if( ResType == "0" ) Response.Write("Awaiting review\n" ) else if ( ResType == "1" ) Response.Write("Response created\n" ) else if ( ResType == "2" ) Response.Write("Rejected\n" ) else Response.Write("" + ResType + "\n" ) break; case "ResponseType": var ResType = rsResults("ResponseType") if( ResType == "1" ) Response.Write("Solution\n" ) else if ( ResType == "2" ) Response.Write("Response\n" ) else Response.Write("" + ResType + "\n" ) break; default: Response.Write("" + rsResults(Fields[i] ) + "\n" ) } } Response.Write("" ) rsResults.MoveNext() } } function CreateQueryBuilder( BlockName, RunFunction, SaveFunction, BlockFields, Title, RedirASPPage, RedirASPParams ) { %>
METHOD="POST" ACTION="Global_SaveAdvancedQuery.asp">

<%=Title%>

VALUE="Add Clause" OnClick="AddClause( '<%=BlockName%>' )">

Select number of records to display:

  Field Comparison Value Remove Clause
<% CreateClauseTable2( BlockFields, CompareOperators, BlockName ) %>

Order by:

Description:

<% } %>