|
POST
|
The case for frameworks should probably more restricted than many people have let on. I agree with you though, it's confusing and overwhelming. Here's an interesting video that I think applies to your case. A framework author's case against frameworks | Go Make Things
... View more
04-08-2021
07:44 AM
|
2
|
1
|
1994
|
|
POST
|
Check this one out. Sketch update validation | ArcGIS API for JavaScript
... View more
04-05-2021
10:46 AM
|
1
|
0
|
4191
|
|
POST
|
I think the feature is highlighted like that by default when the popup is opened. See here for another example. If you wanted to highlight the feature without a popup in the way, you would have to do that manually.
... View more
04-05-2021
09:03 AM
|
1
|
0
|
1756
|
|
POST
|
Will you take any action based on the result or just ask your coworker if the current state is intended?
... View more
04-01-2021
02:08 PM
|
0
|
2
|
3620
|
|
POST
|
Dictionary .get() is great! You can also specify a default value (besides None) if the key is not found.
... View more
04-01-2021
01:54 PM
|
0
|
0
|
8353
|
|
POST
|
Without knowing more context, it might be easier to simply attempt to do something and handle the exception otherwise. For example, if you need to connect but you're not sure if connections are allowed, just attempt to connect in a try block and handle the case it's denied in the except. Or, if you need to know if you need to turn connections back on, just turn it on (even if it's already on).
... View more
04-01-2021
01:47 PM
|
0
|
4
|
3626
|
|
POST
|
You could also use Calculate Field to do something simple like this. You can even script creating the new field if you need!
... View more
04-01-2021
07:25 AM
|
2
|
0
|
1376
|
|
POST
|
You cannot reuse the same token like that. You have to generate a token when the app loads and gets user credentials. You could also consider application authentication if you don't want to get credentials from each user.
... View more
04-01-2021
07:21 AM
|
1
|
2
|
4070
|
|
POST
|
Completely untested, but I think you get the idea. 🙂
... View more
03-25-2021
12:17 PM
|
0
|
0
|
4001
|
|
POST
|
import arcpy
from datetime import datetime
fc = r'\Path\to\my\featureclass'
fields = ['UNIQUE_ID','asset_id','Condition','Year_Installed','Carto_ID',
'Pave_Area','Pave_Width','Length','AM_Asset_ID','Lanes','OCI_Date']
lines = [dtFormat(row) for row in arcpy.da.SearchCursor(fc,fields)]
def dtFormat(row):
try:
OCI_Date_index = row[row.index('OCI_Date')]
row[OCI_Date_index] = row[OCI_Date_index].strftime('%m/%d/%Y')
return row
except AttributeError:
return row
... View more
03-25-2021
12:15 PM
|
1
|
2
|
4006
|
|
POST
|
You could keep the list comprehension to create lines and then go back over lines with a for loop to format the datetime objects. Or write a helper function to check the value for a date and return the formatted date string during the list comprehension.
... View more
03-25-2021
12:01 PM
|
1
|
3
|
4042
|
|
POST
|
Try using datetime strftime to format the date as a string in whatever style you want. You should probably do this in a traditional for loop rather than list comprehension.
... View more
03-25-2021
11:55 AM
|
1
|
0
|
4046
|
|
POST
|
Please post the entire code block. Code formatting ... the Community Version - Esri Community
... View more
03-18-2021
10:40 AM
|
0
|
0
|
2118
|
|
POST
|
I had to learn more about this walrus you speak of. "There is new syntax := that assigns values to variables as part of a larger expression. It is affectionately known as “the walrus operator” due to its resemblance to the eyes and tusks of a walrus."
... View more
03-17-2021
09:57 AM
|
0
|
0
|
3757
|
|
POST
|
Using the ArcGIS API for JavaScript, check out esriRequest(). Alternatively, it would be an ajax call; plain JS or jQuery for example. Could also try fetch().
... View more
03-17-2021
07:40 AM
|
0
|
0
|
3877
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | 10-23-2025 03:53 PM | |
| 1 | 04-28-2026 07:25 AM | |
| 1 | 03-19-2026 08:59 AM | |
| 1 | 02-12-2026 01:37 PM |