attribute table data not visible

2988
6
08-27-2014 04:30 AM
NadirHussain
Frequent Contributor

Dear All,

I am working on one application using flex viewer 3.4.and using the attribute widget.i have total 7 layers in my dynamic map service.Some are scaled dependent .when i load the attribute table .the data for some scale dependent layers not visible on attribute table.one scale dependent layer showing data.The others not showing data on the attribute table.what can be the reason.one layer not showing data make the table with columns headers and all columns of layer.but cells have no data.the other layer which does not show data only text showing " NO FEATURES IN CURRENT MAP EXTENT".Please tell me what can be the reason.

Thanks in advance,

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus

Nadir,

   I just tested Flex Viewer 3.4 with a scale dependent map service (mine only had 2 layer) and it worked fine in the attribute table widget...

0 Kudos
NadirHussain
Frequent Contributor

Dear Robert

i check my code and the point of concern is rest service.when i put the url of feature layer like

<esri:ArcGISDynamicMapServiceLayer url="http://dell-pc/ArcGIS/rest/services/myFeature/MapServer"/>

        <esri:FeatureLayer id="myFeatureLayer"     mode="onDemand"     outFields="*"

                           url="http://dell-pc/ArcGIS/rest/services/Sirens/MapServer/2"/>

it shows values on attribute table and menu from attribute table delete selected record is not there.

if i change the above code

<esri:ArcGISDynamicMapServiceLayer url="http://dell-pc/ArcGIS/rest/services/myFeature/FeatureServer"/>

        <esri:FeatureLayer id="myFeatureLayer"                  mode="onDemand"                 outFields="*"

                           url="http://dell-pc/ArcGIS/rest/services/Sirens/FeatureServer/2"/>

No values on attribute table.no map visible and message on attribute table is No features in current map extent.

so please what should be the reason.

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Nadir,

  All I have to do is add the map service as dynamic using a line like this:

<layer label="Scale Test" type="dynamic" visible="true" url="http://gislap183:6080/arcgis/rest/services/ScaleDependentTest/MapServer"/>

and the Attribute table widget will look on your server and attempt to find a matching FeatureServer service and add it to the map automatically (you don't need to do anything) if it does not find a FeatureServer than it will not give editing capabilities to that layer in the Attribute table widget.

0 Kudos
NadirHussain
Frequent Contributor

dear robert,

i already try your suggestion but it not work in fv enviornment.i change this and make one testing page.

the code for testing page

  e.<esri:Map id="myMap" width="100%" height="60%" click="myMap_clickHandler(event)">

          <esri:ArcGISDynamicMapServiceLayer url="http://dell-pc/ArcGIS/rest/services/TestService/MapServer"/>

         <esri:FeatureLayer id="myFeatureLayer" mode="selection"   outFields="*" url="http://dell-pc/ArcGIS/rest/services/TestService/MapServer/0"/>

  </esri:Map>

1.png

the data come like above image.but no link for delete menu.i change little bit of code ike below

.<esri:Map id="myMap" width="100%" height="60%" click="myMap_clickHandler(event)">

          <esri:ArcGISDynamicMapServiceLayer url="http://dell-pc/ArcGIS/rest/services/TestService/MapServer"/>

         <esri:FeatureLayer id="myFeatureLayer" mode="selection"   outFields="*" url="http://dell-pc/ArcGIS/rest/services/TestService/FeatureSerever/0"/>

  </esri:Map>

2.png

no data come in attribute table.this can be the reason for arcgis server(standard,advance).if not please check what can be the reason.

thanks in advance.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Nadir,

  Do you not have standard or advanced version of ArcGIS Server? When you go to your rest service directory page

http://dell-pc/ArcGIS/rest/services/TestService/FeatureSerever/0 does it have

Supported Operations:   Query   Apply Edits   Add Features   Update Features   Delete Features   Generate Renderer   Return Updates

0 Kudos
NadirHussain
Frequent Contributor

Dear Robert,

http://dell-pc/ArcGIS/rest/services/TestService/FeatureSerever/0

This is the text which is written there.

Supported Operations:   Query   Add Features   Update Features   Delete Features   Apply Edits

0 Kudos