JOIN tables in Arcmap and Outfileds for REST map service problem. Maptips.

601
1
09-23-2011 08:36 AM
NoneNone
New Contributor
Hi.
I've created JOIN on every layer of a certain mxd project.  There are some duplicated fields in a resulting query.  Consuming silverlight application does not see values for data points returned by mapserver.

I put * in outfields property like this:
<esri:FeatureLayer  ID="SeeCondition" 
                                   Url="http://arcservices/ArcGIS/rest/services/Condition/MapServer/4"
                                   OutFields="*" DisableClientCaching="True">

and try to bind to some fields like this:

<esri:FeatureLayer.MapTip>
...
<StackPanel Margin="7">
                                <StackPanel Orientation="Vertical">
                                    <TextBlock Text="Date:">
                                     <Run Text="{Binding [date_event]}" />
                                    </TextBlock>

and so on.

I also tried putting full name to field (i.e. dbo.SEECONDITION.date_event) but to no avail.

How can I resolve data field, so they are visible to binding?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
I think you need to replace your binding statement with the field name (see highlighted code) or use ItemsControl to show all attributes (see Grid).
<esri:FeatureLayer ID="MyFeatureLayer" Url="http://faith/ArcGIS/rest/services/MontgomeryJoined/MapServer/0" OutFields="*" DisableClientCaching="True">
 <esri:FeatureLayer.MapTip>
  <!--<Grid>
   <Grid.ColumnDefinitions>
    <ColumnDefinition Width="Auto"/>
    <ColumnDefinition Width="*"/>
   </Grid.ColumnDefinitions>
   <ItemsControl ItemsSource="{Binding Keys}" Grid.Column="0" />
   <ItemsControl ItemsSource="{Binding Values}" Grid.Column="1" />
  </Grid>-->
   <TextBlock Text="{Binding [Montgomery.DBO.owners.DEED_DATE]}"/>
 </esri:FeatureLayer.MapTip>
</esri:FeatureLayer>
0 Kudos