Community
Showing results for 
Search instead for 
Do you mean 
Reply

Setting the CurrentCompanyList

Nickel Super Contributor
Posts: 352
Country: Canada

Setting the CurrentCompanyList

Is there a way to set the CurrentCompanyList similar to the SetCurrentContactList method on the ActApplication.ApplicationState's method?

 

I would like to set the CurrentCompanyList without necessarily using a Lookup - reason is I want to trap the current CompanyLookup and take a subset of those Companies and display them.

 

Is there a method for this or a way to exclude certain companies from the CurrentCompanyList?

 

Thanks,

Len

Len Kamerman
ACT! Certified Consultant

Act E-mail Marketing Trainining Course:

http://actsoftware.training
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Setting the CurrentCompanyList

Hi Len,

 

The Act.UI.ActApplicationState.CurrentCompanyList is a get/set property so you should be able to do something like

 

oActApp.ApplicationState.CurrentCompanyList = myCompanyList;

 

HTH

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Employee
Posts: 1,163
Country: USA

Re: Setting the CurrentCompanyList

Vivek is spot on, we can narrow the lookup via FilterCriteria and then assign our lookup as the CurrentCompanyList.

Matthew Wood
Act! SDK Support
Community Moderator
Nickel Super Contributor
Posts: 352
Country: Canada

Re: Setting the CurrentCompanyList

Thanks Vivek and Mike!

 

I have to learn to make less assumptions about the SDK.  I didn't even think to try this because there's a SetCurrentContactList method, which led me to believe you can't set the CurrentContactList property and likewise for its Company counterpart.

 

This makes my day!

Len

Len Kamerman
ACT! Certified Consultant

Act E-mail Marketing Trainining Course:

http://actsoftware.training