08-12-2008 01:57 PM
Does anybody know a way to set the current company and/or group list.
There are currently two function to set Contacts and Opportunity list
ACTAPP.ApplicationState.SetCurrentContactList(cContactList, nothing)
ACTAPP.ApplicationState.SetCurrentOpportunityList(cOpportunityList, nothing)
If not can you add those two functions into the SDK?
ACTAPP.ApplicationState.SetCurrentCompanyList(cCompanyList, nothing)
ACTAPP.ApplicationState.SetCurrentGroupList(cGroupList, nothing)
thanks
-- jim durkin
08-13-2008 03:04 AM
Hi Jim,
Is it possible to try:
IContactSource iSource = actApp.ActFramework.Lookups.LookupContacts(cList);
actApp.ApplicationState.SetCurrentContactList(cList,iSource);
Sorry its in c# but hopefully you get the gist. I haven't tried it myself but unless the LookupManager.LookupContacts(cList) actually does return the cList as a IContactSource and not just the cList's own OContactSource I do not anticipate an issue?
Let me know how if this helps.
Vivek
08-13-2008 08:23 AM
08-13-2008 09:02 AM - edited 08-13-2008 09:05 AM
Hi Jim, never thought I'd see the say where I'd be giving you advice ....
From what I remember the current company list and current group list are writeable properties unlike current contact list so you could just say
ActApp.ApplicationState.CurrentGroupList = glist
ActApp.UiGroupManager.ShowGroupDetailView
Please excuse any typos I don't have intelisense to hand.
Tom