Skip to main content

Workflow show-FeatureSet-functionality for Silverlight viewer

Comments

4 comments

  • Permanently deleted user

    Forgot to mention: If I click 'Table View' I get an unhandled Silverlight exception but by looking into search history I can zoom to the search result and end up with what seems like a correct extent in the map.

    Thanks,

    Tobias

    0
  • Permanently deleted user

    Hi Tobias,

    The "Select Features" activity in the "Common Viewer" toolbox group is the one you want.  It looks like you've supplied a valid Esri FeatureSet to the activity because you're getting a record count in the viewer.  The other two required fields are "Map Service Id" and "Layer Id".  These are the ID of the map service in your Essentials Site, as well as the ID of the Layer within the map service.  The viewer needs these so it can properly map the Esri FeatureSet to a Geocortex FeatureSet.

    Is your Essentials site publicly available?  If so, can you provide the URL and the layer your searching against?

    Dave

    0
  • Permanently deleted user

    Hi David,

    Thank you for answering.

    The data comes from a web service and is not present in the map. I managed to show the result features by mapping it to a layer in a dynamic map service, but that doesn't work out too good.

     

    The layer contains other data so the label for the result was 'Unknown'.

     

    In the Charlotte BingMaps sample site you show the geocode results with "Callouts", right? Is it possible to display my data the same way using a workflow somehow?

     

     

     

    The site is not publicly available, it's still early in the development phase so it's only bits and pieces so far...

    Thanks,

     

    Tobias

     

     
    0
  • Permanently deleted user

    Hi all,

    If anyone might be interested I solved this by using the 'TransferToClient' activity to send my FeatureSet over the wire to the client application.

    In the application I'm handling the activity and was able to pull the data out of the workflow using:

    In OnImportsSatisfied I hook up my ViewerWorkflowActivityDispatcher to listen for my ActivityID in the workflow:

    this.Dispatcher.RegisterExternalIdHandler("TransferResultActivityID", this.HandleShowResultsActivity);

    In the callback I extract the FeatuerSet, from the 'Data' property is the input-argument to the activity.

    public void HandleShowResultsActivity(ActivityContext context)

     

    {

     

      FeatureSet fs = context.GetValue("Data") as FeatureSet;

     

    Thanks,

    Tobias

    0

Please sign in to leave a comment.