Hoppa till huvudinnehållet

Highlight all selected features

Kommentarer

6 kommentarer

  • Permanently deleted user
    Hi Dan, 

     

    Unfortunately the HTML5 viewer does not have an equivalent "Select All" feature that will select all the results returned from an Identify. However, you can create a simple workflow that you can run after you perform an Identify to highlight all the selected features. 

     

    I have attached a workflow that I created which will highlight all selected features on the map: <Activity mc:Ignorable="sads sap sap2010" x:Class="ActivityBuilder" mva:VisualBasic.Settings="{x:Null}" sap2010:WorkflowViewState.IdRef="ActivityBuilder_1" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:eac="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:eacg="clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client" xmlns:eact="clr-namespace:ESRI.ArcGIS.Client.Tasks;assembly=ESRI.ArcGIS.Client" xmlns:gce="clr-namespace:Geocortex.Core.Extensions;assembly=Geocortex.Core" xmlns:gcx="http://apis.geocortex.com/2009" xmlns:gfc="clr-namespace:Geocortex.Forms.Client;assembly=Geocortex.EssentialsWpfApi" xmlns:gfci="clr-namespace:Geocortex.Forms.Client.Items;assembly=Geocortex.EssentialsWpfApi" xmlns:gr="clr-namespace:Geocortex.Reporting;assembly=Geocortex.Reporting" xmlns:gwa="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow" xmlns:gwa1="clr-namespace:Geocortex.Workflow.Activities;assembly=Geocortex.Workflow.Activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=System.Core" xmlns:s1="clr-namespace:System;assembly=System" xmlns:s2="clr-namespace:System;assembly=mscorlib" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib" xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <TextExpression.NamespacesForImplementation> <sco:Collection x:TypeArguments="x:String"> <x:String>System.Activities</x:String> <x:String>System.Activities.Statements</x:String> <x:String>System.Activities.Expressions</x:String> <x:String>System.Activities.Validation</x:String> <x:String>System.Activities.XamlIntegration</x:String> <x:String>ESRI.ArcGIS.Client</x:String> <x:String>ESRI.ArcGIS.Client.Geometry</x:String> <x:String>ESRI.ArcGIS.Client.Tasks</x:String> <x:String>Geocortex.Core.Extensions</x:String> <x:String>Geocortex.Workflow.Activities</x:String> <x:String>Geocortex.Forms.Client</x:String> <x:String>Geocortex.Forms.Client.Items</x:String> <x:String>Geocortex.Reporting</x:String> <x:String>System</x:String> <x:String>Microsoft.VisualBasic.Activities</x:String> <x:String>System.Collections.Generic</x:String> <x:String>System.Linq</x:String> <x:String>System.Windows.Markup</x:String> <x:String>Geocortex.Essentials.Client</x:String> </sco:Collection> </TextExpression.NamespacesForImplementation> <TextExpression.ReferencesForImplementation> <sco:Collection x:TypeArguments="AssemblyReference"> <AssemblyReference>System.Activities</AssemblyReference> <AssemblyReference>ESRI.ArcGIS.Client</AssemblyReference> <AssemblyReference>Geocortex.Core</AssemblyReference> <AssemblyReference>Geocortex.Workflow</AssemblyReference> <AssemblyReference>Geocortex.EssentialsWpfApi</AssemblyReference> <AssemblyReference>Geocortex.Reporting</AssemblyReference> <AssemblyReference>System.Core</AssemblyReference> <AssemblyReference>System</AssemblyReference> <AssemblyReference>mscorlib</AssemblyReference> <AssemblyReference>PresentationCore</AssemblyReference> <AssemblyReference>WindowsBase</AssemblyReference> <AssemblyReference>PresentationFramework</AssemblyReference> <AssemblyReference>System.Xaml</AssemblyReference> </sco:Collection> </TextExpression.ReferencesForImplementation> <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"> <Sequence.Variables> <Variable x:TypeArguments="scg:List(gcx:EssentialsFeatureSet)" Name="listFeatureSet" /> </Sequence.Variables> <gwa1:RunExternalCommand CommandName="RemoveHighlightLayer" CommandParameter="[&quot;highlightLayer&quot;]" sap2010:WorkflowViewState.IdRef="RunExternalCommand_1" /> <gwa1:RunExternalCommand CommandName="CreateHighlightLayer" CommandParameter="[&quot;highlightLayer&quot;]" sap2010:WorkflowViewState.IdRef="RunExternalCommand_2" /> <gwa1:RunExternalCommand CommandName="SetActiveHighlightLayer" CommandParameter="[&quot;highlightLayer&quot;]" sap2010:WorkflowViewState.IdRef="RunExternalCommand_3" /> <gwa1:GetSelectedFeatures sap2010:WorkflowViewState.IdRef="GetSelectedFeatures_1" SelectedFeatures="[listFeatureSet]" /> <ParallelForEach x:TypeArguments="gcx:EssentialsFeatureSet" DisplayName="ParallelForEach&lt;EssentialsFeatureSet&gt;" sap2010:WorkflowViewState.IdRef="ParallelForEach`1_1" Values="[listFeatureSet]"> <ActivityAction x:TypeArguments="gcx:EssentialsFeatureSet"> <ActivityAction.Argument> <DelegateInArgument x:TypeArguments="gcx:EssentialsFeatureSet" Name="item" /> </ActivityAction.Argument> <gwa1:RunExternalCommand CommandName="HighlightEsriFeatureSet" CommandParameter="[item.EsriFeatureSet]" sap2010:WorkflowViewState.IdRef="RunExternalCommand_4" /> </ActivityAction> </ParallelForEach> <sads:DebugSymbol.Symbol>d3FDOlxQcm9ncmFtIEZpbGVzICh4ODYpXExhdGl0dWRlIEdlb2dyYXBoaWNzXEdlb2NvcnRleCBFc3NlbnRpYWxzXEdFXFJFU1QgRWxlbWVudHNcU2l0ZXNcSGlnaGxpZ2h0QWxsRmVhdHVyZXMueGFtbBFCA1MOAgEBRgVGqgECAQ9HBUeqAQIBDEgFSK0BAgEJSQVJfQIBB0oFURcCAQJGUkZwAgERRipGQAIBEEdSR3ACAQ5HKkdAAgENSFVIcwIBC0gqSEMCAQpJaEl6AgEISrgBSsoBAgEGTwlPqgECAQNPWU9wAgEFTy5PRwIBBA==</sads:DebugSymbol.Symbol> </Sequence> <sap2010:WorkflowViewState.ViewStateManager> <sap2010:ViewStateManager> <sap2010:ViewStateData Id="RunExternalCommand_1" sap:VirtualizedContainerService.HintSize="349,86" /> <sap2010:ViewStateData Id="RunExternalCommand_2" sap:VirtualizedContainerService.HintSize="349,86" /> <sap2010:ViewStateData Id="RunExternalCommand_3" sap:VirtualizedContainerService.HintSize="349,86" /> <sap2010:ViewStateData Id="GetSelectedFeatures_1" sap:VirtualizedContainerService.HintSize="349,111" /> <sap2010:ViewStateData Id="RunExternalCommand_4" sap:VirtualizedContainerService.HintSize="319,86" /> <sap2010:ViewStateData Id="ParallelForEach`1_1" sap:VirtualizedContainerService.HintSize="349,234" /> <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="371,887"> <sap:WorkflowViewStateService.ViewState> <scg:Dictionary x:TypeArguments="x:String, x:Object"> <x:Boolean x:Key="IsExpanded">True</x:Boolean> </scg:Dictionary> </sap:WorkflowViewStateService.ViewState> </sap2010:ViewStateData> <sap2010:ViewStateData Id="ActivityBuilder_1" sap:VirtualizedContainerService.HintSize="411,967" /> </sap2010:ViewStateManager> </sap2010:WorkflowViewState.ViewStateManager> </Activity>

     

    I hope this helps.

     

    Regards, 

     

    Carmen
    0
  • Permanently deleted user
    Stupid question....can you somehow trigger this to run after a search or identify operation done using the out of the box identify tools and global search? If so how? 
    0
  • Permanently deleted user
    Thanks Carmen. I tried to use the last version you posted but got this error. I assumed it would have prompted me to perform an identify but it didn't. Just got the error.

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000Xcwj&feoid=Body&refid=0EM60000000XwQD"_/_img_

     

     
    0
  • Permanently deleted user
    Also wondering if it's possible to add an activity that will zoom to the extent of the results.
    0
  • Bryan Townsend
    very helpful, works great, thank you for sharing this workflow! 
    0
  • Permanently deleted user
    I am new to creating workflows etc...  I have a similar problem in that I want the searched or identified features to automatically be highlighted.  How do I get your workflow above to work with my site.  I have copied your text from above into workflow designer and then saved it.  I then imported the workflow into my site but it isn't working.  Am I missing a step?  Any help would be greatly appreciated.  Thanks.
    0

Du måste logga in om du vill lämna en kommentar.