wierd dropdown problem
Im using a second status dropdown so that I can change the list dynamicly. The BG_STATUS dropdown is synchronized with CQ.
The code is like this
1.'sets my custom dropdown to same value as BG_STATUS
2.Bug_Fields("BG_USER_04").Value = Bug_Fields("BG_STATUS").Value
3.'sets custom dropdown to readonly by default
4.Bug_Fields("BG_USER_04").IsReadOnly = true
5.'if status is Fixed then set readonly to false and change the list
6.if Bug_Fields("BG_USER_04").Value = "Fixed" then
7.Bug_Fields("BG_USER_04").IsReadOnly = false
8.Bug_Fields("BG_USER_04").List = Lists("Bug Status2")
This works as it should do but the problem is
that the custom dropdown doesnt becomes a dropdown. It looks like a normal field with selected value.
1. If I set IsReadonly to false on line 4 then it becomes a dropdown as it should.
2. If I open another defect where the dropdown IS a dropdown and then closes it and open the one that it didnt work on it shows a dropdown as it supposed to do.
Why do I get this wierd problem?
Re: wierd dropdown problem
Change line 6 to the following:
If FieldName ="BG_USER_04" and Bug_Fields.Field("BG_USER_04").Value="Fixed" then