﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions / Samples </title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Thu, 28 Aug 2008 12:30:15 GMT</lastBuildDate><ttl>20</ttl><item><title>Available Products</title><link>http://www.c360.com/Forums/Topic653-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;The scenario that was used for this sample is that a user wanted to simplify adding products to an Opportunity. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;List all products in a grid using a system view&lt;/LI&gt;&lt;LI&gt;Add a “CustomAction” to a grid (the “delete” action) &lt;/LI&gt;&lt;LI&gt;Use an “ActionPage” to implement the custom action&lt;/LI&gt;&lt;LI&gt;Implement a custom “DoubleClickHandler” in a grid&lt;/LI&gt;&lt;LI&gt;Use an “Edit” page to create new records and update existing ones&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – Edit ISV.config This sample must be added as a new link on the left navigation bar of the Microsoft CRM opportunity edit screen . Therefore we need to edit the “opportunity” entity section in Microsoft CRM’s ISV.config file like so:&lt;/P&gt;&lt;P&gt;[code]&amp;lt;Entity name="opportunity"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;NavBar ValidForCreate="0" ValidForUpdate="1"&amp;gt;&lt;/P&gt;&lt;P&gt;            &amp;lt;NavBarItem Title="Available Products"&lt;/P&gt;&lt;P&gt;                Icon="/_imgs/ico_18_debug.gif" &lt;/P&gt;&lt;P&gt;                Url="http://localhost:1465/c360Sdk/Samples/AvailableProducts/AvailableProducts.aspx"&lt;/P&gt;&lt;P&gt;                Id="availableProducts" /&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;/NavBar&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/Entity&amp;gt;[/code]&lt;/P&gt;&lt;P&gt; Note: you will need to adjust the url in the above sample to match your environment. &lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “AvailableProducts”. In this new folder, copy the two ASPX pages and their corresponding code behind files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AddSelectedProducts.aspx&lt;/LI&gt;&lt;LI&gt;AddSelectedProducts.aspx.cs&lt;/LI&gt;&lt;LI&gt;AvailableProducts.aspx&lt;/LI&gt;&lt;LI&gt;AvailableProducts.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/13878d4d-767f-4759-bc31-40a2.PNG"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/9ab8587c-7e15-4966-8d08-3646.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/d208fb05-ea2a-4daf-9e51-b544.PNG"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; </description><pubDate>Mon, 02 Oct 2006 22:01:25 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Notes in grid</title><link>http://www.c360.com/Forums/Topic1276-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;The goal of this sample is to display in a grid all the CRM Notes related to a “parent” record such as a Contact for example.&lt;/P&gt;&lt;P&gt;This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;List CRM Notes in a grid&lt;/LI&gt;&lt;LI&gt;Create new "child" records (note that when you click on the ‘Create New’ button, the ‘regarding’ field is pre-populated with the parent record). &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – This sample must be added as a new link on the left navigation bar of the Microsoft CRM contact edit screen. Therefore we need to edit the "contact" entity section in Microsoft CRM's ISV.config file like so: &lt;/P&gt;&lt;P&gt;[code]&amp;lt;Entity name="contact"&amp;gt;&lt;BR&gt;&lt;/SPAN&gt;     &amp;lt;NavBar ValidForCreate="0" ValidForUpdate="1"&amp;gt;&lt;BR&gt;          &amp;lt;NavBarItem Icon="/_imgs/ico_16_5_d.gif" Title="Notes in grid"&lt;BR&gt;               Url=" http://localhost:5517/c360Sdk /Samples/NotesInGrid/Notes.aspx" &lt;BR&gt;               Id="notesInGrid" /&amp;gt;&lt;BR&gt;      &amp;lt;/NavBar&amp;gt;&lt;BR&gt;&amp;lt;/Entity&amp;gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “NotesInGrid”. In this new folder, copy the two ASPX pages and their corresponding code behind files: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Notes.aspx&lt;/LI&gt;&lt;LI&gt;Notes.aspx.cs&lt;/LI&gt;&lt;LI&gt;NotesFetchData.aspx&lt;/LI&gt;&lt;LI&gt;NotesFetchData.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Screenshots&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/5c732921-e189-4e32-85d0-fa4a.JPG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/4811c437-ab7e-4178-8c56-9fc2.JPG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/eee14480-a4f7-44b9-839a-09c6.JPG"&gt;</description><pubDate>Wed, 07 Mar 2007 14:46:03 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Lookup with linked header and detail grids</title><link>http://www.c360.com/Forums/Topic1187-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;This sample was requested by a member on our online forum. What she wanted to do is build a page with a lookup control  and two grids and wanted to filter the data in the first grid based on the selected lookup item and also filter the data in the second grid based on the record selected in the first grid. This is very similar to the "Multiple Lookups" sample except that grids are used instead of lookup controls. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How to refresh a grid when the user selects an item in a lookup control&lt;/LI&gt;&lt;LI&gt;How to refresh a "detail" grid when the user selects a record in the "header" grid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – Edit ISV.config This sample must be added as a new link under a “top level” menu (i.e.: a pull down menu on the top menu bar at the top of the main CRM window). Therefore we need to edit the “CustomMenus” section in Microsoft CRM’s ISV.config file like so: &lt;/P&gt;&lt;P&gt;[code]&amp;lt;Menu Title="Testing c360 SDK"&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;MenuItem Title="Lookup with linked grids"&lt;/P&gt;&lt;P&gt;         Url="http://localhost:5517/c360Sdk/Samples/LookupWithLinkedGrids/LookupWithLinkedGrids.aspx"&lt;/P&gt;&lt;P&gt;         WinMode="0"&lt;/P&gt;&lt;P&gt;         Client="Web,OutlookWorkstationClient"&lt;/P&gt;&lt;P&gt;         AvailableOffline="false" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Menu&amp;gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “LookupWithLinkedGrids”. In this new folder, copy the ASPX page and its corresponding code behind file: &lt;UL&gt;&lt;LI&gt;LookupWithLinkedGrids.aspx&lt;/LI&gt;&lt;LI&gt;LookupWithLinkedGrids.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Screenshots&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7f0aa651-c958-46a8-8907-0bcf.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/de00936e-9e81-4e89-becf-cd70.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/1507766d-a7d2-4f20-871d-6fc0.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/3ea5ab68-d37d-47e6-987b-3085.png"&gt;</description><pubDate>Tue, 20 Feb 2007 00:59:31 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>All Controls</title><link>http://www.c360.com/Forums/Topic652-39-1.aspx</link><description>&lt;U&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/U&gt; &lt;P&gt; This very simple sample includes one of every c360 web control on one page. This sample is great to get familiar with all the controls included in the SDK. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Edit page to enfore the CRM look and feel but hide the menu bar and button bar&lt;/LI&gt;&lt;LI&gt;Use a ‘LeftNav’ control to mimic the Microsoft left navigation menu&lt;/LI&gt;&lt;LI&gt;Use the ‘TabBar’ control to mimic the Microsoft CRM tabs on the edit page&lt;/LI&gt;&lt;LI&gt;Insert one of every type of c360 control in one of the tabs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – Edit ISV.config This sample must be added as a new link under a “top level” menu (i.e.: a pull down menu on the top menu bar at the top of the main CRM window). Therefore we need to edit the “CustomMenus” section in Microsoft CRM’s ISV.config file like so: &lt;/P&gt;&lt;P&gt;[code]&amp;lt;Menu Title="Testing c360 SDK"&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;MenuItem Title="All Controls"&lt;/P&gt;&lt;P&gt;         Url="http://localhost:5517/c360Sdk/Samples/AllControls/AllControls.aspx"&lt;/P&gt;&lt;P&gt;         WinMode="0"&lt;/P&gt;&lt;P&gt;         Client="Web,OutlookWorkstationClient"&lt;/P&gt;&lt;P&gt;         AvailableOffline="false" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Menu&amp;gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “AllControls”. In this new folder, copy the ASPX page and its corresponding code behind file: &lt;UL&gt;&lt;LI&gt;AllControls.aspx&lt;/LI&gt;&lt;LI&gt;AllControls.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Screenshots&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/2c0c50e6-ad50-464b-9482-0793.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/d34d5b4d-490b-44a0-b1ad-9cac.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/dd293a74-02db-4785-a41a-5496.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/0d6e0f8d-8195-4ec0-810f-6363.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 21:45:52 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Grid Preferences</title><link>http://www.c360.com/Forums/Topic707-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;P&gt;The goal of this sample is to demonstrate how the GridPreferences control can be used in conjuction with a Grid to allow the end-user to select the fields he or she wants to see. Furthermore, this sample also demonstrates how to preserve user preference and how to subsequently retrieve them.&lt;/P&gt;&lt;P&gt;This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use a Save dialog page to present the GridPreferences control.&lt;/LI&gt;&lt;LI&gt;Read metadata about an entity and display the list of fields in the GridPreferences control.&lt;/LI&gt;&lt;LI&gt;Save the user selections&lt;/LI&gt;&lt;LI&gt;Use an AreaPage to display a standard grid&lt;/LI&gt;&lt;LI&gt;Retrieve the user preferences and display only the selected fields in the Grid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 1&lt;/U&gt;&lt;/STRONG&gt; – Edit ISV.config&lt;/P&gt;&lt;P&gt;This sample must be added as a new link under a “top level” menu (i.e.: a pull down menu on the top menu bar at the top of the main CRM window). Therefore we need to edit the “CustomMenus” section in Microsoft CRM’s ISV.config file like so:&lt;BR&gt;&amp;lt;Menu Title="Testing c360 SDK"&amp;gt;&lt;BR&gt; &amp;lt;MenuItem Title="Grid Preferences" Url="&lt;A href="http://localhost:5517/c360Sdk/Samples/GridPreferences/Grid.aspx"&gt;http://localhost:5517/c360Sdk/Samples/GridPreferences/Grid.aspx&lt;/A&gt;" WinMode="0" Client="Web,OutlookWorkstationClient" AvailableOffline="false" /&amp;gt;&lt;BR&gt;&amp;lt;/Menu&amp;gt;&lt;/P&gt;&lt;P&gt;Note: you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 2&lt;/U&gt;&lt;/STRONG&gt; – Copy files&lt;/P&gt;&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “GridPreferences”.&lt;/P&gt;&lt;P&gt;In this new folder, copy the image, the two ASPX page and their corresponding code behind files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;18_settings.gif&lt;/LI&gt;&lt;LI&gt;Grid.aspx&lt;/LI&gt;&lt;LI&gt;Grid.aspx.cs&lt;/LI&gt;&lt;LI&gt;GridPreferences.aspx&lt;/LI&gt;&lt;LI&gt;GridPreferences.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There is also one file included in this sample that must be copied to the App_Code folder in your solution:&lt;BR&gt;GridPreferences.cs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/da4f63aa-e4f2-4ed4-8216-0ba1.PNG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/48fa46d4-d2e6-48c4-8afc-e123.PNG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/34090099-7503-4c80-8107-8e3f.PNG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/2c657a86-ff5a-4e4d-855a-0c43.PNG"&gt;</description><pubDate>Tue, 17 Oct 2006 14:32:10 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Multiple Lookups</title><link>http://www.c360.com/Forums/Topic785-39-1.aspx</link><description>This sample is &lt;A href="http://www.c360.com/Forums/Topic709-8-1.aspx"&gt;based on a suggestion by John Marx&lt;/A&gt;.&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The goal of this sample is to demonstrate how you can have multiple lookup controls on one page and make the second control dependant on the value selected in the first control and make the third controls dependant on the value selected in the second control. Initially, only the first control is enabled, but when you select a record the second control becomes available and the third control becomes available when you make a selection in the second one. In this sample, the user will be prompted to select a territory. When he makes his selection, he will be able to select only accounts in this territory and when he selects an account, he will be able to select contacts who are linked to this account. This sample demonstrates the following: Use three Lookup controls to allow searching for Territory, Account and Contact Client-side event handler to execute code when a value is selected in a lookup control. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 1&lt;/U&gt;&lt;/STRONG&gt; – Edit ISV.config&lt;/P&gt;&lt;P&gt;This sample must be added as a new link under a “top level” menu (i.e.: a pull down menu on the top menu bar at the top of the main CRM window). Therefore we need to edit the “CustomMenus” section in Microsoft CRM’s ISV.config file like so:&lt;BR&gt;&amp;lt;Menu Title="Testing c360 SDK"&amp;gt;&lt;BR&gt; &amp;lt;MenuItem Title="Multiple Lookups" Url="&lt;A href="http://localhost:5517/c360Sdk/Samples/MultipleLookups/MultipleLoookups.aspx"&gt;http://localhost:5517/c360Sdk/Samples/MultipleLookups/MultipleLoookups.aspx&lt;/A&gt;" WinMode="0" Client="Web,OutlookWorkstationClient" AvailableOffline="false" /&amp;gt;&lt;BR&gt;&amp;lt;/Menu&amp;gt;&lt;/P&gt;&lt;P&gt;Note: you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 2&lt;/U&gt;&lt;/STRONG&gt; – Copy files&lt;/P&gt;&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “MultipleLookups”.&lt;/P&gt;&lt;P&gt;Copy the ASPX page and its corresponding code behind file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MultipleLookups.aspx&lt;/LI&gt;&lt;LI&gt;MultipleLookups.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/4e034cc6-f670-498b-a343-0003.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/b5dfb8d4-237a-48ed-bc7b-5c21.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/40a89207-e038-4603-a90e-e5e4.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/b7a58849-576a-4b37-ba20-a052.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/c4a374e9-9148-4dd7-aa70-f949.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/bea5b4c8-b5f3-42f9-b77d-e202.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/ad8a00d8-ebb4-4c4d-830b-075c.PNG"&gt;</description><pubDate>Mon, 30 Oct 2006 22:41:16 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>'ExternalLink' column type</title><link>http://www.c360.com/Forums/Topic780-39-1.aspx</link><description>This sample shows you how to use the new "ExternalLink" grid column type in release 3.0.7.&lt;P&gt;WARNING: this sample does not work with release 3.0.6 or older.&lt;/P&gt;&lt;P&gt;This new column type allows you to have a column in your grid that users can click on to open a popup window and redirect them to a URL of your choice.&lt;/P&gt;&lt;P&gt;When you pass a DataTable to the grid, you unfortunately do not have a lot of control and the only thing you can do is specify the URL of the link. The attached exercice 4.3e demonstrates this simple situation. Here's a screenshot:&lt;/P&gt;&lt;P&gt; &lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7f1f246c-6627-4624-8a1b-bc7e.PNG"&gt;&lt;/P&gt;&lt;P&gt;However, when you pass a "resultset", you have more flexibility and you can not only control the URL but also the caption visible in the grid, the height and width of the popup window, the 'name' of the window (this is important if you want links to reuse the same window or open in different windows) and you can also specify additionnal parameters such as: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;do you want the status bar to be visible?&lt;/LI&gt;&lt;LI&gt;do you want the menu bar to be visible?&lt;/LI&gt;&lt;LI&gt;etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The attached exercise 4.3f demonstrates this more advanced situation. Here's a screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/c539342b-4928-45b9-bbd0-0046.PNG"&gt;</description><pubDate>Mon, 30 Oct 2006 14:11:44 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>User preferences</title><link>http://www.c360.com/Forums/Topic694-39-1.aspx</link><description>In Microsoft CRM, users have a certain number of personal settings they can update. An example of a user setting is the number of records per page the user wants to see in a grid. However there is an important limitation associated with user settings: developers cannot add new ones for their own purpose.&lt;/P&gt;&lt;P&gt;Our SDK solves this problem by allowing you to save and read User Preferences (we call them 'preferences' to prevent any confusion with the 'settings'). The preferences are loaded and cached in memory and therefore are very fast to access. However, because they are in memory, I recommended that you use it only for a few small values and not for storing large amount of data. Just be reasonable! ;) &lt;/P&gt;&lt;P&gt;There are three methods that you can use to read and save preferences: &lt;UL&gt;&lt;LI&gt;GetPreference(preferenceName)&lt;/LI&gt;&lt;LI&gt;RemovePreference(preferenceName)&lt;/LI&gt;&lt;LI&gt;SetPreference(preferenceName, preferenceValue)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here are examples:&lt;/P&gt;&lt;P&gt;[code]Instance.CurrentUser.SetPreference("FavoriteColor", "Green");&lt;/P&gt;&lt;P&gt;string favoriteColor = Instance.CurrentUser.GetPreference("FavoriteColor");&lt;/P&gt;&lt;P&gt;Instance.CurrentUser.RemovePreference("FavoriteColor");[/code] &lt;P&gt;Behind the scenes, the preferences are saved in small XML files in a folder called 'UserPreferences' off of the root of your solution. I have noticed that this folder is not included in the current release of the SDK. I will make sure that this is corrected in the next release but in the mean time, you will need to create it manually. &lt;P&gt;IMPORTANT: Since each user will be updating their preference XML file, you need to make sure that you grant your users the ability to read and write in this folder.</description><pubDate>Wed, 11 Oct 2006 15:51:02 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Google map</title><link>http://www.c360.com/Forums/Topic654-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;The goal of this sample is to display a map of the area where an account or contact is located. Also, in the case of an order, we want to display directions to get to the delivery destination. (Please note that the starting address for the directions has be set to c360 Solutions' main office in Atlanta, but feel free to change it to your own address).&lt;/P&gt;&lt;P&gt;This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fetch data about the current account or order&lt;/LI&gt;&lt;LI&gt;Redirect the user to Google map and pass the information expected by Google in order to be able to display a map &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 1&lt;/U&gt;&lt;/STRONG&gt; – Edit ISV.config &lt;P&gt;This sample must be added as a new link on the left navigation bar of the Microsoft CRM account edit screen and the order edit screen as well. Therefore we need to edit the “account” and the “salesorder” entity sections in Microsoft CRM’s ISV.config file like so: &lt;P&gt;&lt;P&gt;[code]&amp;lt;ENTITY name="account"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;NAVBARITEM id=googleMap&lt;/P&gt;&lt;P&gt;       title="Google map"&lt;/P&gt;&lt;P&gt;       Url="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.aspx"&lt;/P&gt;&lt;P&gt;       Icon="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.jpg" /&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ENTITY name="salesorder"&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;NAVBARITEM id=googleMap&lt;/P&gt;&lt;P&gt;       title="Google map"&lt;/P&gt;&lt;P&gt;       Url="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.aspx"&lt;/P&gt;&lt;P&gt;       Icon="http://localhost:4589/c360Sdk/Samples/GoogleMap/GoogleMap.jpg" /&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;[/code]&lt;/P&gt;Note: you will need to adjust the url in the above sample to match your environment. &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Step 2&lt;/U&gt;&lt;/STRONG&gt; – Copy files&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “GoogleMap”. In this new folder, copy the image, the ASPX page and it’s corresponding code behind file: &lt;UL&gt;&lt;LI&gt;GoogleMap.jpg&lt;/LI&gt;&lt;LI&gt;GoogleMap.aspx&lt;/LI&gt;&lt;LI&gt;GoogleMap.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/d856001a-e0d5-4a9b-820f-a0f7.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/ff0caf00-5dc9-41c9-982a-b3be.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7a0e8773-306a-4da2-ab06-bc5d.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 22:16:27 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Stock Price</title><link>http://www.c360.com/Forums/Topic657-39-1.aspx</link><description>&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Overview&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;P&gt;The goal of this sample is to display stock market information for publicly traded companies. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fetch the stock symbol of the current account&lt;/LI&gt;&lt;LI&gt;Redirect the user to Google finance and pass the information expected by Google in order to be able to display the financial information.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1 – Edit ISV.config&lt;/U&gt;&lt;/P&gt;&lt;P&gt;This sample must be added as a new link on the left navigation bar of the Microsoft CRM account edit screen. Therefore we need to edit the “account” entity section in Microsoft CRM’s ISV.config file like so: &lt;/P&gt;&lt;P&gt;&lt;P&gt;[code]&amp;lt;ENTITY name="account"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;NAVBARITEM id=stockPrice&lt;/P&gt;&lt;P&gt;          title="Stock Price"&lt;/P&gt;&lt;P&gt;          Url="http://localhost:4589/c360Sdk/Samples/StockPrice/StockPrice.aspx"&lt;/P&gt;&lt;P&gt;          Icon=" /_imgs/ico_16_salesprocess.gif" /&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;[/code]&lt;/P&gt;Note: you will need to adjust the url in the above sample to match your environment. &lt;P&gt;&lt;U&gt;Step 2 – Copy files&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “StockPrice”. In this new folder, the ASPX page and its corresponding code behind file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;StockPrice.aspx&lt;/LI&gt;&lt;LI&gt;StickPrice.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/919f4460-8292-4a10-b8eb-2f72.PNG"&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/1cad69ef-3b3f-497a-a0ca-e89d.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 22:49:49 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Investment Accounts</title><link>http://www.c360.com/Forums/Topic656-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;P&gt;The goal of this sample is manage “investment accounts” related to CRM contacts. This information is maintained in an external database and we want to display the data in a grid at the contact level. We wan to be able to create new record, delete and update existing ones. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;List records from an external database in a grid&lt;/LI&gt;&lt;LI&gt;Add a “CustomAction” to a grid (the “delete” action)&lt;/LI&gt;&lt;LI&gt;Use an “ActionPage” to implement the custom action&lt;/LI&gt;&lt;LI&gt;Implement a custom “DoubleClickHandler” in a grid&lt;/LI&gt;&lt;LI&gt;Use an “Edit” page to create new records and update existing ones &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation &lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1 – Edit ISV.config&lt;/U&gt;&lt;/P&gt;&lt;P&gt;This sample must be added as a new link on the left navigation bar of the Microsoft CRM contact edit screen . Therefore we need to edit the “contact” entity section in Microsoft CRM’s ISV.config file like so: &lt;ENTITY name="contact"&gt;&lt;NAVBAR ValidForCreate="0" ValidForUpdate="1"&gt;&lt;NAVBARITEM id=investmentAccounts title="Investment Accounts" Icon="/_imgs/ico_16_1055_d.gif" Url="http://localhost:1465/c360Sdk/Samples/InvestmentAccounts/InvestmentAccounts.aspx" /&gt;&lt;/NAVBAR&gt;&lt;/ENTITY&gt;Note: you will need to adjust the url in the above sample to match your environment. &lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2 – Copy files&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “InvestmentAccounts”. In this new folder, copy the four ASPX pages and their corresponding code behind files:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Delete.aspx&lt;/LI&gt;&lt;LI&gt;Investment.aspx&lt;/LI&gt;&lt;LI&gt;Investments.aspx&lt;/LI&gt;&lt;LI&gt;InvestmentsFetchData.aspx&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; There are also three files included in this sample that must be copied to the App_Code folder in your solution:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;InvestmentAccount.cs&lt;/LI&gt;&lt;LI&gt;SqlHelper.cs&lt;/LI&gt;&lt;LI&gt;Util.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;Step 3 – Create the sample database&lt;/U&gt;&lt;/P&gt;&lt;P&gt;For your convenience, a SQL script called “CreateSampleDatabase.sql” is included with our samples to help you create the database but you can also choose to create it manually if you prefer. If you decide to create it manually, make sure to name it “c360SdkSamples”. &lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 4 – Create the table in the sample database&lt;/U&gt;&lt;/P&gt;&lt;P&gt;For you convenience, we have included a SQL script file called “CreateInvestmentAccountsTable.sql” to create this table and all the required fields. &lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 5 – Update the connection string&lt;/U&gt;&lt;/P&gt;&lt;P&gt;In you project’s web.config add the following: &lt;P&gt;[code]&amp;lt;CONNECTIONSTRINGS&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;ADD name="c360SdkSamples"&lt;/P&gt;&lt;P&gt;       providerName="System.Data.SqlClient"&lt;/P&gt;&lt;P&gt;       connectionString="Data Source=(local);database=c360SdkSamples;Integrated Security=True;" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/CONNECTIONSTRINGS&amp;gt;[/code]&lt;/P&gt;&lt;P&gt;Make sure to edit this connection string to match your environment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/9edfd32e-ba14-42d1-a031-b04e.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/c475561b-d5a2-44b2-9bdf-2530.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/848a2291-278c-4217-aae1-e47b.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/0662dfd1-7e3c-476c-af3e-6097.PNG"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/46bb23cb-97dc-4d51-8e9f-2bb4.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 22:40:42 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item><item><title>Google news</title><link>http://www.c360.com/Forums/Topic655-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;Overview&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;The goal of this sample is to fetch and display news articles related to an account. This sample demonstrates the following: · Fetch data about the current account&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Fetch news articles from Google’s RSS news feed&lt;/LI&gt;&lt;LI&gt;Display the articles&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Installation&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – Edit ISV.config This sample must be added as a new link on the left navigation bar of the Microsoft CRM account edit screen. Therefore we need to edit the “account” entity section in Microsoft CRM’s ISV.config file like so: &lt;/P&gt;&lt;P&gt;[code]&amp;lt;ENTITY name="account"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;NAVBAR ValidForUpdate="1" ValidForCreate="0"&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;NAVBARITEM id=googleNews&lt;/P&gt;&lt;P&gt;          title="Google news"&lt;/P&gt;&lt;P&gt;          Url="http://localhost:4589/c360Sdk/Samples/GoogleNews/GoogleNews.aspx"&lt;/P&gt;&lt;P&gt;          Icon="http://localhost:4589/c360Sdk/Samples/GoogleNews/GoogleNews.gif" /&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/NAVBAR&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ENTITY&amp;gt;[/code]&lt;/P&gt;Note: you will need to adjust the url in the above sample to match your environment. &lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “GooleNews”. In this new folder, copy the image, the ASPX page and it’s corresponding code behind file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GoogleNews.gif&lt;/LI&gt;&lt;LI&gt;GoogleNews.aspx&lt;/LI&gt;&lt;LI&gt;GoogleNews.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Screenshots&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/1e3b931f-de95-46aa-b18b-6a56.PNG"&gt;&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7922f229-d629-4451-82af-ac0b.PNG"&gt;</description><pubDate>Mon, 02 Oct 2006 22:25:50 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item></channel></rss>