Search code examples
almhp-quality-centerhp-alm

HPQC ALM - How to make TC_PLAN_SCHEDULING_DATE Read Only


I am trying to make "Planned Exec Date" field read only inTest Lab --> Execution Grid.

In Test Lab Module script --> TesSetTests_FieldCanChange Sub, I have added the following code:

TestSetTest_Fields.Field("TC_PLAN_SCHEDULING_DATE").IsReadOnly = True 

But still date can be changed and added by writing in the field or choosing from calendar.

How do I make this field read only?

Thanks.

Sohel


Solution

  • I was able to resolve the problem by putting the code into TestSetTests_MoveTo sub.

    Sub TestSetTests_MoveTo
      On Error Resume Next
      TestSetTest_Fields.Field("TC_PLAN_SCHEDULING_DATE").IsReadOnly = True
    End Sub