7/2/2025 1:36:48 AM
|
|
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.
|
|
|
|
EntityFactory.GetById
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,
|
|
|
| |
|
Re: EntityFactory.GetById
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?
|
|
|
|
Re: EntityFactory.GetById
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, |
|
|
|
Re: EntityFactory.GetById
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.
|
|
|
|
Re: EntityFactory.GetById
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?
|
|
|
|
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!
|
|
|
|
|
|
|
|