Select activity on a map layer with a join
For a search tool I'm developing, I'm using a QueryTask activity to query a parcels map layer in a map service (not a feature service). Before publishing the map document a join was created in it to a table in the geodatabase, so the resultant map service can be used to query the joined table.
The search works and I've created a SetMapExtent activity to zoom to the results which also works. The only problem is the SelectFeatures activity at the end of my workflow. This doesn't properly select the results in List View. The results window shows 'Parcel:' but without the actual parcel ID attribute that is normally displayed when you do an 'Identify' or selection on that map layer.
By way of comparison, I've done a similar workflow for a map layer that doesn't have a join in it, and this does work properly, so I suspect the issue is with the join.
Are joins supported by Essentials, or do I need to do this some other way, eg. creating a link to an object table in the map service or using an ArcGIS for Server relationship?
I have Essentials 3.15.1 and Silverlight Viewer 1.10.
Thanks
Mark.
-
What are you assigning for the Out Fields argument in your Query Task? I've had issues populating feature descriptions before because I haven't including the fields used by them (I usually just set Out Fields to "*" to select all fields in the map service layer).
0 -
I am using "*". That has got me thinking though. The QueryTask activity didn't have the attribute defined correctly. It needs to be defined in exactly the way that Geocortex recognises it. I've changed the definition of the attribute to BC_ASSESSMENT.RSN and the search works OK now.
So it looks like joins are supported.
Thanks for your response.
Mark.
0
Please sign in to leave a comment.
Comments
2 comments