Esri / workflowmanager-viewer-js

Source code for ArcGIS Workflow Manager Classic JavaScript viewer - Manage your workflows on the web.
Apache License 2.0
26 stars 31 forks source link

TypeError: Cannot read property 'slider' of undefined #9

Closed MelisaM closed 6 years ago

MelisaM commented 6 years ago

capture1 capture2

I'm using JavaScript API 3.19, Workflow manager 10.5.1, SDE database 10.5.1, ArcGIS Server 10.3.1. Not sure if this error is due to Server 10.3.1 needing upgraded or something else?

Could anyone please provide suggestions?

Thanks!

llam001 commented 6 years ago

Hi Melisa,

What version of the Workflow Manager JavaScript viewer are you using? If you're using ArcGIS Server 10.3.1, you should be using the 10.3.1 version of the Workflow Manager JavaScript viewer.

The error you're seeing is coming from initializing the map. You should have a navigation slider property in your AppConfig.js file. If ithe slider is not needed, you'll need to set isEnabled to false.

Example:

navigation: {
   slider: {
      isEnabled: false,

Hope that helps.

MelisaM commented 6 years ago

Thanks! I needed a reason to upgrade our server installation!

Appreciate your help!

Melisa M. McLean GIS Manager St. Louis County GIS Service Center 41 S Central Ave, 3rd Fl Clayton, MO 63105 314.615.3899 mmclean@stlouisco.commailto:mmclean@stlouisco.com http://data.stlouisco.com

From: Lalaine Lam [mailto:notifications@github.com] Sent: Wednesday, December 13, 2017 3:51 PM To: Esri/workflowmanager-viewer-js workflowmanager-viewer-js@noreply.github.com Cc: McLean, Melisa MMcLean@stlouisco.com; Author author@noreply.github.com Subject: Re: [Esri/workflowmanager-viewer-js] TypeError: Cannot read property 'slider' of undefined (#9)

Hi Melisa,

What version of the Workflow Manager JavaScript viewer are you using? If you're using ArcGIS Server 10.3.1, you should be using the 10.3.1 version of the Workflow Manager JavaScript viewerhttps://github.com/Esri/workflowmanager-viewer-js/tree/10.3.1.

The error you're seeing is coming from initializing the map. You should have a navigation slider property in your AppConfig.jshttps://github.com/Esri/workflowmanager-viewer-js/blob/master/js/app/WorkflowManager/config/AppConfig.js file. If ithe slider is not needed, you'll need to set isEnabled to false.

Example:

navigation: {

slider: {

  isEnabled: false,

Hope that helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Esri/workflowmanager-viewer-js/issues/9#issuecomment-351536418, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMLPva6EE1PfE6F63MhBW8gwet4cqXYJks5tAEbBgaJpZM4RBNOL.