Skip to content

Instantly share code, notes, and snippets.

@bradbrowne
Last active March 15, 2018 23:44
Show Gist options
  • Save bradbrowne/d985daf75ac12ae2ebb8ca17e0b6aa78 to your computer and use it in GitHub Desktop.
Save bradbrowne/d985daf75ac12ae2ebb8ca17e0b6aa78 to your computer and use it in GitHub Desktop.
πŸ› GeoCortex Setting ComboBox parameters in Runtime Modifications Sequence
<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>
</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>PresentationFramework</AssemblyReference>
<AssemblyReference>WindowsBase</AssemblyReference>
<AssemblyReference>PresentationCore</AssemblyReference>
<AssemblyReference>System.Xaml</AssemblyReference>
<AssemblyReference>System.ComponentModel.Composition</AssemblyReference>
<AssemblyReference>System.ServiceModel</AssemblyReference>
<AssemblyReference>System.Reactive.Core</AssemblyReference>
<AssemblyReference>System.Runtime.WindowsRuntime</AssemblyReference>
</sco:Collection>
</TextExpression.ReferencesForImplementation>
<Sequence sap2010:WorkflowViewState.IdRef="Sequence_2" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
<gwa1:DisplayForm FormDefinition="&lt;FormDefinition xmlns=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client&quot; xmlns:i=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ContainerFormItem xmlns:a=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items&quot;&gt;&lt;a:ArgumentName/&gt;&lt;a:IsVisible&gt;true&lt;/a:IsVisible&gt;&lt;a:ItemID&gt;Group1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:Description/&gt;&lt;a:FormItems&gt;&lt;a:FormItem i:type=&quot;a:ComboBoxFormItem&quot;&gt;&lt;a:ArgumentName&gt;suburb&lt;/a:ArgumentName&gt;&lt;a:IsVisible&gt;true&lt;/a:IsVisible&gt;&lt;a:ItemID&gt;ComboBox1&lt;/a:ItemID&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:DataItems/&gt;&lt;a:FilterByInputGeometry&gt;false&lt;/a:FilterByInputGeometry&gt;&lt;a:Label&gt;&lt;a:ArgumentName/&gt;&lt;a:IsVisible&gt;true&lt;/a:IsVisible&gt;&lt;a:ItemID/&gt;&lt;a:ToolTip/&gt;&lt;a:ValidationItems xmlns:b=&quot;http://schemas.datacontract.org/2004/07/Geocortex.Forms.Client.Items.Validation&quot;/&gt;&lt;a:LabelForItemID&gt;ComboBox1&lt;/a:LabelForItemID&gt;&lt;a:Text&gt;Suburb&lt;/a:Text&gt;&lt;/a:Label&gt;&lt;a:LayerSourceJson i:nil=&quot;true&quot;/&gt;&lt;a:ProxyUrl/&gt;&lt;a:QueryCascadingID/&gt;&lt;a:QueryDisplayOutputField/&gt;&lt;a:QueryServiceUrl/&gt;&lt;a:QueryValueOutputField/&gt;&lt;a:QueryWhereClause/&gt;&lt;a:SelectText/&gt;&lt;a:SelectedValue i:nil=&quot;true&quot;/&gt;&lt;a:Token/&gt;&lt;/a:FormItem&gt;&lt;/a:FormItems&gt;&lt;a:MaxWidth&gt;INF&lt;/a:MaxWidth&gt;&lt;a:Orientation&gt;Vertical&lt;/a:Orientation&gt;&lt;a:VisibleControlID i:nil=&quot;true&quot;/&gt;&lt;a:VisibleControlValue i:nil=&quot;true&quot;/&gt;&lt;/ContainerFormItem&gt;&lt;KnownTypes xmlns:a=&quot;http://schemas.microsoft.com/2003/10/Serialization/Arrays&quot;&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ContainerFormItem&lt;/a:string&gt;&lt;a:string&gt;Geocortex.Forms.Client.Items.ComboBoxFormItem&lt;/a:string&gt;&lt;/KnownTypes&gt;&lt;MaxHeight&gt;800&lt;/MaxHeight&gt;&lt;MaxWidth&gt;1000&lt;/MaxWidth&gt;&lt;Title&gt;Form Title&lt;/Title&gt;&lt;Version&gt;1.1&lt;/Version&gt;&lt;/FormDefinition&gt;" sap2010:WorkflowViewState.IdRef="DisplayForm_1">
<gwa1:DisplayForm.Body>
<ActivityAction x:TypeArguments="gcx:FormDefinition">
<ActivityAction.Argument>
<DelegateInArgument x:TypeArguments="gcx:FormDefinition" Name="form" />
</ActivityAction.Argument>
<Sequence DisplayName="RuntimeModifications" sap2010:WorkflowViewState.IdRef="Sequence_1">
<Sequence.Variables>
<Variable x:TypeArguments="gfci:ComboBoxFormItem" Name="comboBoxFormItem" />
</Sequence.Variables>
<Assign sap2010:Annotation.AnnotationText="&quot;http://arcgis-dev1.aamgroup.com/arcgis/rest/services/Origin/Environmental_Property_Registery/MapServer/0&quot;" DisplayName="Set QueryServiceURL" sap2010:WorkflowViewState.IdRef="Assign_1">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").QueryServiceUrl]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">["http://arcgis-dev1.aamgroup.com/arcgis/rest/services/Origin/Environmental_Property_Registery/MapServer/0"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Set WhereClause" sap2010:WorkflowViewState.IdRef="Assign_2">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").QueryWhereClause]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">1=1</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Set OutputValueField" sap2010:WorkflowViewState.IdRef="Assign_3">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").QueryValueOutputField]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Facility_Name</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Set OutputDisplayField" sap2010:WorkflowViewState.IdRef="Assign_4">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").QueryDisplayOutputField]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Facility_Name</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="Set DefaultValue" sap2010:WorkflowViewState.IdRef="Assign_5">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[form.Find(Of ComboBoxFormItem)("ComboBox1").SelectedValue]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">["Talinga Gas Plant"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="comboBoxFormItem Assign" sap2010:WorkflowViewState.IdRef="Assign_6">
<Assign.To>
<OutArgument x:TypeArguments="gfci:ComboBoxFormItem">[comboBoxFormItem]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="gfci:ComboBoxFormItem" xml:space="preserve">[new ComboBoxFormItem With {
.ItemID="RuntimeCombo1",
.Label=New LabelFormItem With { .Text="Runtime Combo"},
.ArgumentName="RuntimeCombo1",
.SelectText=" "}]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="QueryCascadingID Assign" sap2010:WorkflowViewState.IdRef="Assign_7">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[comboBoxFormItem.QueryCascadingID]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">[form.Find(Of ComboBoxFormItem)("ComboBox1").ItemID]</InArgument>
</Assign.Value>
</Assign>
<Assign sap2010:Annotation.AnnotationText="&quot;http://arcgis-dev1.aamgroup.com/arcgis/rest/services/Origin/Environmental_Property_Registery/MapServer/1&quot;" DisplayName="comboBoxFormItem.QueryServiceUrl Assign" sap2010:WorkflowViewState.IdRef="Assign_8">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[comboBoxFormItem.QueryServiceUrl]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">["http://arcgis-dev1.aamgroup.com/arcgis/rest/services/Origin/Environmental_Property_Registery/MapServer/1"]</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="comboBoxFormItem.QueryWhereClause Assign" sap2010:WorkflowViewState.IdRef="Assign_9">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[comboBoxFormItem.QueryWhereClause]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Facility_Name = '{0}'</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="comboBoxFormItem.QueryValueOutputField Assign" sap2010:WorkflowViewState.IdRef="Assign_10">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[comboBoxFormItem.QueryValueOutputField]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Facility_Name</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="comboBoxFormItem.QueryDisplayOutputField Assign" sap2010:WorkflowViewState.IdRef="Assign_11">
<Assign.To>
<OutArgument x:TypeArguments="x:String">[comboBoxFormItem.QueryDisplayOutputField]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:String">Facility_Name</InArgument>
</Assign.Value>
</Assign>
<Assign DisplayName="comboBoxFormItem.SelectedValue Assign" sap2010:WorkflowViewState.IdRef="Assign_12">
<Assign.To>
<OutArgument x:TypeArguments="x:Object">[comboBoxFormItem.SelectedValue]</OutArgument>
</Assign.To>
<Assign.Value>
<InArgument x:TypeArguments="x:Object">["Talinga Gas Plant"]</InArgument>
</Assign.Value>
</Assign>
<AddToCollection x:TypeArguments="gfci:FormItem" Collection="[form.FormItems]" DisplayName="AddToCollection&lt;FormItem&gt;" sap2010:WorkflowViewState.IdRef="AddToCollection`1_1" Item="[comboBoxFormItem]" />
</Sequence>
</ActivityAction>
</gwa1:DisplayForm.Body>
<gwa1:DisplayForm.FormInArguments>
<gwa:ArgumentWrapper x:TypeArguments="InArgument(scg:IEnumerable(gcx:DataItem))" IsRequired="False" Name="ComboBox1">
<gwa:ArgumentWrapper.Argument>
<InArgument x:TypeArguments="scg:IEnumerable(gcx:DataItem)" />
</gwa:ArgumentWrapper.Argument>
</gwa:ArgumentWrapper>
</gwa1:DisplayForm.FormInArguments>
<gwa1:DisplayForm.FormOutArguments>
<gwa:ArgumentWrapper x:TypeArguments="OutArgument" IsRequired="False" Name="suburb">
<gwa:ArgumentWrapper.Argument>
<OutArgument x:TypeArguments="x:Object" />
</gwa:ArgumentWrapper.Argument>
</gwa:ArgumentWrapper>
</gwa1:DisplayForm.FormOutArguments>
</gwa1:DisplayForm>
<sads:DebugSymbol.Symbol>d58BRDpcUHJvZ3JhbSBGaWxlcyAoeDg2KVxMYXRpdHVkZSBHZW9ncmFwaGljc1xHZW9jb3J0ZXggRXNzZW50aWFsc1xEZWZhdWx0XFJFU1QgRWxlbWVudHNcU2l0ZXNcVGVtcGxhdGVzXFdvcmtmbG93c1xBc3NldFxHaXN0XENvbWJvQm94U2V0UGFyYW1ldGVyc0F0UnVudGltZS54YW1sKkUDyAEOAgEBRgXGARgCAQJGJkbOEgIBLUwLtQEWAgEDUA1XFgIBKlgNXxYCASdgDWcWAgEkaA1vFgIBIXANdxYCAR54DYMBFgIBGoQBDYsBFgIBF4wBDZMBFgIBFJQBDZsBFgIBEZwBDaMBFgIBDqQBDasBFgIBC6wBDbMBFgIBCLQBDbQB3AECAQRVOFWkAQIBLFI5UnYCAStdOF07AgEpWjladwIBKGU4ZUUCASZiOWJ8AgElbThtRQIBI2o5an4CASJ1OHVNAgEgcjlydAIBH3pGelgCARuJATiJAWwCARmGATmGAVwCARiRATiRAaQBAgEWjgE5jgFbAgEVmQE4mQFNAgETlgE5lgFcAgESoQE4oQFFAgEQngE5ngFhAgEPqQE4qQFFAgENpgE5pgFjAgEMsQE4sQFNAgEKrgE5rgFZAgEJtAFJtAFbAgEHtAHFAbQB2QECAQU=</sads:DebugSymbol.Symbol>
</Sequence>
<sap2010:WorkflowViewState.ViewStateManager>
<sap2010:ViewStateManager>
<sap2010:ViewStateData Id="Assign_1" sap:VirtualizedContainerService.HintSize="242,128">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Assign_2" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_3" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_6" sap:VirtualizedContainerService.HintSize="242,64" />
<sap2010:ViewStateData Id="Assign_7" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_8" sap:VirtualizedContainerService.HintSize="242,128">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsAnnotationDocked">True</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="Assign_9" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_10" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_11" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="Assign_12" sap:VirtualizedContainerService.HintSize="242,60" />
<sap2010:ViewStateData Id="AddToCollection`1_1" sap:VirtualizedContainerService.HintSize="242,22" />
<sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="264,1486">
<sap:WorkflowViewStateService.ViewState>
<scg:Dictionary x:TypeArguments="x:String, x:Object">
<x:Boolean x:Key="IsExpanded">True</x:Boolean>
<x:Boolean x:Key="IsPinned">False</x:Boolean>
</scg:Dictionary>
</sap:WorkflowViewStateService.ViewState>
</sap2010:ViewStateData>
<sap2010:ViewStateData Id="DisplayForm_1" sap:VirtualizedContainerService.HintSize="289,1970" />
<sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="311,2094">
<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="351,2254" />
</sap2010:ViewStateManager>
</sap2010:WorkflowViewState.ViewStateManager>
</Activity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment