|
POST
|
Have you compiled this add-in with 2.5? Although we recommend that editing code in a CoreHost app be wrapped with Geodatabase.ApplyEdits, I don't see anything wrong with the code. --Rich
... View more
03-25-2020
10:07 AM
|
0
|
1
|
3372
|
|
POST
|
Hi Michael, The GetOriginalValue method is used while editing to get the pre-edit value of the field. You cannot edit a QueryDef, so this concept doesn't apply. You can just use the Item property. Since this is the default indexer on the Row class, you would change your provided code snippet to look like this: foreach (var field in fields) {
if (field.FieldType == FieldType.Geometry) continue;
// This works
object val = row[field.Name];
// This works too
int index = row.FindField(field.Name);
object val = row[index];
}
I hope this helps, --Rich
... View more
03-10-2020
11:58 AM
|
3
|
1
|
2404
|
|
POST
|
Adding DDL functionality is currently in design and is part of our long-term plan. Unfortunately, I cannot yet provide any release date estimates. --Rich
... View more
03-09-2020
09:18 AM
|
2
|
0
|
1112
|
|
POST
|
It's on our road map, but unfortunately we don't have a specific date at this time. I'm sorry, I wish I had more information for you. --Rich
... View more
03-04-2020
08:25 AM
|
0
|
0
|
737
|
|
POST
|
Lars, That error message isn't clear at all. The Geodatabase.Evaluate method uses a QueryDef object to create a virtual table. QueryDefs can reference multiple tables, but the resulting virtual table cannot be edited. Could you create your cursor by calling Table.Search() instead? This uses what is called a QueryFilter, which can only reference a single table, and is editable. This is the typical pattern used for editing data. --Rich
... View more
02-26-2020
02:43 PM
|
2
|
1
|
2843
|
|
POST
|
Hi Lars, When editing with CoreHost, you should create an edit operation using Geodatabase.ApplyEdits(). More details are written up . I hope this helps, --Rich
... View more
02-25-2020
08:41 AM
|
1
|
3
|
2843
|
|
POST
|
Dirk- Could you use Python/ geoprocessing to build a cache of this information, and then access it from within the editoperation-callback? I don't have any other suggestions in the short-term, but I'll add this for consideration in a future release. --Rich
... View more
02-14-2020
02:14 PM
|
0
|
0
|
1445
|
|
POST
|
Hi Dirk, This information isn't available through the Pro SDK. Could you share some more information about what you are trying to accomplish? Thanks, --Rich
... View more
02-13-2020
12:15 PM
|
0
|
2
|
1445
|
|
POST
|
Yes, this is correct. More information about multithreading in the Pro SDK is available here: ProConcepts Framework · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
02-11-2020
01:23 PM
|
1
|
0
|
3147
|
|
POST
|
Queued Task sets up code so that it runs on the Main CIM Thread. This is a special thread used to access the geodatabase. So the behavior you are seeing is correct. --Rich
... View more
02-10-2020
11:55 AM
|
1
|
0
|
3147
|
|
POST
|
Hi Mike, The way this is typically done is to use subtype group layers with your utility network feature classes. Each sublayer will reference a particular asset group. You can then bring up the field definition for that layer and hide fields as necessary (and give them better aliases, too). You can then publish this map to ArcGIS Enterprise so that you can share it across your organization. I hope this helps, --Rich
... View more
02-07-2020
07:18 AM
|
5
|
1
|
2019
|
|
POST
|
Yes, this is the best way. I would recommend the following small changes. Remove the WhereClause (which isn't really doing anything, since ObjectIDs should always be greater than zero) Use the Subfields property to reduce the amount of data being read from the database On the call to Table.Search, set the useRecyclingCursor property to True --Rich
... View more
02-05-2020
12:43 PM
|
2
|
1
|
1538
|
|
POST
|
The RemoveStandaloneTable() method must be called on the MCT. Try this: QueuedTask.Run(()=>
{
map.RemoveStandaloneTable(table);
}
See Working with Multithreading in ArcGIS Pro for more information.
... View more
01-28-2020
04:27 PM
|
1
|
1
|
2267
|
|
POST
|
I'm not aware of any way to refresh a single layer, but I'm not an expert in that area.
... View more
01-28-2020
03:23 PM
|
0
|
0
|
3948
|
|
POST
|
How are you updating the features? Database triggers? Editing using the Pro SDK (if done within an EditOperation) or using attribute rules should both cause the map to be redrawn as needed automatically. --Rich
... View more
01-28-2020
03:00 PM
|
0
|
2
|
3948
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-13-2024 11:22 AM | |
| 2 | 01-29-2026 09:34 AM | |
| 2 | 01-28-2026 08:20 AM | |
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|