Set Layer Definition for Feature Service?
I am having issues using the 'Set Layer Definition' activity with my feature service. Does this only work for map services? I am using the query task to query for a unique job id, zoom to it, etc. But I only want to show that one record since the editor only cares about that one record. When I use the said activity, I get an error saying: Workflow Error - Set Layer Definition: unable to find map service with ID '6' or map service type does not support layer definitions.
The latter part of this error makes me wonder if feature services are not supported.
The definition parameter is the same as my where clause in my query task, also for map service with ID '6'. I tried hard-coding the definition parameter with no luck too. SO, I am fairly confident is is not an error in my definition syntax. I am able to successfully use Advvanced filtering in the TOC to show just the one record with the same syntax.
Ideas?
thanks,
Ryan
-
Hi Ryan,
Feature Server layers don't have a "layer definition" that you can set. So, the workflow activity thinks it is not supported.
We added some code to the Silverlight and Javascript APIs to use the WHERE clause for the layer if there was no dedicated layer definition field. You will be able to use the Set Layer Definition activity with feature services in the next releases of the HTML5 and Silverlight viewers (1.3 and 1.10 respectively)
Regards,
-Malcolm
0 -
Thanks for the information Malcom.
Ryan
0 -
I am running HTML5 viewer 5.13 - but can't find any of this information in the docs.
Can you show me an example of this or direct me to this functionality?
0 -
Hi Sam,
I just tried a quick test using the Set Layer Definition workflow activity, using the Layer ID and Layer Name for a FeatureServer backed layer, and it worked as expected (only showing the features as described in the layer definition).
What information did you expect to find in the docs?
Regards,
-Malcolm
0 -
Sorry guys, i am new to geocortex. How do i get a correct Map Service ID? I am getting "Unable to find map service with ID '0'" error. I have a map service arcgis/rest/services/EMMA/EMMA_Commitments_20160714/FeatureServer/0 with one layer in it. I am usng SetLayerDefinition activity. It does not work for me. 0 -
The Map Service ID is specific to your Geocortex site. You can look them up by opening the site's REST endpoint (click the icon that looks like a chain link and a green arrow). Each Map Service ID is listed in parenthesis next to the Map Service Name.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90760000000Xd2X&feoid=Body&refid=0EM60000000XwZe" _/_img_0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare