Can any one tell me how to get to that field?. Like If I want Constituent_id then Here is my code.
Dim objConstituent As CRecord
Set objConstituent = oRecord
objConstituent.Init REApplication.SessionContext Constituent_ID = objConstituent.Fields(RECORDS_fld_CONSTITUENT_ID)
I appreciate any help on this.
I found the solution from blackbaud. Here it is.
Dim oAssignedSolicitors As CAssignedSolicitors2 Dim oAssignedSolicitor As CAssignedSolicitor2 Dim blnSolicitorFound As Boolean Dim strAssignedSolicitor As String strAssignedSolicitor = "" Set oAssignedSolicitors = New CAssignedSolicitors2 With oAssignedSolicitors 'Load the Assigned solicitors for the constituent record .Init REApplication.SessionContext, Val(objConstituent.Fields(RECORDS_fld_ID)), bReadOnly:=True
'Loop through the constituents For Each oAssignedSolicitor In oAssignedSolicitors If Not blnSolicitorFound Then With oAssignedSolicitor If UCase(.Fields(ASSIGNEDSOLICITOR2_fld_SOLICITOR_TYPE)) = "STAFF" Then strAssignedSolicitor = .Fields(ASSIGNEDSOLICITOR2_fld_SOLICITOR_NAME) blnSolicitorFound = True End If .Closedown End With End If Next oAssignedSolicitor Set oAssignedSolicitor = Nothing
.Closedown End With
Set oAssignedSolicitors = Nothing