Workflow show-FeatureSet-functionality for Silverlight viewer
Hi,
I've created a workflow that queries an external data source and the result is a FeatureSet with point features. The workflow works fine, I can see the result being sent over the wire to the Silverlight Viewer in Fiddler.
How can I show these features as a search result? I've tried using "Select Features", "TransferToClient<T>" etc. activities in my workflow but I can't seem to display them properly.
I do get a search result with the correct number of features but I don't get a table showing them and I can't see them in the map. I would like a summary-table, like the ones in a search result, with the map interaction (click->highlight/zoom to etc.).
Is there some workflow activity I'm not using correctly or could someone please point me in the direction of a solution for this?
Here's what I end up with:
/customer/servlet/servlet.FileDownload?file=00P6000000e87wQEAQ
Thanks,
Tobias
-
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 -
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 -
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,
Tobias0 -
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
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer