Community
Showing results for 
Search instead for 
Do you mean 
Reply

Creating an iActivityFilterCriteria Class

Astute Commentator
Posts: 168
Country: United States

Creating an iActivityFilterCriteria Class

Does anyone have a sample code on how to create an iActivityFilterCriteria Class?

 

I have created the one below but I'm getting quite a few errors.

 

T

 

Public Class ActivityFiltersByAccessor
    Implements Act.Framework.Activities.IActivityFilterCriteria

    Private SQLClause As String

    Public Sub New(ByVal strID As String)
        SQLClause = "AA.ACCESSORID IN ('" & strID & "')"
    End Sub

    Public Function GetClause() As String Implements Act.Framework.Activities.IActivityFilterCriteria.GetClause
        Return SQLClause
    End Function
    Public Function IsDB() As Boolean Implements Act.Framework.Activities.IActivityFilterCriteria.IsDB
        Return True
    End Function
End Class

Employee
Posts: 1,163
Country: USA

Re: Creating an iActivityFilterCriteria Class

Hi Thatch,

 

I responded to your email with this already, but thought I'd post it here as well. I don't have a example of an class that inherits from IActivityFilterCriteria, but when I implement the interface in a new type in VS I get the following:

 

 class Class2 : IActivityFilterCriteria
    {

        #region IActivityFilterCriteria Members

        public ActivityFieldDescriptor[] Fields
        {
            get { throw new NotImplementedException(); }
        }

        public bool IsDB()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IFilterCriteria Members

        public string GetClause()
        {
            throw new NotImplementedException();
        }

        #endregion
    }

 

Looks as though the only thing missing from your sample is the collection property.

Matthew Wood
Act! SDK Support
Community Moderator
Astute Commentator
Posts: 168
Country: United States

Re: Creating an iActivityFilterCriteria Class

Thanx. I'll test it and get back to you.

 

I am getting into the guts of programming with ACT! and I'm finding myself getting into areas that, from my standpoint, I've never entered before. That's why all the questions....

 

T