Skip to main content

Layer filter workflows

Comments

4 comments

  • Permanently deleted user
    I haven't tried implementing layer filters yet, but before I do I'd like to know if they work! Also, is it better to set up a startup Set Layer Definition or use a Layer Filter workflow? I'm unclear on which I should be using to replace my ArcMap definition queries. I don't have security set up for any sites yet, which it sounds like you need to do to use the latter. Any experience would be helpful.
    0
  • John Nerge
    They aren't currently working in GE 4.4 with the GVH 2.5. I hadn't tested layer filter workflows since GE 4.1 using the GVS, so I don't know about in between versions.

     

    In general, I've found that layer filter workflows are good if you want to permanently restrict access to certain records in a map layer for one or a group of users. However, I've seen a performance hit when applying too many of them in one site.

     

    Set layer definition is great for running in startup workflows, and you can do the same things you can with a layer filter workflow by using the same workflow activities. However, the advantage of set layer definition is that it's run as part of the viewer instead of on the layer at the site level, which means you can write other workflows that update the layer definition after the app has launched.

     

    I use this second method for some of our city inspectors. When the viewer first opens, a startup workflow runs that filters the open inspections layer to show only that inspectors inspections (using the Get Current User activity). But I also put a Show All Inspections tool in the I Want To menu so an inspector can change the definition to view all inspectors' inspections as well.
    0
  • Permanently deleted user
    If you're trying to restrict access to certain records in a layer using Layer Defintions, you need to be careful that the user does not have access to the Filter button (under the Find tab in the lastest Silverlight Viewer) otherwise they'll be able to view any layer defintions that have been applied via your workflows. They can then simply remove the definition if desired to view all data in the layer.

     

    Layer Definitions are applied on the Client after the map service has loaded, so the client needs locking down to prevent further access. In contrast, Layer Filter Workflows are applied on the Server, before the request returns to the client from ArcGIS Server, so there is no opportunity for the user to intercept and modify the result - they get the pre-filtered data only.

     

    This is an important distinction if you are looking to use Filtering for secure services.

     

    BTW did you get the Layer Filtering working in GVH 2.5?

     

    If not, you might want to look at your In Arguments - there have to be 3 very specific args according to the Help guide and I can only see 1 defined in your workflow above.
    0
  • John Nerge
    Great catch, Ewan. Unfortunately, while creating a new layer filter workflow that includes all of the arguments successfully filters the layer, it also causes a startup error message saying that the map service with the workflow applied is unavailable. The map layers from that service are available and can be used in the viewer, but a false error message every time the viewer loads clearly isn't acceptable.
    0

Please sign in to leave a comment.