AnsweredAssumed Answered

show related points onclick on another point

Question asked by hamad2 on Jan 10, 2017
Latest reply on Jan 17, 2017 by hamad2

I have 2 points feature class,  stores, Customers and polyline feature(spider diagram- link each customer to its store),  sotreID is a field in all 3 layers attribute tables.

I am trying to create the functionality so that when a user clicks on any store, it's related point feature from customers to be shown  on my web app map as well as the spider diagram to be displayed on the map I don't need to show related table on related info in popup info,  There is a similar example  here Feature layer query multiple , but it's not exactly what I'm looking for because its showing only related tables.

I am wondering how to accomplish this tasks.  I have 2 ideas

1- onclick pass the storeID to  definition query on the customer feature and show the results in the map  or.

2- use relationshipquery.


Any hints or sample Code.