Javascript for Developer Web Appbuilder

2464
1
04-16-2015 11:36 AM
EntechEngineering
New Contributor

Hello,

My company had our ArcGIS maps hosted at an external company on ArcGIS server and our company was paying monthly to do that. I have been attempting to move that information over into the web appBuilder and build custom widgets to get the desired result.

Over time, we had paid that company to do some additional coding and I wish to recreate that code in the widget. They have given us the code, but it is within an MVC application.

If I copy and paste that MVC JavaScript into the widget JavaScript, it fails.

Is the syntax different for the JavaScript code for an MVC application than that of the new widget javascript?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Entech Engineering,

   There are likely MANY reasons why just copy and pasting the code does not work.

Is the syntax different for the JavaScript code for an MVC application than that of the new widget javascript?

Extremely likely. A WAB Widget has declares and requires for the basic scaffolding of a widget that the code you pasted likely did not.

0 Kudos