Hello,
I am a bit new to Web app builder and am learning in my free time.
I am have a simple geoprocessing tool. That I published as a service. I have it successfully running in Web app builder. The input is a polygon that the user draws. I want to modify the widget so that a user enters length and width. Than places a point on the map and t rectangle is drawn.
I know how to build the polgygon based on length and width. But I am lost when it comes to doing this with the geoprocessing widget.
Any help would be great
Thanks
Solved! Go to Solution.
Douglas,
Sorry the actual file I was referring to is the [install dir]\server\apps\[App#]\widgets\Geoprocessing\editors\simpleEditors.js
Douglas,
What you are wanting to do is very custom and would involve a lot of custom development. First let me start off by saying this is not an area I have any experience in. But based on looking at the code for the Geoprocessing widget it looks like you would begin by extending the FeatureSetEditorChooser.html and js to include another radio option for your custom input. Then look at the editors simpleEditors and the mo.SelectFeatureSetFromDraw as a starting point of how you would build a gp input of a featureset.
I agree, after reviewing the gp widget. My best best might be creating another widget that builds that polygon separately an than makes I available to be used in another gp tool. I have just have to figure out how to do this, as draw widgets allow for a drawing, but I have been unsuccessful using those graphics/drawings in any gp tools that require a polygon
Douglas,
Look at the editors simpleEditors and the mo.SelectFeatureSetFromDraw as a starting point of how you would build a gp input of a featureset.
OK, I will try using the editor widget as a base. Than build off of it. Allowing user to create a new feature. And than consume that feature in another separate geoprocessing tool
Douglas,
Sorry the actual file I was referring to is the [install dir]\server\apps\[App#]\widgets\Geoprocessing\editors\simpleEditors.js