|
POST
|
Json file does not stay formatted. I 've been working on WAB Dev. When i open a json file in Atom and make edits, save and close, then say i make changes in WAB developer and go back to Json file in Atom it's not formatted, which i formatted it correctly prior to making changes in WAB Dev. I have to go back to jsonLint web site to get it formatted correctly. Why does this happen, what do i need to make sure the json file doesn't get unformatted?
... View more
02-13-2018
02:52 PM
|
0
|
2
|
1654
|
|
POST
|
After i posted i found the .jimu-widget-head .log in the style.css I changed it to 70px. It did make the logo but i will comment it out instead. Thanks.
... View more
02-12-2018
02:41 PM
|
0
|
0
|
1899
|
|
POST
|
So i am working on a app which i am trying to use the Tab theme but the logo is super small, so i tired making it larger and i had some success but it's not correct. I added the following, which mad it bigger but squished. See attached pic. Not sure what i am missing, i tired playing with the height and width in the sytles.css but i can't get it symmetric round. I made changes to the WebAppBuilderForArcGIS\server\apps\8\themes\TabTheme\styles\default\style.css. .claro .jimu-widget-header .logo {
height: 90px !important;
width: 90px;
min-width: 50px;
-webkit-border-radius: 50px;
border-radius: 40px !important;
position: relative;
top: -0px !important;
left: -3px !important;
}
.claro .jimu-widget-header .logo img {
height: 90px !important;
max-height: 90px;
margin: 0 auto;
display: block;
} I made changes to WebAppBuilder2.7\WebAppBuilderForArcGIS\server\apps\8\config.json. Changed line 8 to 70. "widgetOnScreen": {
"widgets": [{
"uri": "themes/TabTheme/widgets/Header/Widget",
"position": {
"left": 0,
"top": 0,
"right": 0,
"height": 70,
"relativeTo": "browser"
}, Changed line 4 to 70 "uri": "themes/TabTheme/widgets/SidebarController/Widget",
"position": {
"left": 0,
"top": 70,
"bottom": 24,
"relativeTo": "browser"
... View more
02-12-2018
11:44 AM
|
0
|
2
|
2119
|
|
POST
|
If this is not currently available could this please be an added feature on the next release please. Could the current widget be modified to include multiple features?
... View more
02-07-2018
03:17 PM
|
0
|
0
|
888
|
|
POST
|
The ParcelNum is the parcel unique identifier and Pin_ID is the tables unique identifier. the fields in both the updateFieldsList and sourceFieldsList must be matching in order for the attributes to transfer. Thanks for catching the size of text fields.
... View more
02-07-2018
10:33 AM
|
0
|
0
|
2394
|
|
POST
|
I was able an example of some code that worked. /blogs/richard_fairhurst/2014/11/08/turbo-charging-data-manipulation-with-python-cursors-and-dictionaries Although i don't get one field to get populated the "ParcelNum". Would it be best to add another updatecursor? fc_dest = "C:/Temp/BuildingPermit.gdb/TaxParcels"
#Addfields
fields = [
("AppSubmitted","Date","","","","","NULLABLE","NON_REQUIRED",""),
("PermitIssued","Date","","","","","NULLABLE","NON_REQUIRED",""),
("PermitNum","Text","30","","","","NULLABLE","NON_REQUIRED",""),
("ParcelNum","Text","24","0","","","NULLABLE","NON_REQUIRED",""),
("Classification","Text","4000","","","","NULLABLE","NON_REQUIRED",""),
("Address","Text","100","","","","NULLABLE","NON_REQUIRED",""),
("ProjectInfo","Text","4000","","","","NULLABLE","NON_REQUIRED",""),
("Contractor","Text","255","","","","NULLABLE","NON_REQUIRED",""),
("Subdivision","Text","240","","","","NULLABLE","NON_REQUIRED",""),
("TwnRngSec","Text","32","0","","","NULLABLE","NON_REQUIRED",""),
("LivingSpace","Double","","","","","NULLABLE","NON_REQUIRED",""),
("TotalSqFt","Double","","","","","NULLABLE","NON_REQUIRED",""),
("Value_","Double","","","","","NULLABLE","NON_REQUIRED",""),
("Valuation","Double","","","","","NULLABLE","NON_REQUIRED",""),
("Status","Text","30","","","","NULLABLE","NON_REQUIRED","")
]
for field in fields:
arcpy.AddField_management(*(fc_dest,) + field)
sourceFC = "C:/Temp/BuildingPermit.gdb/Permits"
sourceFieldsList = ["PINNum", "AppSubmitted",'PermitIssued', 'PermitNum','Classification','Address', 'Contractor', 'Subdivision', 'TwnRngSec', 'LivingSpace', 'TotalSqFt', 'Value_', 'Valuation', 'Status']#,'ProjectInfo', 'Contractor', 'Subdivision', 'TwnRngSec', 'LivingSpace', 'TotalSqFt', 'Value_', 'Valuation', 'Status']
# Use list comprehension to build a dictionary from a da SearchCursor
valueDict = {r[0]:(r[1:]) for r in arcpy.da.SearchCursor(sourceFC, sourceFieldsList)}
updateFC = "C:/Temp/BuildingPermit.gdb/TaxParcels"
updateFieldsList = ["PIN_ID", "AppSubmitted",'PermitIssued', 'PermitNum','Classification','Address', 'Contractor', 'Subdivision', 'TwnRngSec', 'LivingSpace', 'TotalSqFt', 'Value_', 'Valuation', 'Status']
with arcpy.da.UpdateCursor(updateFC, updateFieldsList) as updateRows:
for updateRow in updateRows:
# store the Join value of the row being updated in a keyValue variable
keyValue = updateRow[0]
# verify that the keyValue is in the Dictionary
if keyValue in valueDict:
# transfer the values stored under the keyValue from the dictionary to the updated fields.
for n in range (1,len(sourceFieldsList)):
updateRow[n] = valueDict[keyValue][n-1]
updateRows.updateRow(updateRow)
del valueDict
... View more
02-07-2018
09:24 AM
|
0
|
2
|
2394
|
|
POST
|
I get. updateRows.updateRow(("monkey", 1 , datetime.date(2017,2,5))) TypeError: sequence size must match size of the row
... View more
02-07-2018
09:15 AM
|
0
|
0
|
2394
|
|
POST
|
Dan, i was able to do a join with the Join field (data management tool) in ArcCatalog., It joined just fine. The dates from the table in the "PermitIssued" field are entered as 4/28/2017.
... View more
02-07-2018
09:14 AM
|
0
|
0
|
2394
|
|
POST
|
Yes they are both text fields. i did have the wrong filed in the joinTblDict, which is now fixed but now i get error. line 25, in <module> updateRows.updateRow(updateRow) RuntimeError: The value type is incompatible with the field type. [PermitIssued] but "PermitIssued" field is a date field on both the mainTb1 and joinTb1.
... View more
02-05-2018
03:04 PM
|
0
|
4
|
2394
|
|
DOC
|
I did remove the -master after i copied the folders to the appropriate folders but no luck. I deleted the fold in the mentioned folder above. removed the -master from the file i downloaded copied over the appropriate folders and saw this message. { message: 'Not existed:C:\\GIS API\\WebAppBuilder2.7\\WebAppBuilderForArcGIS\\client\\stemapp\\widgets\\GoogleEarth\\manifest.json' }. I removed the folders and renamed the GoogleEarth-master to just GoogleEarth and copied the folders to the appropriate folders and i still can't see the widget. I looked inside the widget folder and did not see manifest.json file.
... View more
02-05-2018
02:34 PM
|
0
|
0
|
16848
|
|
DOC
|
Kevin, I am having the same issue as George. I download the widget placed the folder "GoogleEarth-master" in "C:\GIS API\WebAppBuilder2.7\WebAppBuilderForArcGIS\server\apps\11\widgets" and in "C:\GIS API\WebAppBuilder2.7\WebAppBuilderForArcGIS\client\stemapp\widgets". after adding the folders to the app and stemapp i don't see the widget on choose widget screen.
... View more
02-05-2018
01:28 PM
|
0
|
0
|
16848
|
|
POST
|
Thank you for sample. I have tried modifying what you posted to my code but after i run it the fields don't get updated. I don't get no error. Any ideas on what i am doing wrong? import arcpy
mainTbl = "C:/Temp/BP.gdb/TaxParcels"
joinTbl = "C:/Temp/BP.gdb/Permits"
fieldsToJoinList = ["AppSubmitted","PermitIssued","Classification"]
#Addfields
fields = [
("AppSubmitted","Date","","","","","NULLABLE","NON_REQUIRED",""),
("PermitIssued","Date","","","","","NULLABLE","NON_REQUIRED",""),
("PermitNum","Text","30","","","","NULLABLE","NON_REQUIRED",""),
("ParcelNum","Text","24","0","","","NULLABLE","NON_REQUIRED",""),
("Classification","Text","4000","","","","NULLABLE","NON_REQUIRED","")
]
for field in fields:
arcpy.AddField_management(*(mainTbl,) + field)
joinTblDict = {r[0]:r[1:] for r in arcpy.da.SearchCursor(joinTbl, ["PIN_Num"]+fieldsToJoinList)}
updateRows = arcpy.da.UpdateCursor(mainTbl, ["PIN_ID"] +fieldsToJoinList)
for updateRow in updateRows:
if updateRow[0] in joinTblDict:
updateRow[1] = joinTblDict[updateRow[0]][1]
updateRow[2] = joinTblDict[updateRow[0]][2]
updateRow[3] = joinTblDict[updateRow[0]][3]
updateRows.updateRow(updateRow)
del updateRow, updateRows
... View more
02-05-2018
11:39 AM
|
0
|
6
|
3127
|
|
POST
|
I did read some post about using dictionary and update cursor but i couldn't figure out how to set it up with my data. The ones i found have multiple fields that were joined. Do you have a basic example of how to us dictionary and update cursor to do a join.
... View more
02-05-2018
08:03 AM
|
0
|
0
|
3127
|
|
POST
|
ArcMap 10.4.1 32 gb ram I just have 32 bit - i use to have 64 bit but i was having conflicts. my system resources are cup 9%, Memory is 14 gb. with basic applications (browser, Microsoft) When running the join script my cpu and memory don't change much.
... View more
02-02-2018
02:25 PM
|
0
|
1
|
3127
|
| 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
|