Other HPE Product Questions

Defect buttons not working after Bug_FieldCanChange

 
lisa777
Occasional Visitor

Defect buttons not working after Bug_FieldCanChange

Hi,

I put the following code into Bug_FieldCanChange function. 

I would like for the Description field to be disabled (no changes) when Defect Status is changed from "New".

It's sort of working.  When the msgbox is not commented out, it pops up when Submit is clicked, but you can't close it.  When there is no message, the Submit/Cancel buttons on defect do not work.

What am I missing?

Function Bug_FieldCanChange(FieldName, NewValue)

Bug_FieldCanChange = DefaultRes
On Error Resume Next

If Bug_Fields.Field("BG_STATUS").value<>"New" and FieldName ="BG_DESCRIPTION" then
Bug_FieldCanChange = False
'MsgBox "You cannot change description at this time"
Exit Function
Else
Bug_FieldCanChange = DefaultRes
End If

On Error GoTo 0

End Function

3 REPLIES 3
Parvez_AL
Community Manager

Re: Make field required based on BG_DETECTED_IN_RCYC AND BG_USER_02

@lisa777 

Can you tell me which HPE product you are referring to so that i can put it to the right board.

Thank you


Thanks,
Parvez_AL
I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
CM_Cert_Logo_Color.png
lisa777
Occasional Visitor

Re: Make field required based on BG_DETECTED_IN_RCYC AND BG_USER_02

Apologies.  I noticed this was in the wrong board, but I wasn't sure how to change it. 

I'm using ALM 15.

Thank you.

Parvez_AL
Community Manager

Re: Make field required based on BG_DETECTED_IN_RCYC AND BG_USER_02

@lisa777 

ALM is part of a different company, Micro Focus. So you will need to repost your question to the Micro Focus Community at https://community.softwaregrp.com/ 


Thanks,
Parvez_AL
I work for HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
CM_Cert_Logo_Color.png