Select to view content in your preferred language

How can I do this?

687
1
03-14-2013 11:32 AM
IB1
by
Regular Contributor
I feel like what I need to do is fairly simple, but I find the documentation confusing for using the Javascript API, probably because I'm new to it.

-----------------------------------

I published a map/feature service.

The data is inside an enterprise geodatabase.

-----------------------------------

The data consists of:

1) A point feature class that shows the location of different companies and contains the company name

2) One table that lists contact information for people and the company they are with

3) One table that lists generic contact information for the company

-----------------------------------

In ArcMap, I created an MXD. I added the point feature class and created 2 relates, one to the company table and one to the people table.

I then published this MXD as a map/feature service.

-----------------------------------

I need to make a web map that shows the location of the point feature class and when I click on one of the points I want it to show the related information.

How do I go about this?

How do I get the related information to show up when I click the point?

Can someone just point me in the right direction?

It doesn't need to be fancy.

Thanks for your help.
0 Kudos
1 Reply
ReneRubalcava
Honored Contributor
You could frankenstein the Query Related Records example (which is broken by the way)
http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_query_related/index.html
with the the Display identify results in popup
http://help.arcgis.com/EN/webapi/javascript/arcgis/jssamples/find_popup.html

Basically, do your related queries on a click event maybe (you can get the graphic and attributes on click of a featurelayer) and form the content of the window based on those results, then when done, show the infowindow.
0 Kudos