POST
|
I have seen a large number of posts about how to fix issues with Web AppBuilder not displaying results from GP Services, and a lot of people wrapping their python tool in Model Builder. Here is a loose guide that may help if you have this problem that don't involve model builder. Some of these steps may not be required, but doing these always works for me. 1. On your final output, define a variable to equal the ".getOutput(0)" of the last tool ran. You can do this for intermediate data too, but at minimum, the output needs that. 2. Use SetParameter(index, step 1 variable) to set the output result to show up. 3. Use FeatureLayer, RasterLayer, or TableView as outputs. Also inputs work with FeatureLayer nicely. FeatureSets seem to be more problematic than pre-10.1 versions. 4. When publishing an asynchronous service, make sure to check on "view results in map service" 5. Make sure to set all input variables to user input that require it. 6. The server changes your code. If you have access to the arcgisserver directory, go to arcgissystem/arcgisinput/your folder/your service/extracted/v101 and find your original python file. Delete ESRI's code as it can break things. I usually just overwrite with my original code. 7. You should be able to add code to WAB (v1.3+) and it should work. 8. If you still have problems, use a web debugger like fiddler and check the server logs to make sure something else isn't happening. Post any other suggestions if you have them.
... View more
06-13-2016
04:03 PM
|
1
|
2
|
2988
|
POST
|
I have resolved this issue. I updated the WAB to a newer version and there are no problems.
... View more
04-29-2016
01:39 PM
|
1
|
0
|
268
|
POST
|
I have a web app with web app builder. I have added the edit widget, but it seems to not be able to handle all the templates I require. I am getting a javascript error "Uncaught RangeError: Maximum call stack size exceeded" whenever I have more than 8 layers selected as editable. Does anyone have a solution for this? Attached is the screenshot of the error. I seem to be ok with 8 or less layers, but this shows up at 9 layers (or more than about 30 templates).
... View more
04-29-2016
08:42 AM
|
1
|
1
|
1496
|
Title | Kudos | Posted |
---|---|---|
1 | 06-13-2016 04:03 PM | |
1 | 04-29-2016 01:39 PM | |
1 | 04-29-2016 08:42 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|