Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 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: Snippets
Nicolas Galler
Posts: 93
 
SnippetsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 25 Oct 07 3:46 PM
Is there any documentation on this snippet stuff? I tried creating one but get an error:
Unable to locate type information 'Sage.BusinessRules.CodeSnippets.AccountBusinessRules, Sage.SnippetLibrary.CSharp' for business rule 'Account.OnBeforeUpdate'

I looked everywhere for this "SnippetLibrary" but can't find it. What am I missing?

Thanks
Nick

** EDIT ** I just found out the compilation of the snippet failed... had to restart the AA to see the error messages... so, revised question:

Can you add a reference to an external assembly within a snippet? I tried editing the XML blurb at the top but it got overwritten.
[Reply][Quote]
virtam
Posts: 43
 
Re: SnippetsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 12:31 PM
i help me about:
'Sage.BusinessRules.CodeSnippets.AccountBusinessRules, Sage.SnippetLibrary.CSharp' for business rule 'Account.OnBeforeUpdate'
[Reply][Quote]
Nicolas Galler
Posts: 93
 
Re: SnippetsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 4:14 PM
Try rebuilding (Ctrl+Build)
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: SnippetsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 4:40 PM
Quote:
Originally posted by Nicolas Galler

Can you add a reference to an external assembly within a snippet? I tried editing the XML blurb at the top but it got overwritten.


There are two ways to add an external reference

1) Edit the codesnippets.xml file to add the reference (located in C:\Documents and Settings\All Users\Application Data\Sage\Platform\Configuration\Global)

or

(This one only applies to 7.2.2, if you're on a pre SP2 version option 1 is the only route)
2) You can now update your Assembly References right in the Application Architect. When viewing the code for your Code Snippet in the tabbed MDI workspace in Application Architect, use the combo box at the top of the docked Properties window to select “Sage.Platform.Orm.Entities.CodeSnippetHeader. This will show the editable properties for the code snippet. Edit the AssemblyReference collection and add your reference. The comments at the top of your code snippet will be updated to reflect the new assembly reference as well.

-Ryan
[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): 2/23/2025 5:26:50 AM