7/4/2025 7:30:17 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.
|
|
|
| |
|
Re: Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'
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. |
|
|
|
Re: Build Error related to CodeSnippet - 'Type xxx already defines a method called xxx'
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.
|
|
|
|
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!
|
|
|
|
|
|
|
|