|
POST
|
I have a table(Table1) that i need to update on a regular basis by comparing/matching the records in the (Table1) to the table (Table2) based on field "Street" of Table1 and "FullStName" of table two. If theirs NOT a match it then updates the table1 based on the NOT matched from the table and I also need it to add "FullStName" have have "RES", "Reserved", "proposed" in the "status" field of table2. I need to add the missing names of tabel2 to table 1. Hopefully it make sense. This is what i have but i am not sure i am doing it right... import arcpy
from arcpy import env
arcpy.env.workspace = r"C:\Temp\Default.gdb\RoadNames"
Rtable = "table1"
table1 = "table2"
fcIncident = []
tableIncident = []
with arcpy.da.SearchCursor(Rtable, ["Street"]) as cursor:
for row in cursor:
fcIncident.append(row[0])
del row, cursor
with arcpy.da.SearchCursor(table1, ["FULLSTNAME", "STATUS"]) as cursor:
for row in cursor:
if row[1] in ("RES", "Reserved", "proposed"):
if not row[0] in fcIncident:
tableIncident.append(row[0])
del row, cursor
arcpy.MakeTableView_management(table1, "tblView")
for ID in tableIncident:
arcpy.SelectLayerByAttribute_management("tblView", "ADD_TO_SELECTION", "FULLSTNAME = " + str(ID))
... View more
07-18-2017
03:00 PM
|
0
|
12
|
5446
|
|
DOC
|
I got it to work, i restarted my PC. Robert the features are polygons and i made changes to both lines in the eSearch\Widget.js but it's still zooms in exactly the same extent. I am making changes to the \WebAppBuilderForArcGIS\server\apps\8\widgets\eSearch\Widget.js var gExt = graphicsUtils.graphicsExtent(this.currentLayerAdded.graphics);
if (gExt) {
this.map.setExtent(gExt.expand(2), true);
} else {
var mp2 = this.currentLayerAdded.graphics[0].geometry;
this.map.setScale(zoomScale);
this.map.centerAt(mp2);
var gExt = graphicsUtils.graphicsExtent([item.graphic]);
if (gExt && !layerConfig.forceZoomScale) {
this.map.setExtent(gExt.expand(2), true).then(lang.hitch(this, function () {
if ((this.map.infoWindow && this.config.enablePopupsOnResultClick) && !lyrHasPopupDisabled) {
this.map.infoWindow.setFeatures([item.graphic]);
if (this.map.infoWindow.reposition) {
this.map.infoWindow.reposition();
}
... View more
07-06-2017
08:17 AM
|
0
|
0
|
10039
|
|
DOC
|
Robert, I've tried searching for this but i have not be able to find an answer to my question specifically to your Esearch widget. I am currently using your widget and when doing a search for a certain item i noticed that the zoom is way to close. I would like to change the zoom to zoom out further when a result is returned. When i searched i found how to change the zoom level on WAB Search widget but not on your Esearch Widget. none less i tried adding the code you posted on this post but no luck. I might just not be seeing it correctly. Thanks.
... View more
06-26-2017
02:49 PM
|
0
|
0
|
11333
|
|
DOC
|
Hi Robert . I noticed that when i use the Elevation Profile widget and if i close the widget or use the "Clear" to clear the current profile and then move some where else and open it back up it has the profile of the last profile i did. So i the "Clear" is truly not working?
... View more
06-23-2017
07:43 AM
|
0
|
0
|
19694
|
|
POST
|
I've never been able to print points features at all with WAB. Are your features secured? Are they hosted on ArcGIS Online? I would be interested to see if anyone else is having this issue as well.
... View more
06-23-2017
07:24 AM
|
0
|
2
|
1116
|
|
POST
|
After adding the trace back it came back as not having arcpy module. Once i added the module it ran fine. Would a better alternative be arcpy.ExportXMLWorkspaceDocument_management or be the same?
... View more
06-22-2017
12:08 PM
|
0
|
1
|
1539
|
|
POST
|
I would like to back up a SQL express database but with the date of when the backup was created added to the end (Owls06222017.bak). Is this possible if so how? I tried the following but did not work. db, backup_path + db + time.strftime("%m%d%y")+ r'.bak' import pyodbc, datetime, fnmatch
conn = pyodbc.connect('DRIVER={SQL Server};SERVER=GIS7\SQLEXPRESS;Trusted_Connection=yes', autocommit=True)
backup_path = 'C:\\temp\\'
db = "Owls"
def backup_db(conn, db, backup_path):
cur = conn.cursor()
try:
cur.execute('BACKUP DATABASE ? TO DISK=?', [db, backup_path + db + time.strftime("%m%d%y")+ r'.bak'])
while cur.nextset():
pass
cur.close()
except:
print 'Unable to backup: ' + db
backup_db(conn, db, backup_path)
conn.close()
... View more
06-22-2017
10:29 AM
|
0
|
5
|
1813
|
|
POST
|
The Measure Widget has options to show Measurement and bearings. https://community.esri.com/docs/DOC-3209
... View more
06-09-2017
11:15 AM
|
2
|
0
|
1295
|
|
DOC
|
Slope (gradient percent ) degree of inclination. Topographic Map Slope (Gradient) Calculation from Contours
... View more
06-09-2017
09:28 AM
|
0
|
0
|
19694
|
|
DOC
|
Robert, Does this widget calculate percent slope of the two points and have it display inside the widget window? I use this widget a lot but i find my self calculating the percent slope as well. Could this be something that you could include in this widget and maybe add it to the profile results window? Awesome widget by the way!
... View more
06-09-2017
07:59 AM
|
0
|
0
|
19693
|
|
POST
|
oh my bad i was adding the code to the OnscreenWidgetIcon.js. I added it to the eSearch Widget.js and works thanks.
... View more
06-08-2017
11:02 AM
|
0
|
0
|
727
|
|
POST
|
I replaced what i had previously( not sure what the other code was, i was already there.) with what you posted(lines 8-22) and nothing changed at start up. postCreate: function() {
this._originalBox = {
w: 400,
h: 410
};
},
startup: function() {
this.inherited(arguments);
var position = {
relativeTo: map,
left: 277,
top: 325,
width: 300,
height: 420
};
this.getPanel().setPosition(position);
this.fetchData();
this.list.parentWidget = this;
},
_onMaxBtnClicked: function(evt) {
evt.stopPropagation();
var posInfo = this._getPositionInfo();
if (posInfo.isRunInMobile) {
if (this.windowState === 'maximized') {
this.panelManager.normalizePanel(this);
} else {
this.panelManager.maximizePanel(this);
}
this._setMobilePosition();
}
},
... View more
06-08-2017
09:49 AM
|
0
|
2
|
4140
|
|
POST
|
Robert i add the following and it moved the context of the inside of the ESearch down (see attached). startup: function() {
this.inherited(arguments);
this._normalizePositionObj(this.position);
this._makeOriginalBox();
this.makePositionInfoBox();
this.makeMoveable(this._positionInfoBox.w, this._positionInfoBox.w * 0.25);
this.inherited(arguments);
var position = {
relativeTo: map,
left: 277,
top: 225,
width: 300,
height: 420
};
this.getPanel().setPosition(position);
},
... View more
06-08-2017
08:20 AM
|
0
|
4
|
4140
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2022 11:37 AM | |
| 1 | 10-31-2023 10:16 AM | |
| 1 | 02-16-2023 01:50 PM | |
| 1 | 08-11-2021 11:13 AM | |
| 1 | 01-06-2021 10:45 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-10-2024
10:42 AM
|