|
POST
|
So I have the _onreturnsegclicked button with the following code. So would I create a function to create the graphic line after the GP service has run? Here is my intial try executeGP: function (rs) {
this.shelter.show();
this.map.graphics.clear();
var lineSymbol = new SimpleLineSymbol();
lineSymbol.setColor(new Color([255,255,0,0.5]));
lineSymbol.setWidth(2);
var graphic = new Graphic(rs.mapSegment, lineSymbol);
var features = [graphic];
var featureSet = new FeatureSet();
featureSet.features = features;
this.gp.submitJob(params, lang.hitch(this, this.processGP));
},
_onreturnsegClicked: function () {
var Corridor = this.CorridorTextBox.get('value'),
var FromOffset = this.fromOffsetTextBox.get('value'),
var ToOffset = this.toOffsetTextBox.get('value'),
RouteSeg = new RouteSeg(Corridor, FromOffset, ToOffset),
rs = {
mapSegment: RouteSeg
};
this.executeGP(rs);
},
... View more
08-31-2015
10:06 AM
|
0
|
0
|
1511
|
|
POST
|
I'm still struggling on how I get the values from the textboxes on my html page passed to the GP service.
... View more
08-31-2015
09:00 AM
|
0
|
37
|
1511
|
|
POST
|
{ "displayFieldName": "", "fields": [ { "name": "OBJECTID", "type": "esriFieldTypeOID", "alias": "OBJECTID" }, { "name": "Corridor", "type": "esriFieldTypeString", "alias": "Corridor", "length": 8 }, { "name": "from_offset", "type": "esriFieldTypeSingle", "alias": "from_offset" }, { "name": "to_offset", "type": "esriFieldTypeSingle", "alias": "to_offset" } ], "features": [{ "attributes":{ "OBJECTID": 1, "Corridor": "C000001E", "from_offset": "100.59", "to_offset": "256.236" }}], "exceededTransferLimit": false } I had to change this a little and it does appear to be working.
... View more
08-31-2015
08:29 AM
|
0
|
0
|
1511
|
|
POST
|
Sorry to bug you this early but I saw the inputs and the outputs you had posted. How did you run those so that it returned the null values?
... View more
08-31-2015
06:33 AM
|
0
|
40
|
1517
|
|
POST
|
ok, thanks for letting me know, I assumed it was working correctly if it was working in ArcMap. I will look into the scratchGDB.. Thank you
... View more
08-30-2015
07:29 PM
|
0
|
0
|
1517
|
|
POST
|
Here are screen shots of the input and the return segment. I entered the corridor route C000001E and then the to and from offsets and it returns the line to the map.
... View more
08-28-2015
08:24 AM
|
0
|
43
|
1517
|
|
POST
|
I’m sorry I spoke to soon, it is returning the values correctly… Now I need to pass the values to the GP service. The GP service will process will select the corridor the from_point and the to_point and plot the line as a graphic… Sounds easy enough for someone who is smart.. ☺
... View more
08-28-2015
07:17 AM
|
0
|
45
|
1517
|
|
POST
|
I connected to the server via arc catalog but not sure how to test it as I have not given it any input parameters.. Not sure if that makes sense..
... View more
08-28-2015
07:05 AM
|
0
|
0
|
1517
|
|
POST
|
I think I have the GP service correct now.. can you see it? https://app.mdt.mt.gov/arcgis/rest/services/LRS/ReturnRouteSegment/GPServer/ReturnRouteSegment
... View more
08-27-2015
12:57 PM
|
0
|
48
|
1517
|
|
POST
|
Larry, I really like your help widget and would like to take a look under the hood. Where can I find it?
... View more
08-27-2015
12:12 PM
|
0
|
0
|
1975
|
|
POST
|
Robert, I just checked out your Street View widget.. Very impressive! Thank you for being a big player in the development of the WAB toolset.. Cant say thank you enough for your willingness to always help folks. Terry
... View more
08-27-2015
07:17 AM
|
1
|
0
|
1599
|
|
POST
|
I was curious if anyone else has had this problem. I had developed an app in 1.1 and upgraded to 1.2. I have a folder that contains several widgets related to each other.. It seems as though the way it works has changed since I upgraded. The widgets used to be shown when the up or down double arrows were clicked. Now it has a "+" or "-" to expand or contract the specific widget. I liked the old version, how does I revert back? Here is what it looks like now. TIA
... View more
08-27-2015
05:41 AM
|
0
|
2
|
3235
|
|
POST
|
Yes you are correct in the later. The users will enter the corridor and an offset of 10.5 to 15.9 for example then the GP would be hit and the GP returns a feature that has some geometry like a graphic line feature. I did not know if only having the from_offset and to_offset fields would work or if they needed to be a parameter in the GP service. Thanks for being so patient with my ignorance.
... View more
08-26-2015
03:24 PM
|
0
|
50
|
1868
|
|
POST
|
I'm sorry, my original post was not very clear.. Obviously my second was even worse. I guess I was hoping to see some sample code that took a "from offset" and "to offset" and created a route between those two points and plotted a graphic line of that on the map. I looked at some of the live apps that are out there and there was not really anything like it.. I guess the closest thing was the directions widget.
... View more
08-26-2015
01:53 PM
|
0
|
52
|
1868
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-19-2015 02:57 PM | |
| 1 | 03-10-2016 08:36 AM | |
| 1 | 03-10-2016 09:00 AM | |
| 1 | 07-16-2015 01:15 PM | |
| 1 | 09-14-2015 06:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|