Creating the Method to Call the Dialog

You need first to create the method, and then to add it to the property tab to create a button for calling the dialog.

  1. Right-click the User metaclass and select New > Method.
  2. Name the new method ShowAdvancedExtendedAttributes, and then click the Method Script tab and enter the following script:
    Sub %Method%(obj)
     ' Show custom dialog for advanced extended attributes 
     Dim dlg
     Set dlg = obj.CreateCustomDialog("%CurrentTargetCode%.Advanced Teradata Attributes")
     If not dlg is Nothing Then
      dlg.ShowDialog()
     End If
    End Sub
  3. Select the Teradata property tab in the ProfileUserForms folder, click the Method Push Button tool in the Form tab toolbar, select the new method, and then click OK to add it to the form.
  4. Enter Advanced... in the Label field, and then click Preview to see the new button at the bottom of the property tab: