AnsweredAssumed Answered

WebApp Builder (Dev) - Error when creating a new controller widgets

Question asked by rralbritton on Jun 28, 2018

I'm currently going through the documentation to create a new theme/new controller widget. When I get to step 4 to reload the app, I get a 404 error saying the manifest.json file for the widget does not exist, but it does exist. 

 

init.js:141 GET https://fm00016.ad.utah.edu:3344/webappbuilder/apps/3/themes/RachelSidebarTheme/widgets/SidebarController/manifest.json?wab_dv=2.8 404 (Not Found)

 

This is the widgets/SidebarController/manifest.json

 

{
  "name": "SidebarController",
  "platform": "HTML",
  "version": "2.8",
  "wabVersion": "2.8",
  "author": "Esri R&D Center Beijing",
  "description": "This is the widget used in developer guide",
  "copyright": "",
  "license": "http://www.apache.org/licenses/LICENSE-2.0",
  "properties": {
    "inPanel": false,
    "isController": true,
    "isThemeWidget": true
  },
  "featureActions": [{
    "name": "ShowVertex",
    "uri": "ShowVertexFeatureAction"
  }]
}

 

Here is my config.json in the layouts folder:

{
  "widgetOnScreen": {
    "panel": {
      "uri": "themes/RachelSidebarTheme/panels/SimpleBorderPanel/Panel"
    },
    "widgets": [{
        "uri": "themes/RachelSidebarTheme/widgets/SidebarController/Widget",
        "position": {
          "left": 0,
          "top": 0,
          "bottom": 0,
          "width": 50,
          "relativeTo": "browser"
        }
    },{
      "uri": "widgets/Scalebar/Widget",
      "position": {
        "left": 7,
        "bottom": 30
      },
      "version": "2.8"
    }, {
      "uri": "widgets/HomeButton/Widget",
      "position": {
        "left": 7,
        "top": 75
      },
      "version": "2.8"
    }, {
      "uri": "widgets/Coordinate/Widget",
      "position": {
        "left": 7,
        "bottom": 10
      },
      "version": "2.8"
    }, {
      "uri": "widgets/BasemapGallery/Widget",
      "position": {
        "left": 45,
        "top": 5,
        "width": 430,
        "height": 410
      },
      "version": "2.8"
    }, {
      "position": {
        "left": 95,
        "top": 5,
        "width": 400,
        "height": 410
      }
    }, {
      "uri": "widgets/ZoomSlider/Widget",
      "visible": true,
      "position": {
        "top": 5,
        "left": 7
      },
      "version": "2.8"
    }]
  },

  "map": {
    "position": {
      "left": 0,
      "top": 0,
      "right": 0,
      "bottom": 0
    }
  }
}

 and in the nls/string.js files in both the theme and the widgets folders I changed

"_themeLabel": to "RachelSidebarTheme"

 

Here's a scren shot of my folder structure. The theme was copied from Demo and the widgets/SidebarController was copied from the samplewidgets demo folder.

 

Have I overlooked something?

Outcomes