POST
|
What do each of the pathname characters mean below, from left paren until the comma, i.e. "/\/[^]+$/" location.pathname.replace(/\/[^/]+$/, "") Thanks,
... View more
06-14-2013
10:53 AM
|
0
|
2
|
950
|
POST
|
RESOLVED My boolean var gb_NewEditSession was persisting but located in the wrong place because I didn't understand event firing sequence. INSIGHT: When the user stops editing _OnStopEditing fires before _OnSaveEdits (while the reverse is true when the user saves edits)! Since _OnStopEditing fires both when edits are saved and when edits are stopped, I moved my var assignment to _OnStopEditing, conditional to whether "save edits" or 'stop editing" fired the _OnStopEditing listening event: Private Sub EditorEvents2_OnSaveEdits() On Error GoTo EH gb_SaveOnly = True 'set condition used by _OnStopEditing Exit Sub EH: MsgBox Err.Description, vbInformation, "On Save Edits" End Sub -------------------------------- Private Sub EditorEvents_OnStopEditing(ByVal Save As Boolean) On Error GoTo EH: <clip> 'PURPOSE: Boolean used by _onstartediting to determine if new editing session If gb_SaveOnly = True Then gb_NewEditSession = False Else gb_NewEditSession = True End If <clip> Exit Sub EH: MsgBox Err.Description, vbInformation, "On Stop Editing" End Sub Note: In my previously attached code gb_NewEditSession was called gb_CheckdbMetatables
... View more
02-24-2012
06:03 AM
|
0
|
0
|
157
|
POST
|
I think I must be missing something obvious and fundamental... I need to know how to fire a procedure (Private sub LoadTableNameArrayFromDB) ONLY when an editing session begins. I have tried: Including a call to the procedure from editorevents_onstartediting which results in the procedure firing every time edits are saved or closed (not acceptable) as well as when an editing session begins. Listening to "save edits" and "stop editing" actions and setting a boolean variable to true only if the user is stopping edits. My idea was that when this same boolean var was read in the editorevents_onstartediting in the next editing session, the procedure would fire appropriately. However the boolean variable value did not persist between edit sessions. I am surely missing something obvious about gettting non-object, global variables to persist outside an edit session, since plenty of code is written outside editing sessions. My customization is complete except for this issue. Please help! My customization includes 2 forms and 6 modules grouped by module actions (such as loading arrays, entry validation, data upload, database connection, etc) and is written in vba in ArcGIS 10 using an Oracle 10 sde geodatabase. Thanks,
... View more
02-23-2012
05:31 AM
|
0
|
1
|
687
|
POST
|
Not sure of your exact scenario or what you are trying to do... If you are listening for edits (for example: Public WithEvents EditorEvents As Editor), you can identify each edited feature as it loops through the _onchange event. For example, you could assign "varFeatureID=obj.OID" via an editor event subroutine such as "Private Sub EditorEvents_OnChangeFeature(ByVal obj As IObject)" which passes each feature as "obj". A simultaneous edit to multiple features results in each feature (i.e, "obj") looping through the _OnChangeFeature one at a time until the batch edit completes. So you could collect information about each feature in an array as each feature object looped through the _OnChangeFeature event. Also note that users can make a group selection across more than one feature class (unless restricted from doing so) but only selections in the highlighted feature class (attribute window) or current table (attribute table) are processed. Therefore, in this scenario selectioncount and actual number of batched features edited willl not match! Would like more details. I am always interested in new ways to structure solutions.
... View more
04-12-2011
07:37 PM
|
0
|
0
|
194
|
POST
|
Thank you. Thank you, Neil!! This did it (passing 3 combo boxes): Private Sub UserForm_Initialize [INDENT]PopulateComboBoxes cboEditor, cboForest, cboSourceCode 'Without the "me" or enclosing parentheses!![/INDENT]End Sub Public Function PopulateComboBoxes(cboEditor as ComboBox, cboForest as ComboBox, cboSourceCode as ComboBox) as Boolean [INDENT]do stuff[/INDENT] End Function Jill, USFS Region 6 ecohydrologist (ESRI Global Account) previously known as "geophotog" (GIS Online Account) Here's an mxd (version 9.3.1) that contains two user forms and module with a public method for loading a combobox. Both of the forms call this method in their Initialize event. Hopefully this will help!
... View more
04-01-2011
11:31 AM
|
0
|
0
|
520
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|