Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, July 2, 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: EntityFactory.GetById
JJE
Posts: 20
 
EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Oct 09 2:53 AM
Hi,

I'm new in SLX web and I tried to create a new UI web site.
On the default page load I used the following instruction to get a ticket object :

ITicket _ticket = Sage.Platform.EntityFactory.GetById<ITicket>(_TicketID);

_TicketID is a valid ID
but I get a 'null' in _ticket

What's wrong?

Thanks,
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Oct 09 12:38 AM
Could it be that the current user does not have access to the ticket?
[Reply][Quote]
JJE
Posts: 20
 
Re: EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Oct 09 12:04 PM
Hi,

Here's what I did:
I copied the Web.config and connection.config from the lead capture site and this is now working...
but I also created an extension entity called TicketSurvey for tickets and I have the following problem:
I use this instruction to check if data exists in the extension table correponding to the current ticket
ITicketSurvey _survey = Sage.Platform.EntityFactory.GetById(_TicketID);
it works bur if I get a null objct, I try to create a survey like this:
ITicketSurvey _newsurvey = Sage.Platform.EntityFactory.Create();
and get the following error:
Exception Details: System.ArgumentException: Could not find the dynamic method TicketSurvey.OnCreate. Check you method configuration to ensure that this method exists.

Source Error:
Line 628: lib.Execute("TicketSurvey.OnCreate", methodArgs);

When I compile my platform everything went well, I sometimes get the following when I go to my portal configuration advanced tab:
WARN - Could not load type 'Sage.Entity.Interfaces.ITicketSurvey' from assembly 'Sage.Entity.Interfaces, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

What is the problem?


[Reply][Quote]
JJE
Posts: 20
 
Re: EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Nov 09 6:54 AM
It seems that this is happening on every new Interfaces that I create.

I just created the interface on an existing table and compiled.
Is there anything else required?

Any ideas?

Thanks,
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Nov 09 2:33 PM
I would suggest you do a full Rebuild.

Also, keep an eye out for errors.
If you get errors while the Entities are built, it will just continue the build with the previous version of the DLL that are in place, so you may not notice it during rebuild.



[Reply][Quote]
JJE
Posts: 20
 
Re: EntityFactory.GetByIdYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Nov 09 2:24 AM
I have rebuild full entities without errors except for MTA warnings.
When I do a full rebuild of platform I also have warnings about private fields not used or sdata hidden inheriten members on others interfaces that I don't use and I didn't customize...

I have just created an entity by adding the Table in AA, and when I write C# code the completion works well.
Is there something else to do?

[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): 7/2/2025 2:28:38 AM