* @throws java.lang.Exception
*/
public void setContactFilter(String filter, SelContactType.ContactType contactType) throws Exception {
switch (contactType) {
case CT_CONTACT :
ContactsRemote contactManagement = (ContactsRemote)ClientTools.getRemoteBean(ContactsRemote.class);
this.setContacts(contactManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
break;
case CT_CUSTOMER :
CustomersRemote customerManagement = (CustomersRemote)ClientTools.getRemoteBean(CustomersRemote.class);
this.setContacts(customerManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
break;