Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, July 4, 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: Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'
Henri Lo
Posts: 5
 
Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Oct 09 11:39 PM
Hi there,

I am getting the following error when building the web platform.

ERROR - C:\Documents and Settings\slxdevsvc\Application Data\Sage\Platform\Output\Sage.SnippetLibrary.CSharp\src\Sage.SnippetLibrary.CSharp.@.4c54f19c-a67e-4a80-8b48-f02284d8199c.codesnippet.cs(34,28):Type 'Sage.BusinessRules.CodeSnippets.TicketDetailsEventHandlers' already defines a member called 'LuePrimaryReference_OnChangeStep' with the same parameter types

I have removed the LuePrimaryReference lookup field from the field, yet I am still getting this error. Seems to me it is a bug in the IDE that did not remove the event handler function properly.

Anyone knows how to fix this issues? Thanks.

Cheers.

H
[Reply][Quote]
Henri Lo
Posts: 5
 
Re: Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Oct 09 7:36 PM
Finally, I have found the root cause of the error. There is a serious bug with Saleslogix Web Customisation that all developers must be very careful with. Perhaps, this has been documented somewhere in the SDK, if it does even exist. By the way, this is my first week working with Saleslogix customisation.

Here is what I have - 2 forms with different name eg. InsertTicket and TicketDetails form, and both forms have a field with the same name, eg. LuePrimaryReference. When you add a Change Action - C# Code Snippet to the field, an XML file is generated with the name [FieldName]_OnChange.method.xml. Guess what happen when you add Change Action to both fields in each form, the same file is referenced by both fields. Just how stupid this is. Hence, the same function is declared twice because the same file compiled during web platform build. A unique name should have been used to name the file. eg. [FormName].[FieldName]_OnChange.method.xml. So, to fix this, give a unique name to the field in each form.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Oct 09 12:44 PM
I have indeed seen this in the past, and your is a good warning.

The problem isn't just related to Actions on the Server side code, but also applies to Javascript you may generate.
For instance, I had 2 tabs on which I had built Inline Editing onto the Grids, on each one of the tabs I had functions called "ShowDetail, HideDetail, SaveData". I didn't realize this during testing because I tested them separately, but when the user loaded one tab on the Middle section, the other on the tab, then all hell broke loose. There were duplicate function names.

[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/4/2025 8:08:51 AM