|
POST
|
I have oAuth working - however the current user always comes back as null after I type my username and password: IdentityManager.Current.OAuthAuthorizeHandler = new Esri.ArcGISRuntime.Toolkit.Security.OAuthAuthorizeHandler(); var item = await Esri.ArcGISRuntime.Portal.ArcGISPortalItem.CreateAsync(portal, "367f0a8a210d49218f7cb7bf5da994c8"); var portal = await Esri.ArcGISRuntime.Portal.ArcGISPortal.CreateAsync(); var user = portal.CurrentUser; //comes back null How do I get the current user without re-authenticating?
... View more
08-03-2015
10:07 AM
|
0
|
2
|
3140
|
|
POST
|
I've tried using Model Builder, The Toolbox, and Python, nothing works. >>> arcpy.AddSubtype_management('ARG.ABAN_Conduit_Valve', '2', 'asdf') <Result 'Database Connections\\sde@sdeQA.sde\\ARG.ABANDONED\\ARG.ABAN_Conduit_Valve'> It say's everything ran successful. When I add in the subtype manually (properties, subtype, enter in subtype) it works fine. I have to add the same subtypes to 12 tables and I'm trying to avoid manually entering them. What am I doing wrong?
... View more
08-28-2014
12:29 PM
|
0
|
2
|
1329
|
|
POST
|
I tried to upload pictures of what I'm talking about.. Here is before rotation: [ATTACH=CONFIG]34664[/ATTACH] Here is after: [ATTACH=CONFIG]34666[/ATTACH]
... View more
06-17-2014
01:22 PM
|
0
|
0
|
464
|
|
POST
|
I'm somewhat new to the silverlight api. When I rotate my map 45 degrees all the layers get cut off because the extent has changed. It only shows half the layer. The part that rotated off the screen is probably showing too, but the new visible map doesn't have my ooverlays on it. Is this a bug? Is there a work around? I can't rotate the layer itself can I? Thank you in advance.
... View more
06-12-2014
02:31 PM
|
0
|
1
|
917
|
|
POST
|
All of my code is executing. It makes it pass that if statement and even if I remove the if statement it doesn't work either. The database just isn't being updated. for row in cursor:
row.STRUCTURE_ID = str(row.getValue("ENCLOSURE_ID"))
cursor.updateRow(row) Thank You
... View more
02-12-2014
11:34 AM
|
0
|
0
|
493
|
|
POST
|
I created a new SDE connection with the default version pointing to the version I wanted to edit, eliminating the need to change versions pro grammatically. Hope this helps someone else. -Jordan
... View more
02-12-2014
05:32 AM
|
1
|
0
|
14453
|
|
POST
|
I have this update cursor. The code executes in LiClipse without an error at all but none of my rows update in SDE. Am I missing a step? Thanks, Jordan # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# stupidtest.py
# Created on: 2014-02-06 11:56:15.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
import arceditor
arg_sdeDEV_sde = "Database Connections\\arg@sdeDEV.sde"
ARG_ACCESS_OPENING = "Database Connections\\arg@sdeDEV.sde\\ARG.DistributionSystem\\ARG.ACCESS_OPENING"
ACCESS_OPENING_Layer = "ACCESS_OPENING_Layer"
# Process: Make Feature Layer
arcpy.env.workspace = "Database Connections\\arg@sdeDEV.sde"
arcpy.env.overwriteOutput = True
arcpy.MakeFeatureLayer_management(ARG_ACCESS_OPENING, ACCESS_OPENING_Layer, "", arg_sdeDEV_sde, "OBJECTID OBJECTID VISIBLE NONE;OPEN_TYPE OPEN_TYPE VISIBLE NONE;REC_INFO_NAME REC_INFO_NAME VISIBLE NONE")
# Process: Start Edit
edit = arcpy.da.Editor(arcpy.env.workspace)
edit.startEditing(False, True)
edit.startOperation()
# Process: Select and Update Data
cursor = arcpy.UpdateCursor(ARG_ACCESS_OPENING)
for row in cursor:
if str(row.getValue("STRUCTURE_ID")) == 'None':
row.STRUCTURE_ID = str(row.getValue("ENCLOSURE_ID"))
cursor.updateRow(row)
del cursor, row
print 'done'
... View more
02-12-2014
05:31 AM
|
0
|
2
|
682
|
|
POST
|
I should mention this is my new code, I added the change version piece: # Set the necessary product code
import arceditor
# Import arcpy module
import arcpy
arg_sdeDEV_sde = "Database Connections\\arg@sdeDEV.sde"
ARG_ACCESS_OPENING = "Database Connections\\arg@sdeDEV.sde\\ARG.DistributionSystem\\ARG.ACCESS_OPENING"
ACCESS_OPENING_Layer = "ACCESS_OPENING_Layer"
Reconcile_Versions_Log = ""
# Process: Make Feature Layer
tempEnvironment0 = arcpy.env.workspace
arcpy.env.workspace = "Database Connections\\arg@sdeDEV.sde"
arcpy.env.overwriteOutput = True
arcpy.MakeFeatureLayer_management(ARG_ACCESS_OPENING, ACCESS_OPENING_Layer, "", arg_sdeDEV_sde, "OBJECTID OBJECTID VISIBLE NONE;OPEN_TYPE OPEN_TYPE VISIBLE NONE;REC_INFO_NAME REC_INFO_NAME VISIBLE NONE")
arcpy.env.workspace = tempEnvironment0
# Process: Change Version
arcpy.ChangeVersion_management(ACCESS_OPENING_Layer, "TRANSACTIONAL", "ARG.ARG_PARENT", "")
# Process: Start Edit
edit = arcpy.da.Editor(arcpy.env.workspace)
edit.startEditing(False, True)
edit.startOperation()
# Process: Select and Update Data
cursor = arcpy.UpdateCursor(ARG_ACCESS_OPENING)
for row in cursor:
row.setValue("STRUCTURE_ID", row.getValue("ENCLOSURE_ID"))
cursor.updateRow(row)
... View more
02-10-2014
04:57 AM
|
0
|
0
|
14453
|
|
POST
|
When I do edit.startEditing(False, True) it breaks on that same line and I get the error "Operation only allowed by the owner of the version [SDE.DEFAULT]" It's almost like it's not changing the version when I execute this:
# Process: Change Version
arcpy.ChangeVersion_management(ACCESS_OPENING_Layer, "TRANSACTIONAL", "ARG.ARG_PARENT", "")
... View more
02-10-2014
04:55 AM
|
0
|
0
|
14453
|
|
POST
|
I keeping getting the "Objects in this class cannot be updated outside an edit session" error message. I can't figure out why because it seems to be I'm opening an edit session. Is there a step I'm missing? Thank you in advance. arg_sdeDEV_sde = "Database Connections\\arg@sdeDEV.sde" ARG_ACCESS_OPENING = "Database Connections\\arg@sdeDEV.sde\\ARG.DistributionSystem\\ARG.ACCESS_OPENING" ACCESS_OPENING_Layer = "ACCESS_OPENING_Layer" Reconcile_Versions_Log = "" # Process: Make Feature Layer tempEnvironment0 = arcpy.env.workspace arcpy.env.workspace = "Database Connections\\arg@sdeDEV.sde" arcpy.env.overwriteOutput = True arcpy.MakeFeatureLayer_management(ARG_ACCESS_OPENING, ACCESS_OPENING_Layer, "", arg_sdeDEV_sde, "OBJECTID OBJECTID VISIBLE NONE;OPEN_TYPE OPEN_TYPE VISIBLE NONE;REC_INFO_NAME REC_INFO_NAME VISIBLE NONE") arcpy.env.workspace = tempEnvironment0 # Process: Start Edit edit = arcpy.da.Editor(arcpy.env.workspace) edit.startEditing(True, False) edit.startOperation() # Process: Select and Update Data cursor = arcpy.UpdateCursor(ARG_ACCESS_OPENING) for row in cursor: row.setValue("STRUCTURE_ID", row.getValue("ENCLOSURE_ID")) cursor.updateRow(row)
... View more
02-07-2014
06:53 AM
|
0
|
5
|
26633
|
|
POST
|
I am using the OnChangeFeature event to capture edits. I need to know which attribute fields changed. Is there a way to do this? I've looked at IFeatureChanges but it seems like it only gives you the old geometry and the new geometry. I don't care about geometry in this instance I need to know which fields the user changed. Thanks, Jordan
... View more
12-13-2013
03:34 AM
|
0
|
2
|
893
|
|
POST
|
I can't find where to tell which attributes changed. I get the new values but can I get any old values other than the geometry? Thanks, J
... View more
12-12-2013
09:39 AM
|
0
|
0
|
475
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-12-2014 05:32 AM | |
| 1 | 09-30-2015 11:41 AM | |
| 1 | 05-12-2010 08:17 AM | |
| 1 | 05-12-2010 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|