List, Call it Brain damage, but I can't seem to get a basic concept. If I set up different query templates, say one for points and one for polylines, how do I define which layer is queried? I want to offer the ability to query one of several layers based on user selection, but don't know how I specify which one. Thanks, Kieran