
Question: I’m attempting to create filters that will show certain types of contacts under the Contacts tab of an Account in SalesLogix.
I created a tab that only listed Contact type = Patient:
criteria.Add(ef.Eq(“Account.
criteria.Add(ef.Eq(“Type”,”
I created a second tab, in an attempt to show all contacts that do not have the type
Patient, if the Contact type is listed as Null it will not be shown:
criteria.Add(ef.Eq(“Account.
criteria.Add(ef.Ne(“Type”,”
I added: criteria.Add(ef.Disjunction().
This only returns a blank list. How do I add an “or” statement?
To combine a number of expressions with “or”, use the IJunction interface:
Sage.Platform.Repository.
if (weWantToAndThisExpression)
{
junction = ef.Conjunction(); // AND
}
else
{
junction = ef.Disjunction(); // OR
}
ICriteria.Add(junction
.Add(ef.Eq(“Account”, account))
.Add(ef.Eq(“IsPrimary”, true)))
.List();
You can try something like this:
criteria.Add(ef.Eq(“Account.
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!