Example: Changing Tab Names

You can change the names of the tabs on the Add Defect dialog box. This example sets the tabs to General, Environments, and Business Case.

Add the following code to the GetNewBugPageName event procedure, which is triggered before ALM opens the Add Defect dialog box. To change the tab names on the Defect Details dialog box, add similar code to the Defects_GetDetailsPageName event procedure.

Sub Bug_New
	On Error Resume Next
		
		Bug_Fields.Field("BG_ACTUAL_FIX_TIME").PageNo = 1
		Bug_Fields.Field("BG_ESTIMATED_FIX_TIME").PageNo = 2
	
	On Error GoTo 0
End Sub

Function GetDetailsPageName(PageName,PageNum)
On Error Resume Next

if ActiveDialogName = "New Bug" then
	Select case PageNum
		case "1"
			GetDetailsPageName="General"
		case "2"
			GetDetailsPageName="Environments"
		case else
			GetDetailsPageName="Business Case"
	End Select
end if

On Error GoTo 0
End Function