POST
|
So I figured out a few things that I was getting wrong but in the end, this is the simple code block: arcpy.MakeFeatureLayer_management(geocode_result1, "geocode_result_1", whereClause)
result = arcpy.GetCount_management("geocode_result_1")
count = int(result[0])
if count > 0:
arcpy.AddMessage("Weekly Crime - Unmatched: " + str(count))
else:
arcpy.AddMessage("Weekly Crime: All Matched") This will allow the end-user to quickly see if they need to rematch any unmatched records.
... View more
02-24-2020
01:34 PM
|
0
|
1
|
1655
|
POST
|
Joe thank you for your suggestion. This is the code block that I came up with. Unfortunately, when I place it multiple times in the script to handle the number of inputs I get undesired results. I could probably set up a loop that runs through this code block, but my python skills are limited. whereClause = "Status = 'U'"
arcpy.MakeFeatureLayer_management(geocode_result1, "geocode_result1", whereClause)
result = arcpy.GetCount_management("geocode_result1")
count = int(result.getOutput(0))
if count > 0:
try:
arcpy.AddMessage("Weekly Crime: Unmatched:" + count)
except:
arcpy.AddMessage("Weekly Crime: All Matched") Below is the common result I receive. The two issues are for one, not all the messages are displayed. The second issue is that the outputs are wrong, "Weekly Crime 4 Weeks" should return the unmatched response not an all matched response. Messages: Running script Geocoding Weekly Crimes... Weekly Crime 4 Weeks: All Matched Weekly Crime 4 Weeks Night: All Matched Completed script Geocoding Weekly Crimes...
... View more
02-21-2020
12:48 PM
|
0
|
3
|
1655
|
POST
|
Hey Dan I understand that the AddMessage function will work, but I don't know the correct syntax to receive the results from arcpy.GeocodeAddresses_geocoding to get the information I'm looking for to display under "View Details". For each file being geocoded I would like the name of the ouput feature class and the number of unmatched records to be shown.
... View more
02-20-2020
12:41 PM
|
0
|
5
|
1655
|
POST
|
I have a script that accepts the input of four tables and then geocodes these tables. My goal is to display the name of the output feature class and the number of unmatched records for each iteration of geocoding. This information is displayed while the tool is running but to better the user experience I would like this info displayed after the script is finished.
... View more
02-17-2020
12:29 PM
|
0
|
7
|
1786
|
BLOG
|
Hi Xander Bakker, Do you mean like the following: <table style="width:100%"><tbody><tr><th colspan="2"><b><font size="2"><br />City Material Data</font></b></th>
</tr>
<span><tr>
<td style="text-align: left;background-color: #ede8e8; padding: 5px">ID</td>
<td style="text-align: left;background-color: #ede8e8;padding: 5px"><span style="display:{expression/expr1}"> {Facility_Identification_No}</span><br />
</td></tr></span>
<span><tr>
<td style="text-align: left;background-color: #ede8e8; padding: 5px">Contact Person</td>
<td style="text-align: left;background-color: #ede8e8;padding: 5px"><span style="display:{expression/expr2}"> {Facility_Contact_Person}</span><br /></td>
</tr></span></tbody></table>
... View more
09-12-2019
12:31 PM
|
0
|
0
|
9582
|
BLOG
|
I'm trying to incorporate this method to work with formatting a table that includes background-color for each cell below is the HTML pop up code <table style="width:100%"><tbody><tr><th colspan="2"><b><font size="2"><br />City Material Data</font></b></th>
</tr>
<tr>
<td style="text-align: left;background-color: #ede8e8; padding: 5px">ID</td>
<td style="text-align: left;background-color: #ede8e8;padding: 5px"><span style="display:{expression/expr1}"> {Facility_Identification_No}</span><br />
</td></tr><tr>
<td style="text-align: left;background-color: #ede8e8; padding: 5px">Contact Person</td>
<td style="text-align: left;background-color: #ede8e8;padding: 5px"><span style="display:{expression/expr2}"> {Facility_Contact_Person}</span><br /></td>
</tr></tbody></table>
Display for populate fields: Display for empty fields: Example of attribute expression: IIF(IsEmpty($feature["Facility_Identification_No"]), "none", "block"); My goal is for there to be no rows present when the attribute field is empty. Has anyone tried this out before?
... View more
09-12-2019
09:08 AM
|
0
|
0
|
9582
|
POST
|
While creating a cached image service I noticed that the estimate cache size was more than double a previously created cache. The only difference was the smaller image cache was created on a 16 bit raster vs the new image service would be using an 8 bit raster. Can anyone explain why or what would cause this massive difference in cache size (30 GB vs 80 GB)?
... View more
07-19-2019
05:53 AM
|
0
|
1
|
476
|
POST
|
Occasionally we will have end users complain that applications will stall when loading. A common culprit seems to be that the application stalls on the following stylesheets: loading.css dojo.css claro.css esri.css This issue is usually resolved when the user clears their browsing cache, but in some cases that doesn't work. Has anyone else had this issue?
... View more
07-03-2019
07:18 AM
|
0
|
0
|
662
|
POST
|
Is it possible or has anyone had success with setting the "Default Value or Binding" to getdate() in SQL Management Studio to auto populate a date field with the current date/time? Online resource
... View more
06-04-2019
05:20 AM
|
1
|
0
|
837
|
POST
|
Gelisa, I did rerun the tools after moving the downloaded folder to a different location, but forgot to delete the original. I was able to publish the gp tool and configure the widget to work correctly. Either it was an issue with the location of the files or the fact that I didn't delete the original even though I downloaded a new Water Outage Components folder. My suggestion would be to edit the documentation to clarify that the tools need to be copied to the server when publishing and not reside in a registered server folder. I appreciate your help and quick responses on this issue! Thanks, Kyle
... View more
05-17-2019
05:59 AM
|
0
|
3
|
2113
|
POST
|
Gelisa, Attempting to verify the gp service in ArcMap resulted in the tool failing. However I went through the steps again but moved the WaterOutageComponents file to a folder that is not registered with our server site. I was able to run the Web Isolation Trace tool but the service failed to publish "Failed to create service definition".
... View more
05-16-2019
01:18 PM
|
0
|
5
|
2113
|
POST
|
My goal is to implement the Utility Isolation Trace portion of the Water Outage solution which leverages the Network Trace Widget in Web App Builder. I'm trying to implement this solution with our existing utility feature data set and geometric network instead of appending the data into the hosted feature layers created when deploying the solution in Pro. I was successful in generating a web isolation trace and publishing the trace service portions of the tutorial using my existing SDE data. However after configuring the Network Trace Widget and running it the result "Trace can not be completed. Please try again." Has anyone had success in implementing this solution without loading/appending their data to the hosted feature layers? The ideal situation would be to use production data within my SDE instead of having to keep hosted feature layers up to date. Derek Law Scott Oppmann
... View more
05-16-2019
10:28 AM
|
0
|
7
|
2446
|
POST
|
Lefteris would it be possible for you to go into more detail on how you accomplished this workflow? Thanks!
... View more
12-04-2018
05:37 AM
|
0
|
1
|
1063
|
POST
|
Just wanted to see if this is possible and if anyone is currently implementing Abbreviation Dictionary with published content.
... View more
05-16-2017
08:12 AM
|
0
|
0
|
439
|
DOC
|
Has anyone found a better way to handle Legend items within a print widget?
... View more
03-28-2017
06:32 AM
|
0
|
0
|
4472
|
Title | Kudos | Posted |
---|---|---|
1 | 06-04-2019 05:20 AM | |
1 | 03-24-2017 11:19 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|