|
POST
|
Hey Robert, Been playing with the latest version a little and can not get the uniquevalsfromfield expressions to populate with the blank, doesn't matter what isvaluerequired is set to. the userlist it is appending the blank when false but not the uniquevalsfromfield. Also, curious how one is supposed to make the popup be the same as clicking on the map? I have tried adding the same service I am searching to the map as both type feature and dynamic, setting my desired popup.xml file for each. Have tried combinations of <popupsdisabled>true</popupsdisabled> true/false. Basically, if set to true, I do not get the popup when I click/doubleclick on the data grid or results list but I do get one (actually two) when I click on the selected feature, it will give me the esearch popup as "1 of 2" and it is the popup info as configured in the esearchwidget.xml. The second one is the popup that follows my popupconfig.xml. So, was wondering how this is supposed to work, and what one needs to do to get it working that way? Thanks again, R_
... View more
11-14-2012
02:35 PM
|
0
|
0
|
1782
|
|
POST
|
Just tested it to make sure that it worked. I have passed a "test" map onto some users, am waiting for feedback on it. Not much feedback yet, but a couple of them noticed that it showed up and really like the capability. Mostly, they were exporting the datagrid, then printing from Excel. this makes it easier for them. Hope to catch up here this week, and will be able to test it fully before long. R_ While on enhancement subject, I may have missed it, but an option to determine the export file type allowed would be nice. Some of my users don't understand the problems with exporting to csv format with data that has a lot of commas/delimeters in it (I know we can change the separator). Would be nice to force them to only have text as the export format. Maybe a _enableCSVExport and a _enableTXTExport or something so visibility can be set separately for each? Of course, this is easy for me to just hardcode in the mxml, and not sure how much need there is, but would be nice.
... View more
11-14-2012
11:15 AM
|
0
|
0
|
1782
|
|
POST
|
Have not had a chance to test it out yet, hopfully this week. However, I think the changes you made are great. Should get a chance to test drive it thoughly soon. As far as getting to complicated, so far, I'd say no, it's just getting better. R_
... View more
11-14-2012
10:52 AM
|
0
|
0
|
1782
|
|
POST
|
Good to hear. I haven't had to go through the shutdown/reboot computer since I got away from the web.ADF format :o) R_
... View more
11-14-2012
10:31 AM
|
0
|
0
|
1984
|
|
POST
|
After compiling my project and running the flex viewer, all of the widgets work except for one. With one particular widget, I am geitting a WidgetManager.mxml error. I get this error message: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.viewer.managers::WidgetManager/createWidget()[LOCAL_PATH\Flex_Workspace\FlexViewer_3\FlexViewer_COPY\s rc\com\esri\viewer\managers\WidgetManager.mxml:407] at com.esri.viewer.managers::WidgetManager/runWidget()[LOCAL_PATH\Flex_Workspace\FlexViewer_3\FlexViewer_COPY\src\ com\esri\viewer\managers\WidgetManager.mxml:457] at com.esri.viewer.managers::WidgetManager/widgetReadyHandler()[LOCAL_PATH\Flex_Workspace\FlexViewer_3\FlexViewer_ COPY\src\com\esri\viewer\managers\WidgetManager.mxml:525] Not sure if this has anything to do with it, or if you modified the error message for privacy, but in all the null object reference errors I have "created", I have never seen it listed as [LOCAL_PATH\ and, I noticed some spaces in /s rc/com and /src/ com/ that have never been reported in my errors. also, as Robert said, make sure you check letter by letter, especially if you are using the web server built into 10.1. I just converted a flexapp to 10.1 yesterday and noticed that: on IIS7 icon="assets/images/legend32.png" or icon="assets/images/Legend32.png" will work. with AGS10.1, only this works icon="assets/images/legend32.png" (my legend32.png file is NOT Legend32.png). R_
... View more
11-14-2012
10:28 AM
|
0
|
0
|
2753
|
|
POST
|
From the sample site: [ATTACH=CONFIG]19292[/ATTACH] R_
... View more
11-14-2012
10:05 AM
|
0
|
0
|
1984
|
|
POST
|
you could try this:
...
dsets = arcpy.ListDatasets("*","Feature")
rsets = []
for dataset in dsets:
if dataset != "contour":
rsets.append(dataset)
for ds in rsets:
print ds
...
Often trying to remove stuff from a set/list confuses things/orders. I would probably just make a new list exculding what you don't want. R_
... View more
11-13-2012
02:59 PM
|
0
|
0
|
2397
|
|
POST
|
Hi all, using the ExportWebMaptask function of the new print widget. Much nicer than the old one, but wondering if there is some way to make the image quality better? I see the task has options to set the dpi and image size: "exportOptions": { "dpi" : 300, "outputSize" : [ 500, 500 ] } But, is there a way to modify the JSON string being sent to the task to overcome the default 96 dpi setting? Thanks again, R_
... View more
11-13-2012
01:12 PM
|
0
|
14
|
6376
|
|
POST
|
Sounds like you issue is a little different. My definition expressions are working normally, you just can't get popup information from the layers that are "underneath". Solutions was to create a separate service for each one with the definitionexpression in ArcMap and not in the flexviewer. It appears as if you are searching for County being less than AND greater than 'Brusnswick' with would be pretty much the same as <> 'Brunswick' definitionexpression="County <> 'Brunswick' AND County <> 'Bertie'" This works: definitionexpression="County > 'Bertie' AND County < 'Brunswick' " And shows everything where County is between Bertie and Brunswick. R_
... View more
11-13-2012
11:26 AM
|
0
|
0
|
2269
|
|
POST
|
These two posts should get you going: http://forums.arcgis.com/threads/70136-Esearch-Widget-Popup-and-Results-Window-Records?p=245794#post245794 http://forums.arcgis.com/threads/64092-Search-Widget-Can-I-completely-remove-the-result-Popups?p=221917#post221917 Just remember, would have to be done in the widget.mxml and the datagrid.mxml. R_
... View more
11-13-2012
10:37 AM
|
0
|
0
|
1396
|
|
POST
|
This works: <layer label="WastePoints" type="feature" visible="true" alpha="0.3"
definitionexpression="PHOTOS LIKE '%100D63_01.jpg'"
url="http://gis01.wch-rcc.com/ArcGIS/rest/services/rkz/waste_images/MapServer/0"/> other example for the same layer that work: definitionexpression="PHOTOS IS NULL"
definitionexpression="PHOTOS = '100D63_01.jpg' "
definitionexpression="PHOTOS IS NOT NULL"
Basically the same coding as ArcMap but, you need to set it equal to definitionexpression and remember to include the single quotes if not comparing NULL(s) also, this post shows how to code it for "dynamic" layers: http://forums.arcgis.com/threads/64884-Popups-on-multiple-copies-of-same-service-layer?p=248918#post248918 R_
... View more
11-13-2012
10:31 AM
|
0
|
0
|
1458
|
|
POST
|
blockcounter = 1 for blockid in blockids: # Make Table View of all polygons with this blockid block_view = 'block_view' + blockid wclause = '"BLOCKID10" = \'' + blockid + "'" arcpy.MakeTableView_management (finalblocks, block_view, wclause) bcount = arcpy.GetCount_management(block_view) print str(bcount) + ' block pieces for ' + blockid + '... ' + str(blockcounter) + ' of ' + str(len(blockids)) rows = arcpy.UpdateCursor(block_view) totalarea = 0.0 for row in rows: blockpop = str(row.POP10) totalarea += row.Shape_Area if blockpop <> '0': if str(bcount) <> '1': # If this block ID has multiple pieces and total population is not 0 totalpop = 0.0 for row in rows: thisarea = row.Shape_Area pctarea = thisarea / totalarea totalpop = row.POP10 thispop = totalpop * pctarea row.POP10_est = thispop rows.updateRow(row) else: # If there is only one polygon for this block ID for row in rows: row.POP10_est = row.POP10 rows.updateRow(row) else: # If the total population of this block is 0 anyway for row in rows: row.POP10_est = 0 rows.updateRow(row) del rows, row blockcounter += 1 Thank you in advance for any help! Dictionary is like a key:value lookup table: http://docs.python.org/2/tutorial/datastructures.html#dictionaries I would have to agree with using a list/dict so you are loading it into memory, espcially if you have a lot of blockid's as making table views is time intensive. Not sure how it would affect the rest of the code, but the more for loops, the longer to execute. See above, should be able to eliminate the totalarea for loop by including it above for loop. Since you are already looping through the entire set, just as well extract these values while there. Also, comment out/remove the print statement. Print statements in the loops make it run WAAAY slower than without them. R_
... View more
11-08-2012
09:59 AM
|
0
|
0
|
1945
|
|
POST
|
Nadeem, It shouldn't make any xml files, just the swf when you compile. However, if you do have two xml files, did you make sure that your widget tag in the config.xml points to the one you are modifying? <widget label="Identify" left="430" top="80" height="150"
icon="assets/images/i_info.png"
config="widgets/Identify/IdentifyWidget_1.xml"
url="widgets/Identify/IdentifyWidget.swf"/> R_
... View more
11-07-2012
06:18 AM
|
0
|
0
|
1378
|
|
POST
|
Thanks Dasa, that did it. Really searched for it, but guess I didn't hit the right keyword(s). R_
... View more
11-06-2012
07:55 AM
|
0
|
0
|
755
|
|
POST
|
All, I just need to interject that you need to be careful not to confuse attributes between my widgets. The <fields all="true" /> is from the eSearch widget and not the Identify widget. There is no code what so ever in the Identify widget that uses all="true" in the fields element. 😉 Whoops, guess I carried that over from the Identify widget 3.0i example.xml that does have the <fields all="true" /> in it. Will make sure I update my configs. R_
... View more
11-06-2012
07:42 AM
|
0
|
0
|
1378
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM | |
| 1 | 05-07-2026 02:10 PM | |
| 1 | 04-02-2026 09:50 AM | |
| 1 | 04-01-2026 01:21 PM |
| Online Status |
Online
|
| Date Last Visited |
Monday
|