|
POST
|
Hi @BenElan I see in your codepen that the content is a DOM object that is created. With this codepen (https://codepen.io/fcbasson/pen/JjLjNQB) I am creating the HTML content as a string, and this method has been working for me so far. After I changed to 4.24 this method "broke", but I also picked up that by setting the API to 4.23 in my codepen also does not work. For my production app I'm creating calcite tabs with dynamic content that is set as the popup content, which has been working for me up to now. From my understanding, HTML content in the popup can be set with a string, but I'm obviously missing something.
... View more
06-28-2022
09:52 AM
|
0
|
2
|
1803
|
|
POST
|
With the release of the new Javascript API 4.24, Calcite components are not being displayed and rendered properly in the popup. Upon inspection of the DOM, all calcite component tags have been cleared/removed and only the text of the components is being displayed. It was working fine with the 4.23 version of the JS API, so unless I'm missing something when setting the content for the popup, I'm suspecting this is a bug. I've tested it in the Sandbox samples too and getting the same result.
... View more
06-28-2022
04:44 AM
|
0
|
4
|
1838
|
|
POST
|
Well, I'm also not sure why the "modern" version of the syntax resolved my issue, but that was the only way I could get the tool to work. What I also found was the autocomplete for the commands in the Python console in Pro automatically selects the modern syntax as specified in the parameters for the tool in all the docs. Hopefully, someone from Esri can give us more insight into the issue.
... View more
05-27-2022
02:54 AM
|
1
|
0
|
1906
|
|
POST
|
Same kind of question here: https://community.esri.com/t5/python-questions/arcpy-management-lt-gp-tool-gt-vs-arcpy-lt-gp-tool/td-p/66673. So I guess it is the same implementation, but with different syntax. The old syntax broke my GP tool that I created in Pro, but changing it to the new syntax made it work.
... View more
05-26-2022
12:58 AM
|
0
|
2
|
1910
|
|
POST
|
You're right. The active property sets the modal visibility (fade in or fade out). // show modal
document.querySelector('calcite-modal#<modal ID>').active = true;
// hide modal
document.querySelector('calcite-modal#<modal ID>').active = false; The modal ID is optional, or you can just use the ID as the selector.
... View more
05-04-2022
11:52 PM
|
0
|
0
|
1389
|
|
POST
|
I found that the arcpy command syntax was the issue. Replace the following arcpy commands: arcpy.CreateDomain_management with arcpy.management.CreateDomain arcpy.AddCodedValueToDomain_management with arcpy.management.AddCodedValueToDomain See the syntax here: https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-domain.htm
... View more
03-24-2022
12:01 AM
|
0
|
0
|
1975
|
|
POST
|
I found that the arcpy command syntax was the issue. Replace the following arcpy commands: arcpy.CreateDomain_management with arcpy.management.CreateDomain arcpy.AddCodedValueToDomain_management with arcpy.management.AddCodedValueToDomain This fixed my similar issue.
... View more
03-23-2022
11:54 PM
|
0
|
0
|
1520
|
|
POST
|
Folder structure has changed slightly for more recent versions. For my Pro installation the user.config file is in: C:\Users\<username>\AppData\Roaming\ESRI\ArcGISPro.exe_StrongName_yhpsrysqpn4fvmb0spwbakt5o5e50din\2.8.0.0
... View more
10-18-2021
01:43 AM
|
0
|
0
|
3932
|
|
POST
|
You should try running the intersect on the point feature buffer geometry: var fsParcelIntersect = Intersects(fsparcel, Buffer($feature, 1, "meter"));
... View more
11-05-2020
02:49 AM
|
0
|
0
|
1112
|
|
IDEA
|
This is not a function of the API, but the Web Map Print Service from your server. The print templates need to be set up to filter the symbology for the visible area. This works with print services published from ArcGIS Pro and with the default Utilities Print Services from 10.7 and up. This is obviously for vector layers only and not raster layers.
... View more
10-30-2020
11:49 PM
|
1
|
1
|
5033
|
|
POST
|
Your row count can be done like this in Modelbuilder with you Calculate Value expression like this
... View more
05-08-2020
03:42 AM
|
2
|
1
|
1411
|
|
POST
|
Have a look at this info Using If-Then-Else logic for branching—Help | Documentation and these examples: https://www.esri.com/arcgis-blog/products/arcgis-desktop/analytics/if-you-are-stuck-at-if-part-1/?rmedium=blogs_esri_com&rsource=/esri/arcgis/2011/06/06/modelbuilderifthenelse1/
... View more
05-07-2020
11:35 PM
|
0
|
0
|
1411
|
|
POST
|
I think it is getting ignored or "trimmed". I tested this code import arcpy
arcpy.AddMessage("first line")
arcpy.AddMessage("\n ")
arcpy.AddMessage(".\n")
arcpy.AddMessage(".")
arcpy.AddMessage("second line")
arcpy.AddMessage("first line\nsecond line") and got this output So you might need to use an additional character to create a spacing between output lines.
... View more
05-04-2020
02:33 AM
|
1
|
0
|
4346
|
|
POST
|
No. Use the ArcGIS Server Manager: Start and stop services—Documentation | Documentation for ArcGIS Enterprise
... View more
05-03-2020
11:20 PM
|
1
|
0
|
1015
|
|
POST
|
You'll have to run a query on the map service to retrieve the data and then write it to a local GDB. You can do all this with Python (arcpy), with specific focus on the os, urllib, urllib2 and json modules. If the service is secure, you might need to obtain a token from the server first, which you then include in query request. An query example could look like this: import arcpy, os, urllib2, urllib, json
service_url = 'https://myserver/arcgis/rest/services/GPS/MapServer/0/query'
params = {'where': '1=1', 'outFields': '*', 'returnIdsOnly': 'false', 'returnGeometry': 'false', 'f': 'pjson'}
req = urllib2.Request(service_url, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response) You can then write the json to a local file and convert it to a GDB table: with open('gpspoints.json', 'w') as outfile:
json.dump(data, outfile)
arcpy.JSONToFeatures_conversion("gpspoints.json", "C:/project/GPS/outputgdb.gdb/gps_points"))
... View more
04-19-2020
11:51 PM
|
1
|
1
|
1919
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|