Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have published a mapservice without feature access on a remote machine only with a file geodatabase (shapefile on the disk). Because of limits of authority to create a spatial database(don't have permission to create sqlserver express 2008 for build arcsde to enable feature access for this map service). However, I have to add a new field into the attribute table of this mapservice via the ArcServer Javascript API .Just like the operation on ArcGIS desktop ,as shown below:

enter image description here

Is this possible? Any hints to implement it? Thank you for your help.

share|improve this question
    
Will need more info. What kind of field so you want to add? Will it be on the basis of some input delivered by the user? What do you mean by limit of authority to create spatial database? Please provide more information as the question is pretty vague. Define your purpose of creating new fields and what kind of spatial database are you using. –  Sam007 Nov 28 '12 at 1:56
    
@Sam007 Ok.I will add more info for this question. –  Vent Lam Nov 28 '12 at 2:08
    
What version of arcgis server are you running? –  Kirk Kuykendall Nov 28 '12 at 4:17
    
@KirkKuykendall 10.0 –  Vent Lam Nov 28 '12 at 6:45
add comment

2 Answers

There is a C++ SDK of FileGDB API to handle FileGDB, and this may help you. You can build a web service wrapping local operations of FileGDB API, make it RESTful to be consumed by Javascript API.

share|improve this answer
add comment
up vote 3 down vote accepted

I solved this problem by publishing a gp service with "Add Field" toolbox.To invoked this gp service via javascript api.As shown :enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.