Community
Showing results for 
Search instead for 
Do you mean 
Reply

How can you set the current Company and Group List

Bronze Super Contributor
Posts: 1,231
Country: USA

How can you set the current Company and Group List

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

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: How can you set the current Company and Group List

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

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: How can you set the current Company and Group List

vivek,

Thanks for the help but I already know how to set the currentContactList.

 

I am looking for a way to set the currentGroupList and the currentCompanyList.

 

-- jim

Nickel Super Contributor
Posts: 441
Country: UK

Re: How can you set the current Company and Group List

[ Edited ]

Hi Jim, never thought I'd see the say where I'd be giving you advice Smiley Happy ....

 

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

Message Edited by tdavis on 08-13-2008 05:05 PM