05-21-2013 05:09 PM
Hi,
I am attempting to develop my own framework application that needs to read the current lookup in ACT and I cannot seem to get it to work.
I've built a small VB application that has options to lookup the complete contact list or the current lookup. The complete contact list works fine but I cannot get the current lookup to work.
Please can someone help, this is driving me insane. I have scoured this message board but have only found references to an older version of ACT that doesn't work.
Many thanks
Jon
05-21-2013 06:34 PM
The ACTAPP is oly available if you are a plugin. It will ne null if you are standalone.
Check out this post but remove the references to the ACTAPP
'Perform Lookup
Dim cColumn3 As CriteriaColumn
Dim cColumn1 As CriteriaColumn
Dim cColumn2 As CriteriaColumn
Dim oOperator1 As OperatorEnum
Dim sValue3 As String
Dim sValue1 As String
Dim sValue2 As String
Dim cLookup As ContactLookup
Dim cList As ContactList
05-21-2013 05:51 PM
05-21-2013 05:55 PM
Hi Jim
See below
Dim CurList As ContactList = ActApp.ApplicationState.CurrentContactList
Dim i As Integer = 0
Dim LeCount As Integer = CurList.Count
Dim SimpleContactList
For i = 1 To LeCount
SimpleContactList = SimpleContactList & CurList.Item(i - 1).FullName
SimpleContactList = SimpleContactList & vbCrLf
Next
MsgBox(SimpleContactList)
the ActApp bit is not recognised in visual studio
05-21-2013 06:34 PM
The ACTAPP is oly available if you are a plugin. It will ne null if you are standalone.
Check out this post but remove the references to the ACTAPP
'Perform Lookup
Dim cColumn3 As CriteriaColumn
Dim cColumn1 As CriteriaColumn
Dim cColumn2 As CriteriaColumn
Dim oOperator1 As OperatorEnum
Dim sValue3 As String
Dim sValue1 As String
Dim sValue2 As String
Dim cLookup As ContactLookup
Dim cList As ContactList
05-22-2013 01:38 AM
05-22-2013 10:58 AM
05-22-2013 11:09 AM
05-23-2013 07:13 AM
My guess based on the exceptions you're now getting is that you've not instantiated your own ActFramework object.
ActFramework ActFwk= new ActFramework();
and then logon
ActFwk.LogOn(username, password, padFile);
05-23-2013 07:23 AM
Thanks, I'll try that.