<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://serverx.esri.com/ESRIBlogs/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>Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx</link><description>Bryan Baker of the .NET SDK team wrote the following great post on extending a task to modify its behavior and then adding that task to the .NET Global Assembly Cache so it can be reused across applications. Note: Also see the follow-up to this post from</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#103</link><pubDate>Tue, 13 Feb 2007 17:00:49 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:103</guid><dc:creator>David</dc:creator><description>Some of the images don't show up in this entry, you might want to fix that.</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#104</link><pubDate>Tue, 13 Feb 2007 17:13:54 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:104</guid><dc:creator>Jeremy</dc:creator><description>&lt;p&gt;Thanks David,&lt;/p&gt;
&lt;p&gt;Those image references weren't supposed to be there. &amp;nbsp;Darn copy/paste...&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeremy&lt;/p&gt;
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#112</link><pubDate>Wed, 14 Feb 2007 01:12:04 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:112</guid><dc:creator>Carlos</dc:creator><description>Thanks for this example.  I have to implement something close to this example for next week and was able to tweak it for my needs.  Quick question - Do you know if ImageServer 9.2 works in ArcServer 9.2 (e.g. If I am serving up an .mxd and have a layer with the Image Server (Is it supposed to work in ArcServer?).  I tested it on my end and it shows up in ArcMap but does not display the image in the web page.</description></item><item><title>Setting the theme for the task</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#120</link><pubDate>Fri, 16 Feb 2007 17:43:01 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:120</guid><dc:creator>Bryan Baker</dc:creator><description>&lt;p&gt;We mentioned in the post that you could add a skin for the control. That would make the control have the same look-and-feel of other tasks and panels. Here's an example. &lt;/p&gt;
&lt;p&gt;This sets the properties to the &amp;quot;Blue Bridge&amp;quot; skin in the Web Mapping Application template. You would add this to the Default.skin file inside the App_Themes/Blue_Bridge folder inside your website.&lt;/p&gt;
&lt;p&gt;You may have to change the assembly to match your project's assembly name. If you generated your own strong-name key, you'd also need to update the PublicKeyToken (to get that value, open C:\Windows\Assembly with Windows Explorer, find your custom task assembly and copy the value there).&lt;/p&gt;
&lt;p&gt;You may also need to update the TagPrefix with the value assigned by Visual Studio when you drag the task into the ASPX web page.&lt;/p&gt;
&lt;p&gt;If you set the website to a different theme in web.config (or when you generated the site in Manager), you'd need to add this to the appropriate theme in App_Themes, and update the properties for color, images, etc.&lt;/p&gt;
&lt;p&gt;&amp;lt;%@ Register Assembly=&amp;quot;QuerySelectVB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f01cfa094a4a51a4&amp;quot;&lt;/p&gt;
&lt;p&gt;Namespace=&amp;quot;QuerySelect&amp;quot; TagPrefix=&amp;quot;cc1&amp;quot; %&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;cc1:QuerySelectTaskVB runat=&amp;quot;server&amp;quot; BackColor=&amp;quot;White&amp;quot; BorderColor=&amp;quot;#999999&amp;quot; BorderStyle=&amp;quot;Solid&amp;quot; &lt;/p&gt;
&lt;p&gt;BorderWidth=&amp;quot;1px&amp;quot; Font-Names=&amp;quot;Verdana&amp;quot; &lt;/p&gt;
&lt;p&gt;Font-Size=&amp;quot;8pt&amp;quot; ForeColor=&amp;quot;Black&amp;quot;&lt;/p&gt;
&lt;p&gt;TitleBarColor=&amp;quot;#2F5675&amp;quot; TitleBarHeight=&amp;quot;24px&amp;quot; TitleBarSeparatorLine=&amp;quot;True&amp;quot;&lt;/p&gt;
&lt;p&gt;Transparency=&amp;quot;0&amp;quot; Font-Bold=&amp;quot;True&amp;quot; TitleBarForeColor=&amp;quot;White&amp;quot;&lt;/p&gt;
&lt;p&gt;Visible=&amp;quot;False&amp;quot;&lt;/p&gt;
&lt;p&gt;DockingContainerElementID=&amp;quot;LeftPanelCellDiv&amp;quot; &lt;/p&gt;
&lt;p&gt;ShowDockedContextMenu=&amp;quot;True&amp;quot; &lt;/p&gt;
&lt;p&gt;ShowDockButton=&amp;quot;True&amp;quot; &lt;/p&gt;
&lt;p&gt;Docked=&amp;quot;False&amp;quot;&lt;/p&gt;
&lt;p&gt;TitleBarBackgroundImage=&amp;quot;~/App_Themes/Blue_Bridge/images/blue-gradient-24x1.gif&amp;quot; Width=&amp;quot;200px&amp;quot;/&amp;gt;&lt;/p&gt;
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#126</link><pubDate>Thu, 22 Feb 2007 12:12:51 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:126</guid><dc:creator>Philip Thompson</dc:creator><description>A large number of posters on the forums have enquired as to how they can modify the TaskResults container which contains the output of the task. Namely modifying the existing ContextMenuItems, and adding their own. The gist of how this can be achieved is spelled out in this thread.

http://forums.esri.com/Thread.asp?c=158&amp;f=2276&amp;t=213594&amp;mc=3
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#127</link><pubDate>Thu, 22 Feb 2007 21:50:46 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:127</guid><dc:creator>Janos Boda</dc:creator><description>I really liked your example, very clear and detailed steps to follow. Would it be possible to “Zoom To” the found feature (in my case most of the time only one feature or none) instead of highlighting it? What kind of modifications required to the code? 

Thanks,
Janos
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#132</link><pubDate>Fri, 23 Feb 2007 18:33:18 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:132</guid><dc:creator>Bryan Baker</dc:creator><description>&lt;p&gt;It would be possible to zoom to the features found, though it would take some work. You would need to add code at the end of the code in the sample, just before the close of the ExecuteTask method. That code would cast the graphics layer to a FeatureGraphicsLayer to get its FullExtent property, which would show the extent of all features found (or you could get geometry of individual features via the GeometryColumnName property).&lt;/p&gt;
&lt;p&gt;The chore would then be zooming the map to this extent. To access the Map control, you can use Page.FindControl with the Map's ID (typically Map1), unless the Map is inside another control, such as a floating panel, in which case you'd have to find the containing control first.&lt;/p&gt;
&lt;p&gt;Once you have the Map control reference, you can set its extent and call Map1.Refresh(). However, since the Map didn't initiate the callback, this won't by itself make the map refresh on the client--so far the Map is only &amp;quot;refreshed&amp;quot; on the server. To tell the client to refresh the map, copy the CallbackResults from the Map to the task, something like:&lt;/p&gt;
&lt;p&gt;CallbackResults.CopyFrom(Map1.CallbackResults). That should cause the Map to do its own callback and refresh the map.&lt;/p&gt;
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#139</link><pubDate>Mon, 26 Feb 2007 03:09:01 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:139</guid><dc:creator>Jorge Vinagre</dc:creator><description>&lt;p&gt;ArcGis Server 9.2 - Extend the TaskEditor Help&lt;/p&gt;
&lt;p&gt;Hi there. &lt;/p&gt;
&lt;p&gt;I'm having a problem and it seems that there isnt much documentation about this...&lt;/p&gt;
&lt;p&gt;(I&amp;#180;m rather new to this so excuse me if i dont use the correct terms :) &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;I need to extend the Editor task to do the fallowing:&lt;/p&gt;
&lt;p&gt;Add a new button to the panel and, when editing, let the user draw connected lines&lt;/p&gt;
&lt;p&gt;Then i have to capture the list of points when the user double clicks the map so i can use those points to perform some calculations and generate some other lines.&lt;/p&gt;
&lt;p&gt;Can anyone help to find some examples on this?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description></item><item><title>re: Extending the QueryAttributesTask to highlight selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#153</link><pubDate>Tue, 06 Mar 2007 18:07:17 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:153</guid><dc:creator>Kevin Mayo</dc:creator><description>Hello. 

I extended the QueryAttributesTask one step further to zoom to the selected record and it was pretty straight forward.  I ran into problems when I tried to zoom to polygons that were created with the Arc Tool in ArcEditor.  A record was returned but the envelope came back as null.  I tested the same layer after exporting to a shapefile, and it worked fine.  Is there a way to get the envelope of complex polygons without going to shapefile in ArcGIS Server?

Thanks.  

</description></item><item><title>re: extending the editor task</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#154</link><pubDate>Tue, 06 Mar 2007 18:15:26 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:154</guid><dc:creator>Bryan Baker</dc:creator><description>&lt;p&gt;Currently it's not really possible to extend the EditorTask. The good news is that Service Pack 2 will add some capabilities for customizing the EditorTask. Look for that in the next few weeks. &lt;/p&gt;
</description></item><item><title>实现zoom to the selected feature之三：Follow-up to Extending the QueryAttributes Task: Zooming to selected features</title><link>http://serverx.esri.com/ESRIBlogs/blogs/arcgisserver/archive/2007/02/12/Extending-the-QueryAttributesTask-to-highlight-selected-features.aspx#211</link><pubDate>Thu, 12 Jul 2007 06:25:35 GMT</pubDate><guid isPermaLink="false">b60b3f0a-e2bd-4be5-8a18-822c697649ab:211</guid><dc:creator>kylinindotnet</dc:creator><description>&lt;p&gt;Follow-uptoExtendingtheQueryAttributesTask:Zoomingtoselectedfeatures&lt;/p&gt;
&lt;p&gt;FromBryanBaker,a&lt;/p&gt;
</description></item></channel></rss>