|
POST
|
I was able to successfully request a token in POSTMAN but still unable to programmatically get it done with the same parameters specified.
... View more
06-07-2019
11:10 AM
|
0
|
0
|
2934
|
|
POST
|
I think it's just user error. I had the set to POST but it keeps sending GET requests for some reason.
... View more
06-06-2019
10:13 AM
|
0
|
0
|
2934
|
|
POST
|
Even sending request via POSTMAN I get error: {"error":{"code":405,"message":"Method not supported","details":"HTTP GET is disabled
... View more
06-06-2019
08:27 AM
|
0
|
2
|
2934
|
|
POST
|
Is this correct: url: "https://myAGS/tokens/generateToken" or this: url: "https://myAGS/tokens" If I use the later I get a different error related to CORS.
... View more
06-06-2019
06:55 AM
|
0
|
4
|
2934
|
|
POST
|
I'm attempting to better understand the AGS token service and cannot seem to get thru some errors (probably something simple I'm missing). For starters, I simply just want to generate a token for a secured feature service and see it as a string/console. That's it. Here's my sample that is hitting the error "Method not supported" in the console.log(error.message)…. var tokRequest = esriRequest({
url: "https://myAGS/tokens/generateToken",
method: "post",
content: {
f: "json",
username: "myUsername",
password: "myPassword",
referer: "<https://myAppPageURL>"
}
}).then(
function (response) {
console.log("Success: ", response.toJson);
}, function (error) {
console.log("Error: ", error.message); //<--error hits here
}); Any help is appreciated.
... View more
06-06-2019
06:18 AM
|
0
|
9
|
3363
|
|
BLOG
|
Got it. Thanks for the feedback! We've thrown around the idea of maintaining a replica set of feature services from the enterprise map services but it's a lot. I think the biggest concern was unknowns of any performance issues on the enterprise in total should those FS's become popular and/or used in too many products across the user base. Perhaps I could see creating sets of themed FS's for specific application use (say like EOC operations), but would of been nice to just use what's already published! Thanks again.
... View more
05-24-2019
02:02 PM
|
0
|
0
|
15307
|
|
BLOG
|
I'm not following here... We already have created web layers from our entire library of map services published to our AGS site(s). That is, we have a matching AGOL layer item for each map service we manage on our AGS sites and all of our web mapviewer products contain these AGOL layers or users search to add them into their own web mapviewer products. Are you suggesting that we would have to add each individual map service layer and create a feature service out of it in order to reference it in an Arcade expression?
... View more
05-24-2019
12:05 PM
|
0
|
0
|
15307
|
|
POST
|
Thank you! BTW, I'm fine with having to add an additional divisor!
... View more
05-24-2019
11:29 AM
|
0
|
1
|
2393
|
|
POST
|
I'm not sure why this is, but dividing the converted value from meters into miles by 2 seems to closely match the values generated in an AGOL mapviewer using the distance measure tool. Would love to know reasons and/or if this is incorrect! (distance(${geoTraceField}) div 1609.344) div 2
... View more
05-24-2019
05:59 AM
|
1
|
3
|
2393
|
|
POST
|
We're trying to convert the geotrace distance value into miles and not getting the correct result. That is, when comparing our conversion to miles it's wildly different from a known segment. We thought it was a simple meters-to-miles conversion: round((distance(${geotraceField}) div 1609.344), 2) But this gives different result from a known line segment distance we're drawing in Survey. Running a simple calculation on a note field: (distance(${geoTraceField}) div 1609.344) Value reported: 3.00 That same length using the measure tool in an AGOL webmap: Value reported: 1.50 miles Simple straight distance value: distance(${geoTraceField}) Value reported: 4880
... View more
05-23-2019
12:58 PM
|
0
|
4
|
2612
|
|
POST
|
Update: I can get both the Edit widget and Smart Editor widget to work as expected if the feature service was originally published with a relationship class that had a 1-M relate between the FUNC_LOC on the feature class and FunctionalLocation on the many table to auto-populate the FunctionalLocation value when creating a new record on the many table. However, this same feature service is the source to a Survey123, which requires that 1-M relate to be between a GlobalID on the feature class and a GUID on the many table. I attempted to republish the feature service with two relationship classes with both 1-M relates specified above, but the Survey123 doesn't like that and will not publish.
... View more
05-23-2019
05:58 AM
|
0
|
0
|
1477
|
|
POST
|
For better explanation: 1. I have the Smart Editor widget configured on the Hosted Feature Service that has a single related table. When accessing the widget and selecting a single polygon feature, it populates the widget and does not allow the feature attributes to be edited (that's what we want): 2. Now when adding a new record to the related table "StandAloneEditGUID - TxTable", we'd like to have the FuncionalLocation column pre-populated with the FUNC_LOC value of the selected feature (see above screen shot)
... View more
05-21-2019
01:39 PM
|
0
|
0
|
1477
|
|
POST
|
I'm looking for a solution to pre-populate a column when editing a related table. We have polygon features with a related table (hosted feature service) and simply want a way to insert new rows into that related table, which we can use the Edit Widget or Smart Editor widget in a WAB app just fine! However, we'd like to prepopulate a common attribute from the selected feature when creating a new related record. I've exhausted attempts to configure the widgets to accomplish this and now looking to see if an arcade expression can solve this for us. Thanks!
... View more
05-21-2019
12:41 PM
|
1
|
2
|
1689
|
|
POST
|
I just added a calculation to the column in the repeat to reference the value of an answer on the main feature service. ${nameOfColumnToPopulateFrom}
... View more
05-21-2019
09:29 AM
|
0
|
0
|
870
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2020 10:47 AM | |
| 1 | 10-25-2022 11:46 AM | |
| 1 | 08-08-2022 01:40 PM | |
| 1 | 02-15-2019 08:21 AM | |
| 2 | 08-14-2023 07:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-22-2025
02:28 PM
|