Add fields to tabs

To add fields to tabs:

  1. In "QC - Project Customization", click Workflow > Script Editor.
  2. Select Defects module script.

  3. If WizardFieldCust_Details and WizardFieldCust_Add are not found in the list, do the following to generate these two methods.

    1. Script Generator - Add Defect Field Customization
    2. Script Generator - Defect Details FieldCustomization

  4. Add the following code to the WizardFieldCust_Details event procedure.

    SetFieldApp "BG_USER_XX", True, False, 1, 0
    SetFieldApp "BG_USER_XY", True, False, 1, 1

    The parameters are:

    • Field name (BG_USER_XX, where XX consists of two digits)
    • Visible (True)
    • Required (False)
    • Page number (start from 0)
    • View order (start from 0)
  5. Add the following code to the WizardFieldCust_Add event procedure.

    SetFieldApp "BG_USER_XX", True, False, 1, 0
    SetFieldApp "BG_USER_XY", True, False, 1, 1
  6. Set the Readonly fields by adding the following lines to the Bug_New and Bug_Moveto subroutines:

    if (Bug_Fields("BG_USER_XX").Value="Y") then
      Bug_Fields("BG_USER_XX").IsReadOnly=True
    end if
    Bug_Fields.Field("BG_USER_XY").IsReadOnly=True 

    The if loop above marks the field “Synchronize with SM Problem” as read-only after selected and saved.

  7. Save your changes.