|
POST
|
Hi Robert, Didn't want to start a new thread, and it doesn't give me the option to PM you. anyway, I noticed that your live preview site for the dynamic legend widget is trying to load a Symbols mapservice that doesn't exist anymore and is throwing an error. R_
... View more
10-04-2012
11:53 AM
|
0
|
0
|
949
|
|
POST
|
Excellent, works like a charm. Was so close, but was missing the formattedAttributes part. Thanks again, this is slick, R_
... View more
10-04-2012
10:08 AM
|
0
|
0
|
695
|
|
POST
|
Yes, you need to create a custom PopUpRendererSkin. Try making this change to line 163 of PopUpRendererSkin.mxml: if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName]) Hi Dasa, In several of my data sets, I often end up with a space in the "empty" cells. Is there a way to modify this so that a single space is also filtered out as well as blanks and Nulls? Thanks again, R_
... View more
10-03-2012
05:24 PM
|
0
|
0
|
5122
|
|
POST
|
Won't let me edit the post, so here is "fix" to code: repStr = 35*" " + "<!--" + searchText + "-->" + '<value userlist="' + NewString + """all">summary_""" + fieldName + " = '[value]\'</value>""" + "\n"
otherwise, it doesn't know where/what to replace after first run. R_
... View more
10-03-2012
10:04 AM
|
0
|
0
|
840
|
|
POST
|
without knowing more specifically which basemap you are refering to, I would hazard a guess that you are exceeding the tiled scale level of the basemap. If so, in flex, if you load as type="dynamic", you should be able to zoom in more (just slows it down a bit). R_
... View more
10-02-2012
05:05 PM
|
0
|
0
|
469
|
|
POST
|
Maybe this will help: http://forums.arcgis.com/threads/65432-(e)mapswitcher-widget-basemapsContainer-on-top?p=227013#post227013 Maybe, R_
... View more
10-02-2012
04:52 PM
|
0
|
0
|
726
|
|
POST
|
Whoops, clicked on the wrong well. [ATTACH=CONFIG]18125[/ATTACH] However, after re-boot, re-clear everything, it seems to be working now. [ATTACH=CONFIG]18126[/ATTACH] Thanks for the help, R_
... View more
10-01-2012
03:24 PM
|
0
|
0
|
5122
|
|
POST
|
Yes, you need to create a custom PopUpRendererSkin. Try making this change to line 163 of PopUpRendererSkin.mxml: if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName]) PopUpRendererSkin.mxml is in the skins folder inside the API's zip file. Hi Dasa, was wondering if there is anything else one needs to do to make this happen? I have made the change to my PopUpRenderSkin.mxml, but I still get fields in my popup that have null values: [ATTACH=CONFIG]18124[/ATTACH] Thanks, R_
... View more
10-01-2012
02:55 PM
|
0
|
0
|
5122
|
|
POST
|
How do you do this for version 3.0 of the flexviewer? Do I do it on my computers config.xml or on the server? I see config.xml folders on both. On the server their is nothing in it. On my computer I don't see any of the syntax mentioned to insert the code. Could someone shine some light on this? Are you using compiled or source code version?
... View more
10-01-2012
11:36 AM
|
0
|
0
|
1142
|
|
POST
|
version three supports LOD as well. http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Main_configuration_file/01m300000018000000/ either set the LOD's you want to see, OR, load a tiled basemap with the LOD cache levels as the first basemap. R_
... View more
10-01-2012
11:34 AM
|
0
|
0
|
1142
|
|
POST
|
Sure, as long as you load the "second" one as dynamic (or rather, non-tiled) so it can on the fly it. R_
... View more
10-01-2012
11:29 AM
|
0
|
0
|
1220
|
|
POST
|
All, I have had this need myself, normally due to a dynamic "userlist" that could possibly change from day to day as data is added. My "solution" was to make a python script that gets the unique values from my data, makes a replacement string, searches the eSearchWidget.xml for a particular string, and replaces that line with the newly created line. Basically, in the eSearchWidget.xml I add something similar to <!--replace1_start--><value userlist="value1, value2, all">summary_Milestone_Date = '[value]'</value> . then my script will look for the respective "replace1, replace2" section so it knows what line to "replace". Here is the snippet if anyone is interested, I have configured it as a def so at the bottom, you can make the list of fields/search text and it will run through them all. # Import arcpy module
import arcpy,shutil,fileinput,io
# Local variables:
summary = "\\\\mcflight01\\MCFlightData\\HGIS\\Data\\data_4_temp_services.gdb\\summary" # my dataset I'm searching against
temp_path = "D:\\baks\\dont_use\\temp.gdb\\"
config_file = "\\\\gis01\\C\\inetpub\\wwwroot\\WCH_WIDS_Status\\widgets\\eSearch\\eSearchWidget.xml"
ifile = "D:\\baks\\dont_use\\eSearchWidget_template.xml"
ofile = "D:\\baks\\dont_use\\eSearchWidget.xml"
# Overwrite pre-existing files
arcpy.env.overwriteOutput = True
# copy config file to a working copy
shutil.copy2(config_file, ifile)
def UniqueList():
DataList = []
NewString = ''
temp_freq = temp_path + fieldName + "_freq"
#
# Process: Frequency to get unique list by fieldName
#
arcpy.Frequency_analysis(summary, temp_freq, fieldName, "")
for row in arcpy.SearchCursor(temp_freq, "", "", fieldName):
DataList.append(row.getValue(fieldName))
NewString += str(row.getValue(fieldName)) + ","
#
# Set value for replacement string
#
repStr = 43*" " + '<value userlist="' + NewString + """all">summary_""" + fieldName + " = '[value]\'</value>""" + "\n"
#
# Open file to read values
#
with open(ifile,"r") as infile:
with open(ofile,"w") as outfile: # open file to be able to write to
for i, line in enumerate(infile):
if searchText in line: # Check to see if the searchtext is in this line
line = repStr
outfile.write(line) # If so, replace this line with the string value of repStr.
outfile.close #close outfile
infile.close #close infile
shutil.copy2(ofile, ifile) #copy the outfile to the new infile so it doesn't clobber last changes
#
# List of field names and respective replace text.
# Just add another fieldName/searchText pair and send to UniqueList()
#
# userlist for Milestone_Date
fieldName = "Milestone_Date"
print "processing ",fieldName
searchText = "replace1"
UniqueList()
# userlist for FINAL_ROD_DEC_UNIT
fieldName = "FINAL_ROD_DEC_UNIT"
print "processing ",fieldName
searchText = "replace2"
UniqueList()
# userlist for Note
fieldName = "Note"
print "processing ",fieldName
searchText = "replace3"
UniqueList()
# userlist for Date
fieldName = "Date"
print "processing ",fieldName
searchText = "replace4"
UniqueList()
print "Done"
Of course, this example writes to a copy of the eSearchWidget.xml. just need to modify the path to actually have it make the update. This script then runs every night to incorporate the days changes. Hope this helps someone, R_
... View more
10-01-2012
10:53 AM
|
0
|
0
|
840
|
|
POST
|
I see your IIS is stopped, and shows some error. What happens if you right-click on Default Web Site and say "Start"? R_
... View more
09-20-2012
08:20 AM
|
0
|
0
|
2333
|
|
POST
|
I get a blank page. I am assuming that means there is something wrong, but I don't know what it could be. I have already enabled IIS in "Add/Remove Windows Components." I'm not certain that I have write access to that folder, although I do think I do. If you could tell me how to be sure and (if I end up not having that access) how to get access I would be pretty grateful. I am not running on XP, so would have to install to test that, but once enabled, have you went to "Control Panel", "Administrative Tools", "Internet Information Services" and made sure it is set up/turned on? (like I said, will have to play with that later as I'm not sure the steps here). As far as write access, can you make a folder/file and then delete it in the default folder? That is how I normally check for write access. R_
... View more
09-19-2012
04:01 PM
|
0
|
0
|
2333
|
|
POST
|
Is your IIS working correctly? If you put in http://localhost/ (on your server machine) or http://yourserver.name/ in your browser, what do you get? If you don't get the IIS7 splash page, something is amiss with your IIS. R_ and when you say the default file directory, do you mean C:\inetpub\wwwroot\yourflexappname as C:\inetpub\wwwroot\ is IIS7's default ? And, are you positive you have write access to that folder?
... View more
09-19-2012
01:40 PM
|
0
|
0
|
2333
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | yesterday | |
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 1 | 04-02-2026 09:50 AM | |
| 1 | 04-01-2026 01:21 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|