Select to view content in your preferred language

convert featureTable in table with tabletools api js

1404
5
11-25-2016 02:54 PM
MarinaSánchez
Deactivated User

var myFeatureTable = new FeatureTable({
"featureLayer" : myFeatureLayer,
"syncSelection" : true,
"zoomToSelection" : true,
"outFields": [
"OBJECTID", "Shape", "Name", "Tag"
],
fieldInfos: [
{
name: 'OBJECTID',
alias: 'id',
},
{
name: 'Shape',
alias: 'Tipo de geometría',
},
{
name: 'Name',
alias: 'Nombre',
}
],
"map" : map
}, 'myTableNode');

and my div

<div id="myTableNode"></div>

¿how to convert in table with tabletools api?

Tags (1)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

I have never heard of table tools api and I am not clear on what your question is.

0 Kudos
MarinaSánchez
Deactivated User

Hi, robert

Why does my table appear like this?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Marina,

   I would have to see your code but it looks like you have a css issue. Have you you added a link to your code for one of the dojo dijit theme (like claro)?

0 Kudos
MarinaSánchez
Deactivated User

yes,

 <link rel="stylesheet" href="https://js.arcgis.com/3.16/dijit/themes/claro/claro.css">    

the problem is because I dont use dojo's

<div id="dialog" title="Basic dialog" style="display:none">
   <div id="myTableNode"></div>
</div>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Marina,

   If you take this sample in the sanbox and comment out the claro theme it looks a little like what you are seeing:

ArcGIS API for JavaScript Sandbox 

So that leads me to believe that you FeatureTable is not getting the claro css rules.

0 Kudos