POST
|
This all seems rather arbitrary. How do you know which row in the destination table is for which calculation? If you want to hard code the calculations like your original request, my original code sample should work (again, assuming you have the same number of rows in the destination table as you have calculated values). If you want to read the calculated values from a table and insert them (instead of hard coding the values), you can do that too (again, add error handling in case you have more rows in the destination table than you have calculated values): calcval_table_path = path_to_calcval_table_here
with arcpy.da.SearchCursor(calcval_table_path, ["OBS1", "OBS2", "OBS3", "OBS4"]) as search_cursor:
for row in search_cursor:
lookup_values = row
destination_table_path = path_to_destination_table_here
with arcpy.da.UpdateCursor(destination_table_path, ["Field1", "Another_Field_ifyouwant"]) as update_cursor:
for enum, row in enumerate(update_cursor):
row[0] = lookup_values[enum]
update_cursor.updateRow(row) The SearchCursor portion will make the lookup_values. It'll be whatever is the last row in that calculated values table.
... View more
11-02-2023
08:53 AM
|
0
|
0
|
259
|
IDEA
|
Make sure to kudo this idea for 4-color theory since you mentioned it https://community.esri.com/t5/arcgis-pro-ideas/incorporate-the-4-color-tool-into-arcgis/idi-p/927482
... View more
10-25-2023
04:07 PM
|
0
|
0
|
530
|
POST
|
Have you tried "NOT APN IS NULL" or may need "NOT (APN IS NULL)" but I think I remember what you had will not work.
... View more
10-20-2023
11:11 AM
|
0
|
0
|
670
|
POST
|
I also got this error, and for me, the solution was this: I had added a new feature class to an enterprise geodatabase in a dataset, and this undid the original settings like making the geodatabase versioned. So I eventually found that I needed to re-enable versioning for this enterprise geodatabase. This solved the problem, and I was then able to edit the feature class.
... View more
09-26-2023
09:38 AM
|
1
|
0
|
956
|
POST
|
I know this thread is old, but someone may need this answer in the future. I did something similar last week that might help. if(selected(${Antibiotics}, 'Yes') or selected(${Radioactive}, 'Yes') or selected(${Biological}, 'Yes') or selected(${Other}, 'Yes'), 'Yes', 'No')
... View more
08-29-2023
06:08 PM
|
1
|
0
|
1044
|
POST
|
Thanks Johannes, That works, and will save me a lot of extra work. I appreciate the help.
... View more
08-07-2023
08:29 AM
|
0
|
0
|
762
|
IDEA
|
I created a video showing how to do this - https://youtu.be/d0NbcKOjcUk
... View more
07-25-2023
07:57 AM
|
0
|
0
|
755
|
IDEA
|
Good idea! I have a way of doing this with Python, but of course that's a lot more complicated than simply being able to perform a selection. You use an arcpy Update Cursor, add each row's value for that field to a list if the value is not in the list already, and if it is in the list, then you put a value in a different field to indicate that it's a duplicate value. Like, the field could be "Duplicate" and the value you enter for that row would be "yes." Then later you can select all the rows that have "yes." That wouldn't select the first row that had the duplicate value, but I know it would be possible to do that, with different use of the value list or what you put into the "Duplicate" field.
... View more
07-11-2023
11:33 AM
|
0
|
0
|
479
|
POST
|
Excellent! I guess we can attribute it to a glitch in the matrix then...
... View more
06-22-2023
07:22 AM
|
0
|
0
|
268
|
POST
|
Hello, unfortunately I don't have any idea why this would be happening! That is weird that it's only happening with the Arabic one. I hope you can find a solution!
... View more
06-19-2023
09:25 AM
|
0
|
0
|
1804
|
POST
|
Hello! I know this post is old, but did you ever find a solution? I'm facing something similar. Thanks!
... View more
05-09-2023
08:51 AM
|
0
|
0
|
209
|
POST
|
Hello! Did you ever find an answer to this problem? I know this post is extremely old, but I recently ran into a similar situation.
... View more
05-04-2023
05:26 PM
|
0
|
0
|
168
|
Title | Kudos | Posted |
---|---|---|
3 | 3 weeks ago | |
1 | 09-26-2023 09:38 AM | |
1 | 02-22-2024 01:26 PM | |
1 | 01-30-2024 01:35 PM | |
1 | 01-29-2024 09:48 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|