Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Sunday, July 6, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
7/6/2025 1:29:58 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!
Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix Web Platform & Application Architect
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: 7.5.1 dll for populating datagrid
Ted Szklenski
Posts: 6
7.5.1 dll for populating datagrid
Posted: 07 May 09 2:09 PM
I am compiling a C# dll to populate a datagrid. I want to include the Assigned to but it cannot resolve the property AssignedTo.OwnerDescription. What is the correct way to note it, Code is below:
Sage.Platform.RepositoryHelper
rep = Sage.Platform.EntityFactory.GetRepositoryHelper
();
Sage.Platform.Repository.ICriteria criteria = rep.CreateCriteria();
criteria.Add(rep.EF.Eq("Contact", contact));
criteria.SetProjection(rep.PF.ProjectionList()
.Add(rep.PF.Property("TicketNumber"))
.Add(rep.PF.Property("StatusCode"))
.Add(rep.PF.Property("CreateDate"))
.Add(rep.PF.Property("CompletedDate"))
.Add(rep.PF.Property("UrgencyCode"))
.Add(rep.PF.Property("AssignedTo.OwnerDescription"))
.Add(rep.PF.Property("Account.Account"))
.Add(rep.PF.Property("Subject"))
);
[
Reply
][
Quote
]
Mark Dykun
Posts: 297
Re: 7.5.1 dll for populating datagrid
Posted: 08 May 09 6:20 AM
Ted, I believe that you would need to do a join and then handle your projections with the prefix of the entity name such as;
IQueryable query = (IQueryable)EntityFactory.GetRepository
();
IExpressionFactory expressions = query.GetExpressionFactory();
IProjections projections = query.GetProjectionsFactory();
ICriteria criteria = query.CreateCriteria("account")
.CreateCriteria("Address", "address", JoinType.InnerJoin) <<-- here I add address to my list of projections
.SetProjection(projections.ProjectionList()
.Add(projections.Property("account.Id"))
.Add(projections.Property("account.AccountName"))
.Add(projections.Property("address.Address1"))
.Add(projections.Property("address.City"))
.Add(projections.Property("address.State"))
.Add(projections.Property("address.Country"))
.Add(projections.Property("account.MainPhone"))
).Add(expressions.Eq("account.ResellerID", account.Id));
Mark
[
Reply
][
Quote
]
Ted Szklenski
Posts: 6
Re: 7.5.1 dll for populating datagrid
Posted: 11 May 09 10:41 AM
Thanks, Mark, adding the join worked.
[
Reply
][
Quote
]
Page 1 of 1
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!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 7/6/2025 1:55:20 PM