Select to view content in your preferred language

Is it possible to : Call Stored procdeure in ArcGIS JSAPI (3.x) ?

748
3
Jump to solution
10-25-2013 06:00 AM
SunilPalkar
Deactivated User
Hello All,

As per the new version is released for ArcGIS JSAPI.

I would like to know whether its possible to Call/execute  Stored procdeure in ArcGIS JSAPI (3.x) ?

I searched a lot on ESRI forum but looks like its not possible still waiting for an miracle : )

If not then ESRI team please explain the reason. 

thanks a lot in advance !!!
0 Kudos
1 Solution

Accepted Solutions
ManishkumarPatel
Deactivated User
Hi Sunil,

Kasa aahes re 🙂

Directly calling a stored procedure using ArcGIS API for JavaScript, it is not possible as of now. Although you can write a webservice to communicate with the database (stored procedures) and get the results as JSON Object.

For reference check this link:
http://www.aspsnippets.com/Articles/Calling-server-side-methods-using-JavaScript-and-JQuery-in-ASP.N...

Hope this helps.

Regards,
Manish

View solution in original post

0 Kudos
3 Replies
ReneRubalcava
Esri Frequent Contributor
You'd have to expose the stored procedure via your own web service. You could also do it with an SOE or a GP service.
0 Kudos
ManishkumarPatel
Deactivated User
Hi Sunil,

Kasa aahes re 🙂

Directly calling a stored procedure using ArcGIS API for JavaScript, it is not possible as of now. Although you can write a webservice to communicate with the database (stored procedures) and get the results as JSON Object.

For reference check this link:
http://www.aspsnippets.com/Articles/Calling-server-side-methods-using-JavaScript-and-JQuery-in-ASP.N...

Hope this helps.

Regards,
Manish
0 Kudos
SunilPalkar
Deactivated User
Thanks for your reply.

I want actually call from query layer looks like not possible

OR Something like that my map will be update dynamically.. if I update the stored procedure..


You'd have to expose the stored procedure via your own web service. You could also do it with an SOE or a GP service.
0 Kudos