POST
|
Hi Diane, It shouldn't be too complex to implement at all. I was able to get this functionality to work by adding the code to the widget.js file. I recommend creating your own method in widget.js after all the input params are created in _createInputNode and passing both the input params and their corresponding nodes as an array to the function you create. And you can call this function in the _createInputNodes method.
... View more
09-12-2016
08:32 PM
|
0
|
0
|
502
|
POST
|
Hi Diane, I have figured out a way to have a dynamic parameters (whether it's a drop down or multi select widget) based on a selected value from another parameter in my WAB gp widget. My suggested workflow: 1). On your GP widget UI, find the widget ID of the parameter you want to monitor using dijit.byId or registry.byId. 2). Create an event handler to watch for changes in value to this editor and capture the value it was changed to 3). Write the code to create the variables with your desired dynamic values based on what was selected in step 1 using if/then statements, getting results from a GP service, or whatever logic you need, etc 4). Find the widget ID of the parameter that needs to be dynamically changed based on the value selected in step 1. 5). Use registry.byId's set/reset method to update the values of the widget in step 4 dynamically with the variables you created. Note: you may have to use dojo/ready and dojo/connect to make sure your widget is fully loaded. Hope this helps!
... View more
09-08-2016
04:23 PM
|
2
|
3
|
1810
|
POST
|
Hi Shana, Yes, when I got the locators, they did not have the same names. The solution from the support team worked for me!
... View more
08-20-2016
01:05 PM
|
0
|
0
|
693
|
POST
|
In your python script, you can create a variable and set the value to arcpy.GetParameterAsText for your input parameters. So for example, if the feature layer is the first input parameter and feature set is the second input parameter, you can do something like feature_Layer = arcpy.GetParameterAsText(0) and feature_Set = arcpy.GetParameterAsText(1). In the python toolbox, set the parameter type for feature_Layer to Feature layer and the parameter type for feature_Set to Feature Set and WAB should be able to get your input as an input feature layer or drawn features on the map.
... View more
08-14-2016
04:58 PM
|
1
|
0
|
328
|
POST
|
Before you publish your gp service, have you tried changing your message level to "Info" so that you can get more detailed information about the errors you are getting? Info here: Troubleshooting geoprocessing REST services—Documentation (10.3 and 10.3.1) | ArcGIS for Server
... View more
08-14-2016
03:36 PM
|
0
|
0
|
693
|
POST
|
Consider using os.path.join() to create your path file variables. I've had trouble getting my gp service results to show when I don't do this.
... View more
08-14-2016
03:32 PM
|
0
|
0
|
408
|
POST
|
Hi Doug, I recommend creating an event handler on the widget.js page for the Job name drop down when the value of the map type drop down changes. You can then pass the values you need as an array dynamically to the job name drop down depending on what was chosen in the map type drop down using an if/then statement.
... View more
08-14-2016
03:24 PM
|
0
|
0
|
978
|
POST
|
Hi Shana, I worked with an ESRI tech to figure out the problem. I had to rename all 3 components of the address locator (.loc, .lox, and loc.xml) file to have the same file name in order to get the geocoder to work.
... View more
08-14-2016
03:10 PM
|
0
|
2
|
693
|
Title | Kudos | Posted |
---|---|---|
1 | 08-14-2016 04:58 PM | |
2 | 09-08-2016 04:23 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|