08-19-2010 02:49 PM
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
08-19-2010 11:17 PM
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
08-20-2010 06:49 AM
Vivek is spot on, we can narrow the lookup via FilterCriteria and then assign our lookup as the CurrentCompanyList.
08-20-2010 08:27 AM
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