We are a group of users of Blackbaud products and are not affiliated with Blackbaud. We'd love to have you join our community to help and be helped in getting the most from your Blackbaud software.
Register now to join us to get independant advice on your system, connect with 3rd party consultants to help you maximize your database and have a real alternative to the official Blackbaud website.
Creating grid using API to view Education Attributes
Hello,
Can any one help with this. I'm writing code to view only education attributes. I am unable to do so. Currently I have code that does display Constiuent Attributes. How do I change this to display Education Attribues? Please Help. Frustrated again:
PrivateSub PopulateGrid() _dgvedAttributes.Rows.Clear() Dim ats AsNew CAttributeTypeServer ats.Init(AppSession.CurrentHost.SessionContext) ForEach attr As IBBAttribute In _rec.Attributes With attr Dim newRow AsString() = { _ .Fields(EattributeFields.Attribute_fld_ATTRIBUTETYPES_ID), _ ats.GetAttributeTypeDescription(.Fields(EattributeFields.Attribute_fld_ATTRIBUTETYPES_ID)), _ .Fields(EattributeFields.Attribute_fld_VALUE), _ .Fields(EattributeFields.Attribute_fld_ATTRIBUTEDATE), _ .Fields(EattributeFields.Attribute_fld_COMMENTS)} _dgvedAttributes.Rows.Add(newRow)
EndWith ReleaseComObject(attr) Next ReleaseComObject(ats) EndSub
Not sure from your example, but I would bet it's going to depend on what your "_rec" object is... if it's a constit, you're gonna get constit attributes. If it's an education relationship, you'll get what you want.