Quantcast
Viewing all articles
Browse latest Browse all 14708

Re: Hp Defect Module : Defect type specific mandatory Fields

HI Again

 

thank you very much

 

My code looks as follows now :

 

UNder the Bug_MoveTo(this automatically added the  BUG_FieldChange into it :

 

Sub Bug_MoveTo
 On Error Resume Next
     If Bug_Fields("BG_USER_01").Value = "Task" Then
         Bug_Fields("BG_USER_O4").IsRequired = False
       Else
          Bug_Fields("BG_USER_O4").IsRequired = True
       End If
  On Error GoTo 0
End Sub

Sub Bug_FieldChange(FieldName)
  On Error Resume Next
     If Bug_Fields("BG_USER_01").Value = "Task" Then
         Bug_Fields("BG_USER_O4").IsRequired = False
       Else
          Bug_Fields("BG_USER_O4").IsRequired = True
       End If
  On Error GoTo 0
End Sub

 

and under the Bug_FieldChange(FieldName)

 

:

 

Sub Bug_FieldChange(FieldName)
  On Error Resume Next
     If Bug_Fields("BG_USER_01").Value = "Task" Then
         Bug_Fields("BG_USER_O4").IsRequired = False
       Else
          Bug_Fields("BG_USER_O4").IsRequired = True
       End If
  On Error GoTo 0
End Sub

 

Saved the workflow script, closed the editor, logged out ,logged back in, and nothing happens yet. Should I be restarting the server or somehting like that?


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>