<?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 Re: How to get at the definition query for a layer via flex in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395604#M9238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ahh...I was referring Thunderhead explorers Merged Table of Contents and Legend information link...but in that also I believe there are issues..No issues may be will have to find a different workaround then.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing..I have also posted a query regarding Geoprocessing task.I still haven't received any replies,just wanted to know is their any solution to that isssue..there has been many views to taht thread but no reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 11:21:55 GMT</pubDate>
    <dc:creator>tanyabisen</dc:creator>
    <dc:date>2011-07-27T11:21:55Z</dc:date>
    <item>
      <title>How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395592#M9226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From within Flex I need to get at the definition query for a feature class in an MXD that's being used for a map service. I can see the definition query (it's called the Definition Expression) when I look at the properties of a map service layer through REST. However I cannot find a method to get at it through flex. LayerDetails returns just about everything else except the definition expression. Is there a function that returns the definition expression?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Ware&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 15:36:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395592#M9226</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2010-08-10T15:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395593#M9227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try using ArcGISDynamicMapServiceLayer.layerDefinitions. I use this to set layer definitions at run-time. Not sure if it displays layer Definitions defined from the MXD but know it will display layer definitions defined at run-time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 17:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395593#M9227</guid>
      <dc:creator>DavidGalluzzo</dc:creator>
      <dc:date>2010-08-10T17:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395594#M9228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tested this and the layer definitions are null unless I set one in the flex application. The layer definitions don't seem to contain the MXD definition query. Thanks though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 19:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395594#M9228</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2010-08-10T19:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395595#M9229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Charlie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; This is the best way I know how to get at it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
import com.esri.serialization.json.JSON;

private var httpServ:HTTPService;

httpServ2 = new HTTPService;
httpServ2.url = "http://yourServer/arcgis/rest/services/yourService/mapserver/0?f=json";
httpServ2.addEventListener(ResultEvent.RESULT, xmlResult);
httpServ2.addEventListener(FaultEvent.FAULT, xmlFault);
httpServ2.send();

private function xmlResult(event:ResultEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var Info:Object = JSON.decode(event.result.toString());
&amp;nbsp;&amp;nbsp;&amp;nbsp; var defExpr:String = Info.definitionExpression;
}

private function xmlFault(event:FaultEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var sInfo:String = "Error: ";
&amp;nbsp;&amp;nbsp;&amp;nbsp; sInfo += "Event Target: " + event.target + "\n\n";
&amp;nbsp;&amp;nbsp;&amp;nbsp; sInfo += "Event Type: " + event.type + "\n\n";
&amp;nbsp;&amp;nbsp;&amp;nbsp; sInfo += "Fault Code: " + event.fault.faultCode + "\n\n";
&amp;nbsp;&amp;nbsp;&amp;nbsp; sInfo += "Fault Info: " + event.fault.faultString;
&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(sInfo);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395595#M9229</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T18:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395596#M9230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much Robert!! What would we do without you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 20:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395596#M9230</guid>
      <dc:creator>BradleyMontgomery</dc:creator>
      <dc:date>2010-08-11T20:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395597#M9231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to set the definition of a layer based on user input.&amp;nbsp; Has anyone done this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Nov 2010 16:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395597#M9231</guid>
      <dc:creator>PaulLang</dc:creator>
      <dc:date>2010-11-23T16:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395598#M9232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul - Did you have any luck setting the definition query through flex? I wanted to make it a part of my geoprocessing model but have not have any luck with that approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barb&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 17:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395598#M9232</guid>
      <dc:creator>BarbaraPatterson</dc:creator>
      <dc:date>2010-11-29T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395599#M9233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just found the thread again, and no luck with the code!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 19:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395599#M9233</guid>
      <dc:creator>PaulLang</dc:creator>
      <dc:date>2011-02-07T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395600#M9234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert I was trying to implement your code but httpServ2,this variable.. throws an error..Am i missing something.. ?? I wanted to ask whether simultaneously it will be reflected in my TOC also ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 11:38:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395600#M9234</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-07-26T11:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395601#M9235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tanya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The code had a typo. You need to correct this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;private var httpServ&lt;STRONG style="color: Red;"&gt;2&lt;/STRONG&gt;:HTTPService;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have been asking a lot about the TOC... There is no TOC component out of the box in the flex API so you need to be specific as to which sample or source code you are referring to. But the bottom line is NONE of the TOC's that I have seen respond to programmatic changes. If you want a certain layer to enabled by default than that layer needs to checked on in ArcMap before you publish the MXD. All the TOC's out there read the default visibility that is set by ArcMap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 11:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395601#M9235</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-26T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395602#M9236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks again Robert for your response... I am referring to Dynamic Layers ON/OFF sample .. If I can combine the TOC and legend together using Flex API...half my issue would be resolved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 02:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395602#M9236</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-07-27T02:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395603#M9237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tanya,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; That is a tall order, and on many peoples wish list. No one has posted source code to do this for just the API. And converting what I have done for the Flex Viewer is not in the cards right now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 10:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395603#M9237</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-27T10:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395604#M9238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ahh...I was referring Thunderhead explorers Merged Table of Contents and Legend information link...but in that also I believe there are issues..No issues may be will have to find a different workaround then.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One more thing..I have also posted a query regarding Geoprocessing task.I still haven't received any replies,just wanted to know is their any solution to that isssue..there has been many views to taht thread but no reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:21:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395604#M9238</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-07-27T11:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get at the definition query for a layer via flex</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395605#M9239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had told you that I was referring Thunderhead Explorer's sample of TOC and Legend.. I got it working in API.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am posting the code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all you support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 09:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-get-at-the-definition-query-for-a-layer-via/m-p/395605#M9239</guid>
      <dc:creator>tanyabisen</dc:creator>
      <dc:date>2011-07-29T09:48:08Z</dc:date>
    </item>
  </channel>
</rss>

