Guides (SDK /API)Technical ReferenceBBDNHow-to Documentation

You are here: Custom Parts Example: Constituent Search > Procedure for Display

Procedure for Display

Code sample project: Custom Individual (Blackbaud CRM Constituent) Search

Add code to display constituent information.

    Private Sub DisplayIndividualInformation(ByVal ConstituentSummary As Blackbaud.AppFx.Constituent.Catalog.WebApiClient.ViewForms.Constituent.ConstituentSummaryProfileViewFormData,
                                             ByVal ConstituentName As Blackbaud.AppFx.Constituent.Catalog.WebApiClient.ViewForms.Constituent.ConstituentFirstNameLastNameViewFormData)
        'Display consituent name and summary information. The information is passed
        'to this procedure.
        If ConstituentName.FIRSTNAME <> "" Then
            LabelName.Text = ConstituentName.FIRSTNAME.ToString + " " + ConstituentName.KEYNAME.ToString
        Else
            LabelName.Text = ConstituentName.KEYNAME + " (last name only)"
        End If
        If ConstituentSummary.PHONENUMBER <> "" Then
            LabelPhone.Text = ConstituentSummary.PHONENUMBER.ToString
        Else
            LabelPhone.Text = "No phone number listed"
        End If
        If ConstituentSummary.EMAILADDRESS <> "" Then
            LabelEmail.Text = ConstituentSummary.EMAILADDRESS.ToString
        Else
            LabelEmail.Text = "No email address listed"
        End If

    End Sub