Select to view content in your preferred language

Using Related Tables in Flex Viewer

5305
23
Jump to solution
05-31-2012 12:09 PM
AmySadler
Deactivated User
Hello! I am fairly new to using ArcGIS for Flex and am trying to set up a viewer for my organization. I am wanting to use the Query widget to allow users to search for information on a table. The table is related back to a layer and I can see it on my server, but when I go to use the data in the widget, I get error #1009. Is it possible to use a table in the query widget or does it have to be a feature class?

On a related note, can you use information in a related table to populate a "pop-up" for a feature?

Thanks very much for your help!
Amy S.
Tags (2)
0 Kudos
23 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   I am spending a bit of time trying to assist you with this, on a hijacked thread that has already been answered... Better forum etiquette would be to start your own thread.

   You need to add the relate info as outlined  in the "Enhanced Search Widget XML Configuration.pdf" page 5.         There are also examples of relate setup in the eSearchWidget.xml (Scroll down and look for the Road Centerline layer).
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

Thank you for your assistance and your advice on the forum ettiquette.  As such I will start a new thread about relates with the eSearch widget so you can get credit for answering my question.
0 Kudos
silvanagiberti
Emerging Contributor
Hello,

I am trying to use the eSearch widget with 2 related tables, but so far I have been able to see the data only of the first one. The difference is that the second table is related to the first table, so that in the <relate> section the ID is:
<relate id="8" ...>, where 8 is the ID of table#1.
I am not sure that this is actually possible with the eSearch widget, and eventually how?

Thanks,
Silvana
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Silvana,

  Unless you have 8 relates on that layer, you are using the wrong number of the relate ID. The relate ID is the first number presented in the relates section on the REST Endpoint page.
0 Kudos