10-09-2009 12:43 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,
10-10-2009 08:48 AM
John Perona
Director, Infor CRM DevelopmentInfor CRM
10-26-2009 10:06 AM
Hi,
In fact there a Default page like in the Lead Capture Portal.
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<ITicketSurvey>(_TicketID);
it works bur if I get a null objct, I try to create a survey like this:
ITicketSurvey _newsurvey = Sage.Platform.EntityFactory.Create<ITicketSurvey>();
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?
10-27-2009 06:42 AM
John Perona
Director, Infor CRM DevelopmentInfor CRM
10-27-2009 07:11 AM
10-27-2009 09:42 AM
Hi,
I have also used another method:
In place of the Create Instruction, as TicketSurvey is an Extension to Ticket, I tried the following:
ITicketSurvey _new = _ticket.TicketSurvey;
I get an object to work with but when I try a Save I get the following error:
Exception Details: System.ArgumentException: Could not find the dynamic method TicketSurvey.OnBeforeInsert. Check you method configuration to ensure that this method exists.
Source Error:
Line 659: lib.Execute("TicketSurvey.OnBeforeInsert", methodArgs);
What should I do now?
THanks,
11-02-2009 04:55 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,