|
POST
|
Hi Lynn, Would it be possible for you to share your widget.js if you have successfully added th SSRS url please. I would like to do the something you are doing.
... View more
08-15-2017
02:34 PM
|
0
|
0
|
2622
|
|
POST
|
Oh man i feel like goof. Oh i was making changes to themes\launchpadTheme\common.css. Reobert i really appreciate your help. I still have part of the header background showing to the left of the log...?
... View more
08-07-2017
02:40 PM
|
0
|
0
|
4103
|
|
POST
|
I made you suggested changes and still have that outline and you can still see the header to the left of the logo. Nothing was affected. @import url("panels/LaunchpadPanel/style.css");
/**********About Edit Widget*************/
.jimu-widget-edit .templatePicker {
bottom: 92px;
}
.jimu-widget-edit-infoWindow .esriAttributeInspector .dijitArrowButton.dijitDownArrowButton.dijitArrowButtonContainer {
position: static !important;
height: 30px !important;
}
/**********End Edit Widget*************/
.claro .jimu-widget-header .logo {
height: 110px !important;
width: 110px;
min-width: 50px;
/*background-color: #3b8fc4;*/
-webkit-border-radius: 50px;
border-radius: 80px !important;
position: relative;
top: -40px !important;
left: -3px !important;
}
.claro .jimu-widget-header .logo > img {
height: 110px !important;
margin: 0 auto;
display: block;
}
... View more
08-07-2017
08:32 AM
|
0
|
2
|
4103
|
|
POST
|
Hi Robert, After making the changes you suggested it still looks off and where the logo use to be there is an outline. Please the attached picture.
... View more
08-04-2017
02:32 PM
|
0
|
4
|
4103
|
|
POST
|
So i wanted to remove the blue logo around the application logo i am building, which i was able to do but now it seemed to have moved the header to the left and cuts off the application name. I tried adjusting the header on the app config.json but it move everything to the right include the logo. How can move just the the black header to the right of the logo? I commented out the background-color: #3b8fc4; line in the application common.css file like below. .claro .jimu-widget-header .logo {
height: 0px !important;
width: 0px;
min-width: 50px;
/*background-color: #3b8fc4;*/
-webkit-border-radius: 50px;
border-radius: 80px !important;
position: relative;
top: -32px !important;
left: -3px !important;
-webkit-box-shadow: 0 1px 0.5px rgba(0,0,0,0.3), 0 2px 2px rgba(0,0,0,0.2);
box-shadow: 0 1px 0.5px rgba(0,0,0,0.3), 0 2px 2px rgba(0,0,0,0.2);
}
.claro .jimu-widget-header .logo > img {
height: 110px !important;
... View more
08-04-2017
11:57 AM
|
0
|
9
|
4915
|
|
POST
|
ok, i am see it now. Thank you very much for your help. Although i am getting an error and i am not sure why. Is it not liking the actual values( Ave, Rd, Ct, Dr, St, Way, Ln, Blvd, Pl,Cir, Trl) and if so how can tell which one it doesn't like? line 17, in <module> cursor.updateRow([predir, stname, sttype, postdir, fullstname]) RuntimeError: Invalid column value [STTYPE] import arcpy, usaddress
from collections import OrderedDict
# Get feature class through parameter
Table = "RoadNameTabl"
fields = ['PREDIR','STNAME','STTYPE','POSTDIR','FULLSTNAME']
try:
with arcpy.da.UpdateCursor(Table,fields) as cursor:
for predir, stname, sttype, postdir, fullstname in cursor:
parse = usaddress.tag(fullstname)[0]
predir = parse.get("StreetNamePreDirectional", "")
stname = parse.get("StreetName", "")
sttype = parse.get("StreetNamePostType", "")
postdir = parse.get("StreetNamePostDirectional", "")
cursor.updateRow([predir, stname, sttype, postdir, fullstname])
print 'Done'
... View more
08-01-2017
09:09 AM
|
0
|
0
|
3480
|
|
POST
|
thanks for the reply yes i did read the docs my apologies for not understand how to use the parser . I am not quit sure how updating/populating the fields using a cursor. This is what i have came up with but i am not sure if i am using usaddress correctly. I am getting an error on row[1] = addr_dict[row[4]] TypeError: tuple indices must be integers, not unicode import arcpy, usaddress
from collections import OrderedDict
# Get feature class through parameter
Table = "RoadNameTabl"
field1 = "PREDIR"
field2 = "STNAME"
field3 = "STTYPE"
field4 = "POSTDIR"
field5 = "FULLSTNAME"
'''
fields = ['PREDIR','STNAME','STTYPE','POSTDIR','FULLSTNAME']
fields = (field1,field2,field3,field4,field5)
with arcpy.da.UpdateCursor(Table,fields) as cursor:
for row in cursor:
field2 = row[fields.index(field5)]
'''
with arcpy.da.UpdateCursor(Table,(field1, field2, field3, field4, field5)) as cursor:
for row in cursor:
addr_dict = usaddress.tag(row[4])
# say you want to put the address name in field 2
row[1] = addr_dict[row[4]]
cursor.updateRow(row)
del row
print 'Done'
... View more
07-31-2017
09:45 AM
|
0
|
2
|
3480
|
|
POST
|
Joshua, thank you for the replay and link to the address parse. So an Address parse breaks up a single address strings into individual parts, which i get but i am not sure how use it to accomplish what i am trying to do.
... View more
07-28-2017
01:51 PM
|
0
|
1
|
3480
|
|
POST
|
I have a table with about 6k road names. only the FULLSTNAME field is populated. I need to populate the PERDIR (pre directional) STNAME (Street name only), STTYPE (Street type) and POSTDIR (post directional) from the field FULLSTNAME. To start off i started with field calculator but only a handful of fields get populated. def myParser(inString):
splitString = inString.split(' ') ###splits the address into a list
a = splitString[0] ### list item 0 is the first part of name
b = splitString[1] ### list item 1 is the prefix
c = ' '.join(splitString[2:-1]) ### this rerurns the street name
d = splitString[-1] ### this returns the suf dir or street type
return a ### depending on what you want to return,
#return b ### un-comment and re-comment out the
#return c ### appropriate value(s)
#return d
myParser(!FULLSTNAME!) Even looking at just populating "PREDIR" field with the above filed calculator i would run into problems, for example the road name "New Castle Dr" it would put "New" in the PREDIR field which correct because it is not a Pre- directional. Some roads have two words for names like "New Castle Dr" has "New Castle". if used return c it would only populate the STNAME field with just "New". I tried looking at using arpy with the following but get an invalid syntax line 15 import arcpy
from arcpy import env
inputTable = "Road_Names_1"
arcpy.AddMessage ("input " + inputTable)
#split field loop
rows = arcpy.UpdateCursor (inputTable) #gets all vlaues for table
for row in rows: #loops through vlaues and updates new field
row.Type = row.FULLSTNAME.split(" ")[-1] if ',' in !FULLSTNAME! then !STNAME!=!FULLSTNAME!.split(',',1)[-1] else ""
rows.updateRow(row)
del row
del rows I also tried to look at at a post by Ted Kowal of his Address Parase but i am not sure how to use it. If anyone already has a python script that works and would be willing to share i would really appreciate it. Thanks.
... View more
07-28-2017
08:59 AM
|
0
|
7
|
4468
|
|
POST
|
Do you mean change 'table2' to 'table1' in line 20? I have inserted the "Row" in insertCursor.insertRow(i)
... View more
07-20-2017
11:51 AM
|
0
|
0
|
804
|
|
POST
|
Shouldn't the insertCursor be on Table1 since that is the table i am needing to update? I am getting an error. insertCursor.insert(i) AttributeError: 'da.InsertCursor' object has no attribute 'insert' table1List = []
with arcpy.da.SearchCursor(table1, ['Street']) as cursor:
for row in cursor:
table1List.append(row[0])
del cursor
#list of fields whose will need to be imported into table2
fields = ['FULLSTNAME']
#list of values from table1 to inject into table2
ids = []
with arcpy.da.SearchCursor(table2, ['FULLSTNAME']) as cursor:
for row in cursor:
if row[0] not in table1List:
ids.append(row[0:])
del cursor
#create insert cursor variable
insertCursor = arcpy.da.InsertCursor(table2,fields)
#loop through items in ids list and insert into table
for i in ids:
insertCursor.insert(i)
del insertCursor
... View more
07-20-2017
10:53 AM
|
0
|
2
|
804
|
|
POST
|
my apologies for not being clear and really appreciate you helping me with this. The code you posted looks to inject "RES","Reserved","proposed" fields into table 2, which is not what am after. i am needing to copy road names from table 2 field ( "FULLSTNAME") to table 1 field ( "Street") but only if they don't already exist in table 1. we can disregard the "RES","Reserved","proposed" i think its making it confusing.
... View more
07-20-2017
08:03 AM
|
0
|
4
|
4057
|
|
POST
|
Insert the missing names(rows) from table 2 to table 1. Table 1 is the main table that needs to be updated.
... View more
07-19-2017
02:22 PM
|
0
|
0
|
4057
|
|
POST
|
I tried your code and i get ERROR 000358: Invalid expression. How would you get it to update table 1 with the missing names?
... View more
07-19-2017
08:22 AM
|
0
|
2
|
4057
|
|
POST
|
I get ERROR 000358: Invalid expression. How do you query where they are not equal to a joined tables? How do you update the table with only the missing names?
... View more
07-19-2017
08:19 AM
|
0
|
0
|
4057
|
| 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
|