Select to view content in your preferred language

FEATURELAYER does not work when any OUTFIELDS are invalid (in arcgis api 3.0)

1020
0
12-06-2012 08:46 AM
AnastasiaAourik
Emerging Contributor
Hi All,
I have upgraded to ArcGIS Silverlight API 3.0 and now some of my existing code has undesired behavior.
If you have a featurelayer where any of the outfields specified are invalid the entire featurelayer is not shown at all.

In version 2.2 (my last version - I know I've neglected to upgrade several releases between 2.2 and 3.0) invalid outfields were simply ignored.
I liked that feature because in my custom featurelayermaptips I used that behavior to define category titles for sets on outfield.
Now I have to rewrite all that code.
And do it in my custom featurelayermaptip code, yuck.

For example,
                           
<esri:FeatureLayer ID="Bit Runs" Visible="False"  Mode="OnDemand"                                                             OutFields="General_Well_Information,WELL_NAME_NUMBER,HOLE_DIRECTION,FIELD,RIG_NAME_NUMBER,OPERATOR,CONTRACTOR,SPUD_DATE,TD_DATE,TOTAL_DEPTH,TIGHTHOLE,Bit_Run_Information,ASSEMBLY_RUN_NBR,RUN_START_DATE,BIT_SIZE,BIT_TYPE,BIT_MANUFACTURER,BOM_NBR,DRILLING_TD_DATE,TOTAL_DEPTH,TOTAL_DEPTH_METRIC,MAX_DEG_DEVIATION,Run_Metrics,DEPTH_IN,DEPTH_IN_METRIC,DEPTH_OUT,DEPTH_OUT_METRIC,INTERVAL_DRILLED,INTERVAL_DRILLED_METRIC,ACTUAL_HOURS,ROP,REASON_PULLED,Other,LATITUDE,LONGITUDE,WELL_ID,WELL_SITE_CD,DOC_WELL_ID"                                       
Url="http://wellsgis.slb.com:6080/arcgis/rest/services/wellsgisnew/BitAtg/MapServer/5"/>

I used the dummy outfields General_Well_Information, Bit_Run_Information,Run_Metrics, and Other to make a nice looking
hover over map tip. See attached jpg.

BTW:
FEATURELAYER consumed from ARCGIS 10.1 MAP SERVICE does not work if you still use ARCGIS SILVERLIGHT API 2.2 - You must upgrade!  Not sure if you must upgrade to 3.0 or if 2.4 is sufficient.
0 Kudos
0 Replies