Share this page

# 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

https://admhelp.microfocus.com ALM 8942
Tips to improve your search results... ALM Help Center ALM Help Center ALM Help 16.00-16.0.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: