I have a base layer on top of which I will plot two separate feature layers, one containing polygons and the other containing points. Now I have to find the points which plot into the polygon. I tried various examples like https://developers.arcgis.com/javascript/jssamples/util_relation.html but somehow things are not getting done.
Can anyone suggest a better idea?