<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://customerfx.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ryan Farley&amp;#39;s Blog : Development, .NET Extensions</title><link>http://customerfx.com/pages/crmdeveloper/archive/tags/Development/.NET+Extensions/default.aspx</link><description>Tags: Development, .NET Extensions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Creating SalesLogix .NET Extensions with the .NET Extensions Helper Library</title><link>http://customerfx.com/pages/crmdeveloper/2011/10/27/creating-saleslogix-net-extensions-with-the-net-extensions-helper-library.aspx</link><pubDate>Thu, 27 Oct 2011 16:00:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:45268</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=45268</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=45268</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2011/10/27/creating-saleslogix-net-extensions-with-the-net-extensions-helper-library.aspx#comments</comments><description>&lt;p&gt;A couple of weeks ago I announced the &lt;a href="http://customerfx.com/pages/crmdeveloper/2011/10/13/announcing-the-open-source-saleslogix-net-extensions-helper-library.aspx"&gt;.NET Extensions Helper open source library&lt;/a&gt;. I figured it was time for a more complete walkthrough so this post will show a video of how to get the library and use it to embed a .NET UserControl on a SalesLogix account tab. Let&amp;#39;s take a look.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;Demonstration of the .NET Extensions Helper Library&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this video you&amp;#39;ll see how to get the .NET Extensions Helper library and how to use it to embed a .NET UserControl in SalesLogix. &lt;/p&gt;

&lt;iframe height="430" src="http://www.youtube.com/embed/R4a2WV03biU?rel=0" frameborder="0" width="590" allowfullscreen=""&gt;&lt;/iframe&gt;

&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a title="Watch the Creating SalesLogix .NET Extensions with the .NET Extensions Helper Library video on YouTube" href="http://www.youtube.com/watch?v=R4a2WV03biU" target="_blank"&gt;&lt;img border="0" src="http://customerfx.com/blogs/crmdeveloper/play.png" alt="" /&gt;&lt;/a&gt;&lt;/td&gt;

&lt;td&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;a title="Watch the Creating SalesLogix .NET Extensions with the .NET Extensions Helper Library on YouTube" href="http://www.youtube.com/watch?v=R4a2WV03biU" target="_blank"&gt;Watch the Creating SalesLogix .NET Extensions with the .NET Extensions Helper Library on YouTube&lt;/a&gt;&lt;/b&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#404040"&gt;&lt;i&gt;The video will open on youtube.com in a new window&lt;/i&gt;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;


&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;Take It For A Whirl&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, there will be more coming in future posts about the .NET Extensions Helper library. I&amp;#39;ll cover how to wire up callbacks to invoke VBScript methods in the SalesLogix plugin from your .NET Extension and creating dialogs as well. For now, give it a try and let me know what you think.&lt;/p&gt;
&lt;img src="http://customerfx.com/aggbug.aspx?PostID=45268" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Open+Source/default.aspx">Open Source</category></item><item><title>Announcing the Open-Source SalesLogix .NET Extensions Helper Library</title><link>http://customerfx.com/pages/crmdeveloper/2011/10/13/announcing-the-open-source-saleslogix-net-extensions-helper-library.aspx</link><pubDate>Fri, 14 Oct 2011 00:20:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:45241</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=45241</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=45241</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2011/10/13/announcing-the-open-source-saleslogix-net-extensions-helper-library.aspx#comments</comments><description>&lt;p&gt;If you&amp;#39;re working in the SalesLogix Windows (LAN) client, why not make as most use as possible of a modern development environment, language,&amp;nbsp;and tools? The SalesLogix .NET Extensions feature in the SalesLogix Windows client is one of the best, and likely least used, features in the SalesLogix Windows client development story. A choice bewteen using an out-dated development environment and VBScript, with no possibility of using source control or a true multi-developer experience verses using Visual Studio, with source control, a modern language and framework where the sky is the limit? I&amp;#39;ll take the latter any day. Still not convinced? The .NET Extensions Helper library comes to the rescue. This new open source project from Customer FX will make embedding .NET controls in SalesLogix a breeze.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;Overview &amp;amp; How To Use&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The .NET Extension Helper is a library that will do all the heavy lifting to embed controls in SalesLogix. All you do is have your UserControl inherit from the FX.SalesLogix.NetExtensionsHelper.SalesLogixControl and then use a script class in SalesLogix to load the control and set the record context.&lt;/p&gt;

&lt;p&gt;Let&amp;#39;s consider a very simple&amp;nbsp;example of a .NET Control on an Account tab. You want to display the current account&amp;#39;s contacts in a grid on this tab. Your .NET UserControl code will look something like this:&lt;/p&gt;

&lt;table style="width:600px;table-layout:fixed;" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre&gt;&lt;span style="color:blue;"&gt;public&lt;/span&gt; partial &lt;span style="color:blue;"&gt;class&lt;/span&gt; UserControl1 : FX.SalesLogix.NetExtensionsHelper.SalesLogixControl
{
    &lt;span style="color:blue;"&gt;private&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; UserControl1_SalesLogixRecordChanged(&lt;span style="color:blue;"&gt;string&lt;/span&gt; RecordID)
    {
        &lt;span style="color:blue;"&gt;using&lt;/span&gt; (OleDbConnection conn &lt;span style="color:navy;"&gt;=&lt;/span&gt; &lt;span style="color:blue;"&gt;new&lt;/span&gt; OleDbConnection(&lt;span style="color:blue;"&gt;this&lt;/span&gt;.SlxApplication.ConnectionString))
        {
            conn.Open();
            &lt;span style="color:blue;"&gt;using&lt;/span&gt; (OleDbDataAdapter da &lt;span style="color:navy;"&gt;=&lt;/span&gt; &lt;span style="color:blue;"&gt;new&lt;/span&gt; OleDbDataAdapter(&lt;span style="color:blue;"&gt;string&lt;/span&gt;.Format(&lt;span&gt;&amp;quot;select lastname as LastName, firstname as FirstName, type as Type from contact where accountid = &amp;#39;{0}&amp;#39;&amp;quot;&lt;/span&gt;, RecordID), conn))
            {
                DataTable table &lt;span style="color:navy;"&gt;=&lt;/span&gt; &lt;span style="color:blue;"&gt;new&lt;/span&gt; DataTable();
                da.Fill(table);
 
                dataGridView1.DataSource &lt;span style="color:navy;"&gt;=&lt;/span&gt; table;
            }
        }
    }
}&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;So, what are we looking at here? Basically, there&amp;#39;s extra code in that example that opens an ADO.NET connection to the SalesLogix database and gets a DataSet to bind to a DataGridView, but the important parts there is that the UserControl inherits from a special base class named &amp;quot;SalesLogixControl&amp;quot; and then wires up an event called SalesLogixRecordChanged which passes in the current record&amp;#39;s ID value. Whenever the record changes in SalesLogix, this event is fired and you&amp;#39;re passed the record ID. Simple.&lt;/p&gt;

&lt;p&gt;The above is the .NET side of things. There&amp;#39;s&amp;nbsp;only two lines of code needed in SalesLogix to drive this. In the example we have above, the SalesLogix form (the actual form in SalesLogix hosting this control), would include the following code:&lt;/p&gt;

&lt;table style="width:600px;table-layout:fixed;" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre&gt;&lt;span style="color:green;"&gt;&amp;#39;Including Script - System:ExtensionControl Class
&lt;/span&gt;option explicit

&lt;span style="color:blue;"&gt;Dim&lt;/span&gt; ext

&lt;span style="color:blue;"&gt;Sub&lt;/span&gt; AXFormOpen(Sender)
    Set ext &lt;span style="color:navy;"&gt;=&lt;/span&gt; &lt;span style="color:blue;"&gt;new&lt;/span&gt; ExtensionControl
    ext.Load &amp;quot;SampleExtension&amp;quot;, &amp;quot;SampleExtension.UserControl1&amp;quot;, Form.HWND, &lt;span style="color:blue;"&gt;True&lt;/span&gt;
&lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;Sub&lt;/span&gt;

&lt;span style="color:blue;"&gt;Sub&lt;/span&gt; AXFormChange(Sender)
    ext.CurrentID &lt;span style="color:navy;"&gt;=&lt;/span&gt; Form.CurrentID
&lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;Sub&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;The code above simply includes a VBScript plugin named &amp;quot;ExtensionControl Class&amp;quot;. Then, in the form&amp;#39;s Open event it creates an instance of the ExtensionControl class and then tells it which .NET Extension to load, and passes the Windows handle (HWND) of where to embed the control (in this case it passes the handle, or HWND of the form itself). The &amp;quot;True&amp;quot; at the end tells it to resize the control to fill&amp;nbsp;all available space in that area. When the record changes, it passes that into the class which fires the event in your .NET UserControl. That is it.&lt;/p&gt;

&lt;p&gt;What you&amp;#39;ll end up with is this:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://customerfx.com/blogs/crmdeveloper/NETExtensionLibrary_ExampleGrid.png"&gt;&lt;img border="0" src="http://customerfx.com/blogs/crmdeveloper/NETExtensionLibrary_ExampleGrid.png" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are other things available as well which you can make use of, such as passing a Subroutine from your VBScript to the .NET UserControl as a callback function. I&amp;#39;ll discuss more about that later.&lt;/p&gt;

&lt;p&gt;One of the biggest benefits you&amp;#39;ll have when using this, and .NET Extensions in general, is that you&amp;#39;ll get to use Sublogix for all data access which will drastically speed up development time. I&amp;#39;ve been working with a customer where we&amp;#39;ve been building out their SalesLogix Windows client using exclusively .NET Extensions and this library with Sublogix and it&amp;#39;s actually been enjoyable to work with. I&amp;#39;ve not been this happy working in the Windows client, well, ever.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;Where Can You Get It?&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All code for this is on github as an open source project. You can grab the .NET assembly and associated SalesLogix bundle from there and start rolling. I&amp;#39;ll try to put together a sample video of&amp;nbsp;how to go from download to first use next week.&lt;/p&gt;

&lt;p&gt;&lt;img border="0" align="absmiddle" src="http://customerfx.com/blogs/crmdeveloper/file-down.png" alt="" /&gt; &lt;a href="https://github.com/CustomerFX/NetExtensionsHelper" target="_blank"&gt;&lt;strong&gt;&lt;font size="3"&gt;Visit the NETExtensionHelper home on github&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;&amp;nbsp;&lt;br /&gt;Grab everything you need, the assembly, the SalesLogix bundle, and a sample project&amp;nbsp;from the &lt;a href="https://github.com/CustomerFX/NetExtensionsHelper/downloads" target="_blank"&gt;Downloads&lt;/a&gt; section.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;Best Of All, It&amp;#39;s&amp;nbsp;Open Source&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As I mentioned above, this is an open source project. If you&amp;#39;re using .NET Extensions and have some good ideas to add, I&amp;#39;d love to see some contributions. Just clone the repository, make some changes and then submit a pull request.&lt;/p&gt;
&lt;img src="http://customerfx.com/aggbug.aspx?PostID=45241" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/New+Finds/default.aspx">New Finds</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Custom+Controls/default.aspx">Custom Controls</category></item><item><title>Public SalesLogix Developer Classes Revamped</title><link>http://customerfx.com/pages/crmdeveloper/2008/10/27/public-saleslogix-developer-classes-revamped.aspx</link><pubDate>Mon, 27 Oct 2008 23:51:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:39683</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=39683</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=39683</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2008/10/27/public-saleslogix-developer-classes-revamped.aspx#comments</comments><description>
&lt;p&gt;&lt;a href="http://customerfx.com/pages/crmdeveloper/2008/09/02/public-saleslogix-web-developer-classes-on-the-way.aspx"&gt;I announced&lt;/a&gt; a while ago that we will be offering some public developer training classes for SalesLogix Web. We will be making some changes to the class outline I posted earlier. &lt;/p&gt;&lt;p&gt;The new classes we will be offering will be as follows:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;Building Solutions for SalesLogix Web&lt;/b&gt;&lt;br /&gt;This is the all-inclusive web developer class that uses the concept of building a complete solution to train around. We will go from start to finish in building a solution that covers all typical development scenarios when developing for SalesLogix Web.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Process Orchestration&lt;/b&gt;&lt;br /&gt;This is a full class that will focus on working with and developing for process orchestration (Windows Workflow) with SalesLogix 7.5 (Web or LAN).&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;SData &amp;amp; Integration&lt;/b&gt;&lt;br /&gt;This class will focus on building solutions using the SalesLogix SData &amp;amp; REST services layer for both reading SalesLogix data and writing to SalesLogix (creating new records, updating, &amp;amp; deleting), focusing on integration and external application scenarios.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;SalesLogix .NET Extensions&lt;/b&gt;&lt;br /&gt;This class will focus on developing .NET Extensions for the SalesLogix v7 and higher LAN client. We will take an in-depth look at building, debugging, &amp;amp; managing .NET Extensions as well as look at cases when to use .NET Extensions vs. standard SalesLogix customizations. &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Beginning C# &amp;amp; .NET Development for SalesLogix&lt;/b&gt;&lt;br /&gt;We are also considering a &amp;quot;Beginning C# for SalesLogix&amp;quot; class that will cover the basics of C# and the .NET Framework from the perspective of working with SalesLogix.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I will be posting the complete class outlines and schedules to this site &amp;amp; RSS feed shortly. Stay tuned.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;img src="http://customerfx.com/aggbug.aspx?PostID=39683" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/SalesLogix+Web/default.aspx">SalesLogix Web</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/SalesLogix/default.aspx">SalesLogix</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/REST/default.aspx">REST</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Training/default.aspx">Training</category></item><item><title>Ping a Remote Server Using C#</title><link>http://customerfx.com/pages/crmdeveloper/2008/05/21/ping-a-remote-server-using-c.aspx</link><pubDate>Thu, 22 May 2008 04:30:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:39350</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=39350</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=39350</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2008/05/21/ping-a-remote-server-using-c.aspx#comments</comments><description>&lt;p&gt;In my &lt;a class="" href="http://customerfx.com/pages/crmdeveloper/2008/05/19/ping-a-remote-server-using-vbscript.aspx"&gt;last post&lt;/a&gt;, I shared some code in VBScript to PING a remote server to check for availability before attempting to use a resource on that remote server. This wouldn&amp;#39;t be my blog if I didn&amp;#39;t also share this code in C# as well. IMO, this sort of thing is a far better suited for a .NET Extension if for the SalesLogix Windows client. &lt;/p&gt;
&lt;p&gt;To perform a PING using C#, the code is far more straight forward than the &lt;a class="" href="http://customerfx.com/pages/crmdeveloper/2008/05/19/ping-a-remote-server-using-vbscript.aspx"&gt;VBScript version&lt;/a&gt;. No need for shelling the command out and reading back the StdOut. This version reads much nicer:&lt;/p&gt;&lt;pre&gt;&lt;span style="COLOR:blue;"&gt;using&lt;/span&gt; System;
&lt;span style="COLOR:blue;"&gt;using&lt;/span&gt; System.Management;

&lt;span style="COLOR:blue;"&gt;namespace&lt;/span&gt; FX.Network.Utility
{
    &lt;span style="COLOR:blue;"&gt;public&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;class&lt;/span&gt; NetworkDiscovery
    {
        &lt;span style="COLOR:blue;"&gt;public&lt;/span&gt; NetworkDiscovery() { }

        &lt;span style="COLOR:blue;"&gt;public&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;static&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;bool&lt;/span&gt; Ping(&lt;span style="COLOR:blue;"&gt;string&lt;/span&gt; Target)
        {
            SelectQuery query &lt;span style="COLOR:navy;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;new&lt;/span&gt; SelectQuery(&lt;span style="COLOR:#008080;"&gt;&amp;quot;Win32_PingStatus&amp;quot;&lt;/span&gt;, &lt;span style="COLOR:blue;"&gt;string&lt;/span&gt;.Format(&lt;span style="COLOR:#008080;"&gt;&amp;quot;Address=&amp;#39;{0}&amp;#39;&amp;quot;&lt;/span&gt;, Target));
            ManagementObjectSearcher searcher &lt;span style="COLOR:navy;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;new&lt;/span&gt; ManagementObjectSearcher(query);

            &lt;span style="COLOR:blue;"&gt;foreach&lt;/span&gt; (ManagementObject result &lt;span style="COLOR:blue;"&gt;in&lt;/span&gt; searcher.Get())
            {
                &lt;span style="COLOR:blue;"&gt;return&lt;/span&gt; (result[&lt;span style="COLOR:#008080;"&gt;&amp;quot;StatusCode&amp;quot;&lt;/span&gt;] !&lt;span style="COLOR:navy;"&gt;=&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; (0 == (UInt32)result[&lt;span style="COLOR:#008080;"&gt;&amp;quot;StatusCode&amp;quot;&lt;/span&gt;]));
            }
            &lt;span style="COLOR:blue;"&gt;return&lt;/span&gt; &lt;span style="COLOR:blue;"&gt;false&lt;/span&gt;;
        }
    }
}&lt;/pre&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=39350" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/General/default.aspx">General</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/C_2300_/default.aspx">C#</category></item><item><title>How to Debug a SalesLogix .NET Extension</title><link>http://customerfx.com/pages/crmdeveloper/2007/08/20/how-to-debug-a-saleslogix-net-extension.aspx</link><pubDate>Mon, 20 Aug 2007 19:13:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:37982</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=37982</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=37982</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2007/08/20/how-to-debug-a-saleslogix-net-extension.aspx#comments</comments><description>&lt;p&gt;The question of how to debug a .NET Extension has come up a few times in the SalesLogix Business Partner newsgroups as well as on the &lt;a href="http://www.slxdeveloper.com/forums"&gt;&lt;a title="slxdeveloper.com - the best online resource for saleslogix developers" href="http://www.slxdeveloper.com/" target="_blank"&gt;slxdeveloper.com&lt;/a&gt; forums&lt;/a&gt;. I&amp;#39;ve answered this a few times in those locations, so this might be a repeat of info for some, but I did think it was worthwhile to post again here as well.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a step by step to debug your SalesLogix .NET Extension:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create your .NET Extension and compile it in debug mode&lt;/li&gt;
&lt;li&gt;Add it to the Extension Manager and add whatever scripts to launch it&lt;/li&gt;
&lt;li&gt;While the project is open in VS, go to &amp;quot;Debug&amp;quot; and then &amp;quot;Attach to Process&amp;quot;.&lt;/li&gt;
&lt;li&gt;Find &amp;quot;SalesLogix&amp;quot; on the list of running processes. Select it and then use the &amp;quot;Select&amp;quot; button to ensure that you&amp;#39;ve chosen to debug &amp;quot;Managed&amp;quot;.&lt;/li&gt;
&lt;li&gt;Set a break-point in VS in your code&lt;/li&gt;
&lt;li&gt;Run the script that uses the extension and it will stop at your break-point.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Have fun!&lt;/p&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=37982" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/New+Finds/default.aspx">New Finds</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/General/default.aspx">General</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category></item><item><title>SalesLogix and .NET in Version 7</title><link>http://customerfx.com/pages/crmdeveloper/2006/04/13/20433.aspx</link><pubDate>Thu, 13 Apr 2006 22:22:00 GMT</pubDate><guid isPermaLink="false">e15581aa-2787-4c59-a940-524c09f5d256:20433</guid><dc:creator>Ryan Farley</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/rsscomments.aspx?PostID=20433</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://customerfx.com/pages/crmdeveloper/commentapi.aspx?PostID=20433</wfw:comment><comments>http://customerfx.com/pages/crmdeveloper/2006/04/13/20433.aspx#comments</comments><description>&lt;P&gt;The next version of SalesLogix (v7) will include support for executing .NET 2.0 code in SalesLogix. You run code from .NET assemblies, load forms into SalesLogix, and just about anything else. This is an awesome addition to SalesLogix for the developer that wants to get outside the &amp;#8220;Architect box&amp;#8221;. Here's a short sample (I'll be posting a lot more of these, but I need to make sure I won't get in trouble with any non-disclosures and beta agreements):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In Visual Studio 2005&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;PRE&gt;&lt;SPAN style="COLOR: blue"&gt;using&lt;/SPAN&gt; System;
&lt;SPAN style="COLOR: blue"&gt;using&lt;/SPAN&gt; System.Windows.Forms;

&lt;SPAN style="COLOR: blue"&gt;namespace&lt;/SPAN&gt; SLXNetTest
{
    &lt;SPAN style="COLOR: blue"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;class&lt;/SPAN&gt; Class1 : Sage.SalesLogix.LAN.WinForms.BaseRunnable
    {
        &lt;SPAN style="COLOR: blue"&gt;public&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;override&lt;/SPAN&gt; object Run(object[] Args)
        {
            &lt;SPAN style="COLOR: blue"&gt;string&lt;/SPAN&gt; msg &lt;SPAN style="COLOR: navy"&gt;=&lt;/SPAN&gt; &lt;SPAN style="COLOR: #008080"&gt;"Hello .NET-SalesLogix World!\r\n\r\n"&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; 
                         &lt;SPAN style="COLOR: #008080"&gt;"Argument passed: "&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; 
                                             (Args.Length == 0 ? &lt;SPAN style="COLOR: #008080"&gt;"None"&lt;/SPAN&gt; : Args[0].ToString()) &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: #008080"&gt;"\r\n"&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; 
                         &lt;SPAN style="COLOR: #008080"&gt;"Current userid: "&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; SlxApplication.BasicFunctions.CurrentUserID() &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: #008080"&gt;"\r\n"&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; 
                         &lt;SPAN style="COLOR: #008080"&gt;"Connection String: "&lt;/SPAN&gt; &lt;SPAN style="COLOR: navy"&gt;+&lt;/SPAN&gt; SlxApplication.ConnectionString;
            
            MessageBox.Show(msg, &lt;SPAN style="COLOR: #008080"&gt;".NET MessageBox"&lt;/SPAN&gt;);
            &lt;SPAN style="COLOR: blue"&gt;return&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;null&lt;/SPAN&gt;;
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;We'll compile that and add it to SalesLogix via the new .NET Forms Manager.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In a SalesLogix VBScript&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;PRE&gt;Application.Managed.Run "SLXNetTest", "SLXNetTest.Class1", "Some argument"&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Now Run the script and...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG src="http://files.farleyzone.com/images/slxnetform1.jpg"&gt;&lt;/P&gt;
&lt;P&gt;While this really does rock, it doesn't stop there. Loading .NET forms into the client. Forms, replacements for things like the account detail screen, passing values to the .NET code and back to the calling script, etc. Granted you could do all of this before (I've been doing this stuff in projects for years) but the best part of all of this is that the .NET stuff you add to SalesLogix can be bundled and will all synch out to remotes. Awesome stuff.&lt;/P&gt;&lt;img src="http://customerfx.com/aggbug.aspx?PostID=20433" width="1" height="1"&gt;</description><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/Development/default.aspx">Development</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/New+Finds/default.aspx">New Finds</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/General/default.aspx">General</category><category domain="http://customerfx.com/pages/crmdeveloper/archive/tags/.NET+Extensions/default.aspx">.NET Extensions</category></item></channel></rss>