<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Return Query Results from a map click event - using a related table... in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-query-results-from-a-map-click-event-using/m-p/60085#M1373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my setup�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;flex site - beta - &lt;/SPAN&gt;&lt;A href="http://gis.coweta.ga.us/cctax/index.html"&gt;http://gis.coweta.ga.us/cctax/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2005&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database Name: sde_publication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Main Data Layer: gisadmin.wingapparcels (spatial view)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Main Data Layer Key Field: realkey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Table I want to query through a parcel map click: gisadmin.saleinfo (has a realkey field that corresponds to gisadmin.wingapparcels)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem:&amp;nbsp; When a user clicks on a parcel, I would like to provide the user with the 2 most recent sales records (from these fields: gisadmin.saleinfo.saledate, gisadmin.saleinfo.saleprice)&amp;nbsp; much like the following website does: &lt;/SPAN&gt;&lt;A href="http://qpublic3.qpublic.net/ga_coweta.html?parcel=W09+++++++131&amp;amp;extent=2133091+1231089+2134415+1232073&amp;amp;layers=parcel_sales#2"&gt;http://qpublic3.qpublic.net/ga_coweta.html?parcel=W09+++++++131&amp;amp;extent=2133091+1231089+2134415+1232073&amp;amp;layers=parcel_sales#2&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; The sales information is in a separate table with many sales to each parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional Info:&amp;nbsp; The realkey field (in gisadmin.wingapparcels) is a unique Identifier that can be used to relate to the gisadmin.saleinfo table.&amp;nbsp; The realkey field is a one to many relationship from wingapparcels to saleinfo (one parcel to many sales).&amp;nbsp; I have done a query to select out the parcels that have had a sale during a specific time period �?? REALKEY in (select realkey from sde_publication.gisadmin.saleinfo where saledate &amp;gt;= �??2007-01-01�?? AND saledate &amp;lt;= �??2007-12-31�?? ).&amp;nbsp; This query selects all of the parcels sold in 2007.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, I would like to return the results in the &amp;lt;esri: outFields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be greatly appreciated!&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a selection that should return the top saledate field from the related saleinfo table - RecentSale1.text = graphic.attributes.RealKey in (select TOP 1 saledate FROM sde_Publication.gisadmin.saleinfo ORDER BY saledate);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 13:02:29 GMT</pubDate>
    <dc:creator>BrentKastor</dc:creator>
    <dc:date>2010-04-14T13:02:29Z</dc:date>
    <item>
      <title>Return Query Results from a map click event - using a related table...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-query-results-from-a-map-click-event-using/m-p/60085#M1373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my setup�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;flex site - beta - &lt;/SPAN&gt;&lt;A href="http://gis.coweta.ga.us/cctax/index.html"&gt;http://gis.coweta.ga.us/cctax/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2005&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Database Name: sde_publication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Main Data Layer: gisadmin.wingapparcels (spatial view)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Main Data Layer Key Field: realkey&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Table I want to query through a parcel map click: gisadmin.saleinfo (has a realkey field that corresponds to gisadmin.wingapparcels)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem:&amp;nbsp; When a user clicks on a parcel, I would like to provide the user with the 2 most recent sales records (from these fields: gisadmin.saleinfo.saledate, gisadmin.saleinfo.saleprice)&amp;nbsp; much like the following website does: &lt;/SPAN&gt;&lt;A href="http://qpublic3.qpublic.net/ga_coweta.html?parcel=W09+++++++131&amp;amp;extent=2133091+1231089+2134415+1232073&amp;amp;layers=parcel_sales#2"&gt;http://qpublic3.qpublic.net/ga_coweta.html?parcel=W09+++++++131&amp;amp;extent=2133091+1231089+2134415+1232073&amp;amp;layers=parcel_sales#2&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; The sales information is in a separate table with many sales to each parcel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional Info:&amp;nbsp; The realkey field (in gisadmin.wingapparcels) is a unique Identifier that can be used to relate to the gisadmin.saleinfo table.&amp;nbsp; The realkey field is a one to many relationship from wingapparcels to saleinfo (one parcel to many sales).&amp;nbsp; I have done a query to select out the parcels that have had a sale during a specific time period �?? REALKEY in (select realkey from sde_publication.gisadmin.saleinfo where saledate &amp;gt;= �??2007-01-01�?? AND saledate &amp;lt;= �??2007-12-31�?? ).&amp;nbsp; This query selects all of the parcels sold in 2007.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, I would like to return the results in the &amp;lt;esri: outFields&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be greatly appreciated!&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a selection that should return the top saledate field from the related saleinfo table - RecentSale1.text = graphic.attributes.RealKey in (select TOP 1 saledate FROM sde_Publication.gisadmin.saleinfo ORDER BY saledate);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 13:02:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-query-results-from-a-map-click-event-using/m-p/60085#M1373</guid>
      <dc:creator>BrentKastor</dc:creator>
      <dc:date>2010-04-14T13:02:29Z</dc:date>
    </item>
  </channel>
</rss>

