<?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 using sql server in flex in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258959#M7902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does anyone has an example of using SQL server in Flexviewer?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2014 13:55:35 GMT</pubDate>
    <dc:creator>NasifAlshaier</dc:creator>
    <dc:date>2014-12-17T13:55:35Z</dc:date>
    <item>
      <title>using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258959#M7902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does anyone has an example of using SQL server in Flexviewer?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 13:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258959#M7902</guid>
      <dc:creator>NasifAlshaier</dc:creator>
      <dc:date>2014-12-17T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258960#M7903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nasif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean by using SQL server in Flex, are you talking about an enterprise geodatabase held in SQL, being served through ArcGIS Server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please expand on your question&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 13:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258960#M7903</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-12-17T13:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258961#M7904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Anthony&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Flexviewer. I have a mapserver&amp;nbsp; for a layer. I want my users when they click on a point to be able to retrieve data from a SQL table that is in my SQL server database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 14:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258961#M7904</guid>
      <dc:creator>NasifAlshaier</dc:creator>
      <dc:date>2014-12-17T14:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258962#M7905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say you have a layer from a mapserver is this an ArcGIS server? and have you configured your flex viewer to look at the REST endpoint, it will be something like this in your main config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN&gt;&amp;lt;layer label="Demographics" type="dynamic" visible="false" alpha="0.5" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer" rel="nofollow" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so you can configure your viewer to make use of pop ups, see the help here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/" title="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Pop_up_configuration_files/01m30000002q000000/"&gt;ArcGIS Viewer for Flex&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not using the REST endpoint and your layer is coming from a WMS there is currently no capability in the flex viewer to see the attributes (getFeatureInfo has not been implemented)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 15:53:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258962#M7905</guid>
      <dc:creator>AnthonyGiles</dc:creator>
      <dc:date>2014-12-17T15:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258963#M7906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, you want to query SQL DB data based on a selection from a layer. I don't do much active Flex development, but I still maintain a large Flex app and build/update services for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd say you have a few options.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Related Records *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can add the SQL tables to the original MXD and publish them with service as &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r3000000nt000000"&gt;related records you can query&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. WSDL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A &lt;A href="http://msdn.microsoft.com/en-us/library/ms996486.aspx"&gt;WSDL&lt;/A&gt; is cheap and dirty, but &lt;A href="http://help.adobe.com/en_US/Flex/4.0/AccessingData/WS2db454920e96a9e51e63e3d11c0bf69084-7fdb.html"&gt;works pretty good with Flex&lt;/A&gt; apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Create a REST API for SQL DB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You can write a vanailla REST API that access your SQL DB data. Lots of resources on the web and this forum on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. RemoteObjects&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This one is a little trickier, but is a classic when &lt;A href="http://help.adobe.com/en_US/Flex/4.0/AccessingData/WS2db454920e96a9e51e63e3d11c0bf69084-7fda.html"&gt;building services &lt;/A&gt;that communicate with Flex apps. Not fully recommended these days, I don't think, but still effective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* I would recommend &lt;A href="https://developers.arcgis.com/flex/sample-code/related-records.htm"&gt;using Related Records&lt;/A&gt; with a Flex app. No extra fuss getting things up and running. Unless you need a more complex query or do things like JOINS of tables, this is probably the easiest method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 16:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258963#M7906</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2014-12-17T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258964#M7907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you talking about flex connect to sql server DB? flex cannot directly connect to sql server DB, it need through some web server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I follow the link below, it works:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.codeproject.com/Articles/37649/Flex-Communication-with-ASP-NET-WebService"&gt;http://www.codeproject.com/Articles/37649/Flex-Communication-with-ASP-NET-WebService&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 10:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258964#M7907</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-12-18T10:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: using sql server in flex</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258965#M7908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the help.. I got very good idea on what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nasif Alshaier&lt;/P&gt;&lt;P&gt;Computer Services Manager&lt;/P&gt;&lt;P&gt;305-375-2775 Phone * 305-375-4940 Fax&lt;/P&gt;&lt;P&gt;"Delivering Excellence Every Day"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 21:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/using-sql-server-in-flex/m-p/258965#M7908</guid>
      <dc:creator>NasifAlshaier</dc:creator>
      <dc:date>2014-12-19T21:03:04Z</dc:date>
    </item>
  </channel>
</rss>

