Select to view content in your preferred language

I have a table in SDE,the table is not a FeatureLayer,how can I get the rows of the talbes by arcgis api for javascript 3.18?

1331
4
Jump to solution
10-20-2016 07:44 PM
shaoyunpengshao
Deactivated User

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

JS is a client side technology and does not have the ability to access the database without the use of ArcGIS and a rest endpoint. If you publish the table to ArcGIS Server then you will be able to access it from JS API and do a record count query.

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

JS is a client side technology and does not have the ability to access the database without the use of ArcGIS and a rest endpoint. If you publish the table to ArcGIS Server then you will be able to access it from JS API and do a record count query.

0 Kudos
shaoyunpengshao
Deactivated User

thank you for your answer.it's helpful for me.thanks again!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.

0 Kudos
SteveCole
Honored Contributor

The way I have done this in the past is to include the SDE table inside the MXD of another layer you need to publish. The standalone table will now be published as a layer inside the service that you can query using queryTask, etc.