Hoppa till huvudinnehållet

About EditResultItems

Kommentarer

3 kommentarer

  • Permanently deleted user

    Hi David

    I hope the following shows some of the syntax.

    Regards

    Ralph

     

     

     

    <Activity mc:Ignorable="sap" x:Class="{x:Null}" sap:VirtualizedContainerService.HintSize="526,521" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" 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:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:gfc="clr-namespace:Geocortex.Forms.Client;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:s3="clr-namespace:System;assembly=System.ServiceModel" xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     

      <Sequence sap:VirtualizedContainerService.HintSize="486,481" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">

     

        <Sequence.Variables>

     

          <Variable x:TypeArguments="scg:IList(esri:EditResultItem)" Name="iListUpdateSucess" />

     

          <Variable x:TypeArguments="scg:IEnumerable(esri:Graphic)" Name="fsAddress" />

     

          <Variable x:TypeArguments="x:String" Name="_AddressFeatureService" />

     

        </Sequence.Variables>

     

        <sap:WorkflowViewStateService.ViewState>

     

          <scg:Dictionary x:TypeArguments="x:String, x:Object">

     

            <x:Boolean x:Key="IsExpanded">True</x:Boolean>

     

          </scg:Dictionary>

     

        </sap:WorkflowViewStateService.ViewState>

     

        <gwa1:UpdateFeatures FeatureLayerUrl="[_AddressFeatureService]" Features="[fsAddress]" sap:VirtualizedContainerService.HintSize="464,111" Results="[iListUpdateSucess]" />

     

        <If Condition="[iListUpdateSucess.Item(0).Success]" sap:VirtualizedContainerService.HintSize="464,206">

     

          <If.Then>

     

            <gwa1:Alert sap:VirtualizedContainerService.HintSize="219,100" Text="Success!" Title="Result" />

     

          </If.Then>

     

          <If.Else>

     

            <gwa1:Alert sap:VirtualizedContainerService.HintSize="220,100" Text="[iListUpdateSucess.Item(0).ErrorDescription]" Title="Result" />

     

          </If.Else>

     

        </If>

     

      </Sequence>

     

    </Activity>
    0
  • Permanently deleted user

    Hi Ralph, appreciate the reply.

    I took at a look at your code and implemented it into my Workflow.  In my case, I was in the process of Adding new Features into a Feature Layer, but when the process fails, the Workflow throws an error before it can reach the "If (iListUpdateSucess.Item(0).Success)" statement.

    Any idea around this?

    Regards,

    David

    0
  • Permanently deleted user

    Hi David

    can you post your workflow?

    Ralph

    0

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