Select to view content in your preferred language

How to get at the definition query for a layer via flex

3771
13
08-10-2010 08:36 AM
BradleyMontgomery
Emerging Contributor
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?

Thanks,

Charlie Ware
Tags (2)
0 Kudos
13 Replies
tanyabisen
Emerging Contributor
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.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tanya,

    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.
0 Kudos
tanyabisen
Emerging Contributor
Hey Robert,

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..

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

Thanks again..

Regards,
Tanya
0 Kudos
tanyabisen
Emerging Contributor
Hey Robert,

I had told you that I was referring Thunderhead Explorer's sample of TOC and Legend.. I got it working in API..

I am posting the code..

Thanks for all you support

Tanya
0 Kudos