8/17/2025 2:30:30 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
error on business rule to get a list of users
Posted: 11 Feb 09 5:08 PM
|
I'm trying to get a list of useres based on department and populate a combobox with them. Here is the code from my business rule:
public static void GetListOfUsersStep1( IAccount account, out System.Collections.Generic.IList result) { IRepository rep = EntityFactory.GetRepository(); IQueryable qry = (IQueryable)rep; IExpressionFactory ef = qry.GetExpressionFactory(); ICriteria crt = qry.CreateCriteria(); crt.Add(ef.Like("User.UserInfo.Department", "%Marketing%")); result = crt.List(); }
I'm getting the following error: NHibernate.QueryException: could not resolve property: User of: Sage.SalesLogix.Security.User
I'm not sure how, or if it is even possible to access the department of the user this way. Does anyone know how to do this? |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|