Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
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 ThreadView:  Search:  
 Author  Thread: 1:1 relationships - possible at all?
NixDev
Posts: 98
 
1:1 relationships - possible at all?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 7:55 AM
fiogf49gjkf0d


I have a quick question for you guys, it really looks like i'm drowning into a glass of water, but i'm not sure how to properly solve this.


I want to create a 1:1 relationship that is NOT an extension entity. Say, for example, i want to create a relationship from activity to opportunity, so that I can navigate like activity.Opportunity.Satus. Unfortunately i see no way of doing this using proper relationships without turning Opportunity an extension entity of activity, which makes no sense. A a possible workaround would be to create a calculated property in Activity called "Opportunity", which would do something like:


result = Sage.Platform.EntityFactory.GetById<Sage.Entity.Interfaces.IOpportunity>(activity.OpportunityId);


I'm wondering if there's an easier way of doing this. Creating calculated properties for each of my 1:1 (non extension) relationships looks like overkill.


Any ideas? I'd really appreciate your insight into this.


[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: 1:1 relationships - possible at all?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 8:12 AM
fiogf49gjkf0d

Can you not just make (in your example) the Opportunity a Many to One off Activity?

[Reply][Quote]
NixDev
Posts: 98
 
Re: 1:1 relationships - possible at all?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 8:57 AM
fiogf49gjkf0d

Well, i guess i could, then i would have activity.Opportunity on one side of the relationship and Opportunity.Activities on the other side. There should be an easier way of doing this, though. Sometimes you do legitimately need a 1:1 relationship which is not an extension.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: 1:1 relationships - possible at all?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 10:14 AM
fiogf49gjkf0d

Take a look at how the Account Manager and Owner properties are created from the Account (Contact or Opportunity).


 


In your case, if you think about it, from the Opportunity to the Activity, it is a One to Many relationship, because technically you could have multiple Activities pointing to it.


 


Mike's suggestion is the way to go.

[Reply][Quote]
NixDev
Posts: 98
 
Re: 1:1 relationships - possible at all?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Feb 12 12:53 PM
fiogf49gjkf0d

Thanks for your kind replies. I'll follow your advice then Laughing

[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 | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 10:10:22 AM