POST
|
Robert, thank you so much. This saved me hours of frustration and produced the intended result!
... View more
11-11-2016
10:35 AM
|
0
|
1
|
1233
|
POST
|
I tried accessing that object, Fields is null.. here is the logic (I confirmed the selectedCenterlineUrl is corrrect): var selectedCenterlineUrl = this.HierarchyTableCenterlineSelect[this.HierarchyTableCenterlineSelect.selectedIndex].value; var centerlineFeatureLayer = new FeatureLayer(selectedCenterlineUrl); centerlineFeatureLayer gets created but fields is null..Why?
... View more
11-11-2016
10:29 AM
|
0
|
1
|
1233
|
POST
|
I have a feature layer connected to a WAB map, with the following fields OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID ) LINE ( type: esriFieldTypeInteger , alias: LINE ) ROUTE ( type: esriFieldTypeInteger , alias: ROUTE ) SHAPE ( type: esriFieldTypeGeometry , alias: SHAPE ) SHAPE.STLength() ( type: esriFieldTypeDouble , alias: SHAPE.STLength() ) Utilizing the Feature Layer Object, is there any simple way to get a list of the field names? I'd rather not run a Query, but if I have to what is best way to only return 1 record with those field names? Thank you for your time
... View more
11-11-2016
10:10 AM
|
0
|
5
|
2313
|
POST
|
Robert, my config is never reflected within [install dir]/server/apps/[app #]/configs/widgetX/config_widgetX.json ..In fact the corresponding sub-folder is never created. Our workflows are basically the same except I develop my widget outside of the WAB install root and run the provided ESRI Grunt scripts to keep the files concurrent throughout. I have checked manually in the outlined directories to insure that there is no stale configurations. It doesn't appear the property is used anywhere in the JS/HTML however the widget can't initialize without it.
... View more
10-26-2016
11:34 AM
|
0
|
1
|
523
|
POST
|
Im building a Dojo widget in WebAppBuilder using a settings page to initially set the state of the config.json object's properties. The settings page works and the widget opens. Now I changed my config.json from one state to another: From: {
"id": "6c821ced4fc34a29b5b3bb98c9e05db2",
"cssMapping": {
"InputField": "inputField"
},
"hierarchyLevels": [],
"servicePath": ""
} to: {
"id": "6c821ced4fc34a29b5b3bb98c9e05db2",
"cssMapping": {
"InputField": "inputField"
},
"hierarchyLevels": []
} I only omitted service path. This created major problems for me. Now after initializing the app I receive a very obscure stack trace: init.js:113 Error: uniqName_6 template:config.serviceUrl(…) "Error: uniqName_6 template:config.serviceUrl at Object.<anonymous> (https://js.arcgis.com/3.17/init.js:372:222) at https://js.arcgis.com/3.17/init.js:63:209 at https://js.arcgis.com/3.17/init.js:376:308 at RegExp.[Symbol.replace] (native) at String.replace (native) at Object.q.substitute (https://js.arcgis.com/3.17/init.js:376:156) at Object._stringRepl (https://js.arcgis.com/3.17/init.js:372:107) at Object.buildRendering (https://js.arcgis.com/3.17/init.js:373:182) at Object.create (https://js.arcgis.com/3.17/init.js:350:18) at Object.postscript (https://js.arcgis.com/3.17/init.js:348:475) ---------------------------------------- rejected at a (https://js.arcgis.com/3.17/init.js:108:174) at h (https://js.arcgis.com/3.17/init.js:107:452) at k (https://js.arcgis.com/3.17/init.js:107:205) at g.w.reject (https://js.arcgis.com/3.17/init.js:109:488) at Object.<anonymous> (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/WidgetManager.js?wab_dv=2.1:121:25) at https://js.arcgis.com/3.17/init.js:63:209 at h (https://js.arcgis.com/3.17/init.js:107:279) at k (https://js.arcgis.com/3.17/init.js:107:205) at g.resolve (https://js.arcgis.com/3.17/init.js:109:280) at Object.<anonymous> (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/WidgetManager.js?wab_dv=2.1:179:17) ---------------------------------------- Error at g.then.c.then (https://js.arcgis.com/3.17/init.js:110:97) at Object.<anonymous> (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/BaseWidgetPanel.js?wab_dv=2.1:76:53) at Object.forEach (https://js.arcgis.com/3.17/init.js:70:348) at Object.loadAllWidgetsInOrder (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/BaseWidgetPanel.js?wab_dv=2.1:66:13) at Object.startup (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/BaseWidgetPanel.js?wab_dv=2.1:55:12) at Object.m (https://js.arcgis.com/3.17/init.js:155:344) at Object.startup (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/OnScreenWidgetPanel.js?wab_dv=2.1:65:14) at Object.openPanel (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/PanelManager.js?wab_dv=2.1:146:17) at Object.<anonymous> (https://devbox.intranet.softwarecompany.com:3344/webappbuilder/apps/8/jimu.js/PanelManager.js?wab_dv=2.1:93:16) at https://js.arcgis.com/3.17/init.js:63:209" I tried to delete the widget from C:\<WABROOT>\client\stemapp\widgets\<APP_NAME> as well as C:\WebAppBuilderForArcGIS\server\apps\<App#>\widgets\<APP_NAME> and also looked for config entries in C:\WebAppBuilderForArcGIS\server\apps\8\configs\<APP_NAME> (<APP_NAME> didn't exist);; and run both Grunt-clean/sync/watch...The app is totally broken now, and in the future I need to be able to edit config.json as I develop. Can anyone help? There seems to be some cached entry of config.json that is causing a problem.
... View more
10-25-2016
02:56 PM
|
0
|
3
|
1550
|
POST
|
My organization is currently building a suite of widgets for Web App Builder, and I am interested in bringing in resources from NPM in my current widget for obvious reasons. My first question I did read: Use other libraries—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers In this article, it seems that the only way to define these modules is based on the notion that everyone will be operating out of the same WebAppBuilder instance. In our shop this is not the case, each developer is running their own instance and we want NPM packages to somehow be concurrent across source control. Initially we were putting the entire WAB npm folder into source control and this caused some chaotic problems for several days, of which we never traced the origin of. Therefore, we decided to go with the approach of only retaining our widgets in source control. Is there a convention in terms of NPM package concurrency, interorganzation? MY second question: How do you actually use the NPM packages in your widget? I have tried two approaches: Use dojo/node: Use the dojo/node package to import the NPM package via AMD. Problem: Stack trace yields error: Cannot find the Node.js require CDNs : I figured since most packages are on github, I could use RawGit functionality in to inject the dependency into the DojoConfig. Problem: Since WebAppBuilder doesn't allow me to define/edit my HTML entry point i.e. index.html where I would traditionally define CDN <scripts> / DojoConfig, where in the world should I put a CDN declaration under WAB? Since NPM is so vital to nearly any JS project's success, it is crucial that we learn the typical NPM implementation strategy in WAB. Thank you for any assistance offered.
... View more
10-05-2016
02:39 PM
|
2
|
0
|
1249
|
Title | Kudos | Posted |
---|---|---|
2 | 10-05-2016 02:39 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|