Community
Showing results for 
Search instead for 
Do you mean 
Reply

IsCurrentContactQueryAllContacts public var

Bronze Super Contributor
Posts: 1,231
Country: USA

IsCurrentContactQueryAllContacts public var

 

Shouldn't IsCurrentContactQueryAllContacts be TRUE by default? On startup its set to FALSE.

This.ActApplication.ApplicationState.IsCurrentContactQueryAllContacts

-- Jim Durkin

Employee
Posts: 1,163
Country: USA

Re: IsCurrentContactQueryAllContacts public var

That certainly sounds reasonable and perhaps it should be the case. I can think of a reason this may be the case, but I'm unclear on whether this is the desired behavior. I'll look into it and let you know what I find out.

Matthew Wood
Act! SDK Support
Community Moderator
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: IsCurrentContactQueryAllContacts public var

[ Edited ]

Upon further research I found that the initial query on startup is set to a SimpleContactQuery. It has a enum property of

SimpleContactQuery.ContactQueryType.All

SimpleContactQuery.ContactQueryType.MyRecord

SimpleContactQuery.ContactQueryType.Other

SimpleContactQuery.ContactQueryType.Users

 

 

So "ALL" can be found by casting the ACTApplication.ApplicationState.CurrentContactQuery as 

Act.UI.UILookupManager.SimpleContactQuery then reading the SimpleContactQueryType property.

 

But it does seem that the IsCurrentContactQueryAllContacts should still be set to TRUE on startup

 

Thanks

-- JimDurkin