solution.asp

Last post 08-07-2008, 10:04 AM by dnunnally. 1 replies.
Sort Posts: Previous Next
  •  08-07-2008, 9:58 AM 11407

    solution.asp

    I am moving over some Clarify customizations to solution.asp and need to know how to determine if the solution was from a CASE or CR as shown in the code below.

    Sub Form_Load()
     Me.DoDefault
     ' get object (case or CR) passed to this form
     Dim myRecord As New Record
     Set myRecord = app.GetContext
     If myRecord Is Nothing Then
      ' do nothing
     Else 
      ' if solution created from CR
      If myRecord.RecordType ="bug" Then
       If COBJ_finale_obj.IsNew Then '*** brand new solution ***
        'do something here
       End If   
      ' if case and solution are already linked then disable the Link button
      ElseIf myRecord.RecordType ="case" And solnFlag = TRUE Then
       solnFlag = FALSE
       Dim br As New BulkRetrieve
       Dim brList As List
       br.SetRoot myRecord
       br.TraverseFromRoot 0, "case_soln2workaround"
       br.RetrieveRecords
       Set brList = br.GetRecordList(0)
       If brList.Count = 0 Then
        LINK_DIRECT.Enabled = TRUE
       Else
        LINK_DIRECT.Enabled = FALSE
       End If  
       End If
     End If
     Call Soln_Addon()
    End Sub

  •  08-07-2008, 10:04 AM 11408 in reply to 11407

    Re: solution.asp

    Nevermind, believe I found it - strContextType!
View as RSS news feed in XML