POST
|
Hi Robert LeClair, Thank you. Even though the link does not give any explanation why there's no shortcut key to run a GP tool (it's just not possible), it answers my question. It's not possible.
... View more
07-19-2019
01:48 PM
|
1
|
0
|
1629
|
POST
|
Hi Lance Cole, Thank you but I am looking for a shortcut to execute the geoprocessing tool while editing its parameters (e.g. changing the expression in the Select Layer by Attribute tool). Cheers, Thomas
... View more
07-19-2019
11:59 AM
|
0
|
1
|
1629
|
POST
|
It's very tedious switching to the mouse to run the tool. I am looking for a key combination (Ctrl+Enter, F5, F9 or whatever) to run a geoprocessing tool. Does anyone knows which shortcut is used here? Are there any shortcuts at all? In other words, the cursor is still inside the expression text field and I want to run the script without switching to the mouse and click on the run button.
... View more
07-19-2019
11:33 AM
|
1
|
10
|
2618
|
POST
|
Thank you for your hint with the Console function! I did not know that it also prints to a JavaScript console. It's not really documented: https://developers.arcgis.com/arcade/function-reference/data_functions/#console
... View more
07-10-2019
09:17 AM
|
1
|
1
|
448
|
POST
|
Thank you Xander Bakker! It is working and I found out why it did not work. The problem was a change in the related table's name. Since I have never reloaded the web viewer (since all popup changes were applied immediately) it did still work. I assume that the web viewer looks once the ID up using the layer's name and works with that ID afterwards. I guess this was the reason why it did not affect the web viewer. I have marked Joshua Young's answer as the correct answer since he answers my question about a list of Arcade limitations/versions. But you definitively helped me more to fix the underlying problem! Thank you very much! PS. I don't understand why there is no debug information. Do you know by chance if there is an option to have Arcade debug information in a web developer console when using a web app?
... View more
07-10-2019
08:13 AM
|
0
|
3
|
1198
|
POST
|
Thank you Michael. It works as well with a simple count in a web map but not in Collector or a web app. var relatedData = FeatureSetByName($datastore,"RelatedData")
var filteredRelatedData = Filter(relatedData, Concatenate("id=", $feature.id))
return Count(filteredRelatedData)
... View more
07-09-2019
02:03 PM
|
0
|
0
|
1198
|
POST
|
Hi Xander Bakker, Yes, I am referring to the Web AppBuilder. Product Arcade Script works? Web Map (Viewer) Yes Web App (created with Web AppBuilder) No Collector App No Collector App (Early Access) No
... View more
07-09-2019
01:59 PM
|
0
|
5
|
1198
|
POST
|
Thank you Joshua Young, that helps already a lot! It answers my question. I found the following source but my understanding is that the web app we use runs with ArcGIS JS 3.29 aka newest version: https://developers.arcgis.com/arcade/guide/faq/#why-doesnt-my-expression-work-in-my-web-app-but-it-does-in-arcgis-online I have analyzed the source code of the web (map) app by using a developer console. It seems to be ArcGIS JS 3.29. Therefore, Arcade 1.7 should be supported according to the matrix. But it's actually not... or I miss something.
... View more
07-09-2019
01:51 PM
|
0
|
0
|
448
|
POST
|
Hi Xander Bakker, Thank you very much but the script works great on ArcGIS Online in a web map, returns no error in the configuration window and values are correctly shown in the popups. (I modified and anonymized this script for this forum.) The problem is, that when creating a map app using MapApp Builder, the expression is not evaluated and blank fields are shown.
... View more
07-09-2019
01:43 PM
|
0
|
7
|
1198
|
POST
|
I have an attribute expression using in a popup which is shown in a ArcGIS web map but not in a web app or in collector. var relatedData = FeatureSetByName($datastore,"RelatedData")
var filteredRelatedData = Filter(relatedData, Concatenate("id=", $feature.id))
var orderedFilteredRelatedData = OrderBy(filteredRelatedData, 'date DESC')
var newest = First(orderedFilteredRelatedData)
if (IsEmpty(newest)) {
"n/a"
}
else {
var installDate = newest.date
newest.name + " (" + Text(installDate, "Y-MM-DD HH:mm:ss") + ")"
} I have already resigned to the fact that this does not work in ArcGIS Collector. And now it seems that this is also not working in a web app. This is really frustrating. However, I am looking for a web page or document which lists Arcade limitations across all ESRI products. Any idea where I do find something like that? PS. I do know that above Arcade expression is not performant.
... View more
07-09-2019
11:57 AM
|
0
|
13
|
1929
|
POST
|
Thank you for your response Cheryl. But unfortunately it will not solve my issue since the file is already located on a real hard drive.
... View more
06-20-2019
08:57 AM
|
0
|
0
|
2998
|
POST
|
Hi Egge-Jan, Bedankt voor de snelle reactie. Thank you for your answer! I really wish ESRI would provide a better API and schema documentation... (not only for the ArcGIS REST API but also for arcpy) Unfortunately I am not able to change the design of the feature class since they already started to collect data in the field. But I did find a workaround for my problem/use case: templates. /* ... (pseudo JSON) */
"templates" : [{
"name" : "Pipe",
"description" : "",
"drawingTool" : "esriFeatureEditToolPoint",
"prototype" : {
"attributes" : {
"pipeId" : null,
"pipeType" : 2 /* <--- changed to 2 */
}
}
}]
/* ... */ Changing "pipeType" : null to "pipeType" : 2 pre-populates a default value when adding a feature using ArcGIS Online and the Collector App. Hope this will help other users too. Have a great evening, Thomas Further resources/reads: Updating Hosted Feature Services in ArcGIS Online https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf How To: Add coded value domains to a hosted feature service from a REST endpoint Update Definition (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers
... View more
06-19-2019
10:31 AM
|
1
|
0
|
1158
|
POST
|
Following this instructions (How To: Add coded value domains to a hosted feature service from a REST endpoint), I can successfully add a new coded value domain to a layer's field. /* ... (pseudo JSON) */
{
"name" : "pipeType",
/* ... */
"domain" : {
"type" : "codedValue",
"name" : "hydrantType",
"codedValues" : [{
"name" : "Private",
"code" : 1
},{
"name" : "Public",
"code" : 2
}]
},
"defaultValue" : null /* <--- change this to 2 */
}
/* ... */ However, when changing the default value (e.g. null to 2; my field is a short integer), that change will be ignored but no errors or warnings occur. Furthermore, when doing both, adding a new coded value domain and changing the default value, the coded value domain is successfully added and the default value is being ignored. Is this a bug or do I miss something?
... View more
06-19-2019
07:56 AM
|
0
|
2
|
1577
|
POST
|
Hi Robert, The error persists unless I am using a JPEG image file. I am currently going with the workaround.
... View more
04-11-2019
10:26 AM
|
0
|
0
|
2998
|
POST
|
Hi Victoria, Sorry, for the delayed answer. yes, they are stored in a sub folder within the project folder. I am using Adobe Acrobat DC but I have tried to open it in the Google Chrome browser too. I can't open the file at all. Export options (but I have tried a few different combination; it never worked) Compress vector graphics: No Image compression: Adaptive Layers and attributes: PDF Layers Only Export map georeference information: Yes Use password...: No Resolution: 300 Image Quality: Best
... View more
04-11-2019
10:24 AM
|
0
|
0
|
2998
|
Title | Kudos | Posted |
---|---|---|
1 | 10-27-2021 05:56 PM | |
1 | 10-27-2021 01:00 PM | |
6 | 05-12-2021 05:24 PM | |
4 | 05-10-2021 10:57 AM | |
1 | 07-10-2019 09:17 AM |
Online Status |
Offline
|
Date Last Visited |
11-15-2023
09:37 PM
|