Select to view content in your preferred language

Select related features look up datagrid.

6225
10
Jump to solution
02-11-2015 02:14 PM
RickeyFight
MVP Regular Contributor

So what I want to do, is to be able to select a line feature (trails) and have related lines, based on attributes, selected too.

What I am thinking is in a data grid.  I have been playing with ways to do this.

I have tried Query related records | ArcGIS API for JavaScript

I have tried Datagrid look up. Neither way seems to work the way I am wanting.

Ultimately I want to join this with the Elevations Profile web-app. I can do this part (I hope), if I can figure how to select related features.

Our data has multiple trails that split off of each other.

0 Kudos
10 Replies
KellyHutchins
Esri Notable Contributor

For the zoom portion you'll need to add code to get the feature's geometry and then zoom to that geometry. Have you added code to your app to do this but are running into problems? If so I'd suggest that you open a new question regarding the zoom to feature portion.

For the question about how to hide/show the table and make the bottom portion of the map clickable you can do this by showing/hiding the container.  You can do this using the esri/domUtils show/hide methods. Here's a jsbin that shows this:

Display Related Records