Hi,
I have a map service that holds a non-geographic table from a non-ArcGIS database. I need to connect that data to the map, so the properties can be highlighted, etc. There are fields in the table that match data in the map, such as account_number. How do I match the two so I can get each properties' coordinates or am I going about this wrong?
William
Solved! Go to Solution.
Yes, I missed that.
William,
Can you provide some details
If I had to guess you have not registered the correct database connection with the server.
All participating tables in the view must be registered with ArcGIS Server
Drew
Hi Drew,
Here are some more details:
The view of the two tables was published as a map service with a random layer, as it would not publish without a layer. I had shown the director your instructions on how to publish the table as a map document, but was told it needed to be a map service in order for me to access it.
William
That is true. You would need a dummy map layer in the service to get the tables to publish.
You can see we have similar in our REST endpoint (Search_Tables)
Reading above is sounds like a 1 to many relationship and not a 1 to 1 .this changes things too...
thinking....
Now I am not 100% on this.... but you might be able to do a 'relate' on the table and then publish.
Once published you will want to look at the executeRelationshipQuery
QueryTask | API Reference | ArcGIS API for JavaScript 3.19
Drew
Hi Drew,
I think I'll have to write a web service due to the one to many relationship of the data.
Thank you for all your help though. I learned a lot!
William
No problem. A web service is just as good and may provide more flexibility down the road.