|
POST
|
I'm using the AttributeTableWidget with search results by setting <shareresults>true</shareresults> in the search widget config-filen. And I've added a line of code to the searchWidget from this post. Search results from different search layers are not displayed correctly. The attributes/fields in the Search-tab are set by the first search, when making a new search from another search layer the table is filled with a new set of rows, but it's the same fields so they are empty if the second search layer has different fieldnames than the first one. For example, if I start to search from the layer Louisville Police Ficilities the result will display correctly in the table showing the attributes NAME and ADRESS. Then I make a new search from the Louisville Parcels and the table gets updated but still shows the NAME och ADRESS attributes which are empty since the Parcels doesn't have those attributes. There's a screenshot from this example attached... I assume this is not how it's supposed to work since it gets kind of useless to use the AttributeTableWidget together with the searchWidget if you use more than one search layer. The fields in the table needs to get updated when the attributes of the feature layer gets updated.
... View more
02-28-2013
11:33 PM
|
0
|
0
|
3246
|
|
POST
|
Hi, I'm working on customizing the AttributeTableWidget to show attributes from different featurelayers added from other widgets, this is working already if the results is shared, but I have some modifications I want to do. One modification I want to do is to always show all attributes from all the features in a featurelayer, and not only the ones that are within the current map extent. Going through the AttributeTableWidget it seems like that functionality is not written in the widget but in the AttributeTable component in the API. Can someone confirm this? Is there anyway to make that modification to the AttributeTable? I've also looked at the AttributeTableSkin.mxml without success...
... View more
02-28-2013
05:28 AM
|
0
|
0
|
868
|
|
POST
|
Does the Elevation Profile widget use it's own drawTool? I know I had a few widgets some versions ago where each widget used it's own drawTool which caused a lot of problems when they where opened at the same time. If the all widgets use setMapAction() (which for example draw widget and search widget do) it should also take care of not using zoom tools when drawing...
... View more
02-28-2013
03:33 AM
|
0
|
0
|
2810
|
|
POST
|
If anyone is working with the uncompiled source code, you could try the code change from Roberts post here It seems to be working for me...
... View more
02-05-2013
01:40 AM
|
0
|
0
|
1210
|
|
POST
|
Thanks Robert! That code is working for me. At least I'm not getting the problem as when I commented out the line, but I never figured out what exactly that line did so I don't know if that works now or not. But I guess it does.
... View more
02-05-2013
12:56 AM
|
0
|
0
|
2597
|
|
POST
|
It seems like I got rid of this problem by commenting out the line (368): arcGISDynamicMapServiceLayer.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler); in com/esri/viewer/components/toc/tocClasses/TocMapLayerItem.as Obviously not a good solution when I'm loosing some other functionality, but it points out which line of code that cause the problem, that code is also new in 3.1. which makes sense... Maybe some more users using the source code could try this to see if it works for others than me.
... View more
02-01-2013
02:54 AM
|
0
|
0
|
2597
|
|
POST
|
Yes, Robert, you're correct, I copied the error message from the wrong version, one were I've made some more customization. This is what I get from to original viewer (after only changing config.xml yo use my own layers...): TypeError: Error #1009: Det går inte att få åtkomst till en egenskap eller metod för objektreferensen null.
at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem/createChildren()
at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem()
at com.esri.viewer.components.toc::TOC/registerMapLayer()
at MethodInfo-386()
at com.esri.viewer.components.toc.utils::MapUtil$/forEachMapLayer()
at com.esri.viewer.components.toc::TOC/registerAllMapLayers()
at com.esri.viewer.components.toc::TOC/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback() That's from the standard toc component so it doesn't have anything to do with Roberts TOC Widget. EDIT: I've also opened an issue on github for this issue.
... View more
01-31-2013
04:33 AM
|
0
|
0
|
2597
|
|
POST
|
Seems to happen for me on sublayer popups only and occurs in the getlayerinfos code in createChildren (TocMapLayerItem). When loading the toc the layer info returns a null which interrupts the widget loading process causing the UI to look a bit crazy. I did some more testing, and this is true for me as well, the problem seems to be sublayer popups for dynamic layers. Popus for a feature layer or a sublayer to a tiled layer did not cause this problem. Using the debug version of FlashPlayer I'm getting TypeError: Error #1009: Det går inte att få åtkomst till en egenskap eller metod för objektreferensen null.
at widgets.TOC.toc.tocClasses::TocMapLayerItem/createChildren()
at widgets.TOC.toc.tocClasses::TocMapLayerItem()
at widgets.TOC.toc::TOC/registerMapLayer()
at MethodInfo-626()
at widgets.TOC.toc.utils::MapUtil$/forEachMapLayer()
at widgets.TOC.toc::TOC/registerAllMapLayers()
at widgets.TOC.toc::TOC/commitProperties()
at mx.core::UIComponent/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback() And it seems that's were the code breaks down and the rest of the UI and widgets are not loaded. Unfortunately I haven't been able to reproduce this using only public services from Esri, it's when I change to my own mapservices this happens (and they are not public). But as mentioned many times before in this thread, there were no problems with 3.0 using the same services and popups. Wondering if anyone has come up with a way to consistantly make it do this? Maybe this isn't what you ment but in an earlier version I added timestamps to URLs to prevent browsers to read any config-files from cache. When adding this to my 3.1 viewer I'm getting the same problem everytime, even after refreshing the site, which is kind of obvious since the problem comes after clearing the cache and now the browser doesn't read from cache. The timestamp for popus I added to Mapmanager.mxml in the function "configurePopUps" //var popUpConfigURL:String = arrLayerPopUp.popUpConfig;
var popUpConfigURL:String = String(arrLayerPopUp.popUpConfig) + "?ts=" + new Date().getTime();) We are many users experience this problem, this thread http://forums.arcgis.com/threads/76137-Header-widget-display-issue-when-upgrading-to-3.1 is about the same problem. I hope the ESRI Flex Team could take a closer look at this...
... View more
01-31-2013
03:25 AM
|
0
|
0
|
2597
|
|
POST
|
Since the result graphic bug/issue wasn't the main question when starting this thread, I started a new thread about it and marking this one as answered.
... View more
01-21-2013
12:17 AM
|
0
|
0
|
640
|
|
POST
|
So it seems it is a little bug then, I hope someone from the Esri Flex team could take a look at this too, among those other bugs related to the searchbox that is mentioned in other threads... Michael: I can't provide a link since my app is in our internal network and not accessible for the public.
... View more
01-17-2013
05:25 AM
|
0
|
0
|
640
|
|
POST
|
No it doesn't. I have no problems with the extent och projecting, the map zooms to the correct location and show to info window, It's the result graphic that doesn't show when mouse clicking in the result list. When using keyboard arrows and enter the graphic shows up.
... View more
01-13-2013
09:45 PM
|
0
|
0
|
1539
|
|
POST
|
Thanks for the info! I think it would be good to be able to not use the default geocode service for the feature, but I'm working with the uncompiled code now and uses Roberts fix from this thread so that works for me. I still have some problems with the result graphics though. When using keyboard arrows and pressing enter on one result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list the info window shows and the map zoom in to the result but no graphic appears. Is this a bug, or is it just me who experience this behavior? (It is the same when I use the compiled version as well so it's not because of any code change by me.)
... View more
01-10-2013
11:54 PM
|
0
|
0
|
1539
|
|
POST
|
I really like the idea of the new searchbox in the HeaderControllerWidget, but I'm not able to configuring it as I want. Don't know if I'm doing it wrong or if it's impossible without changing the source code. I want to use my own searchlayers and no locator at all, and I want the results to display as graphics. First of all I think the conceptual graphic in the documentation is wrong, it looks like the <labels> tag and <symbols> tag is supposed to be in the <searchlayer> tag, but in the text it says they should be in the <search> tag which seems to be correct. My config-file looks like this (the search tag): <search> <searchlayers> <searchlayer> <url>http://oskar75:6080/arcgis/rest/services/test/Sokning/MapServer</url> <layerids>0,1,2</layerids> <searchfields>FASTIGHET,ADRESS,TEXT</searchfields> </searchlayer> </searchlayers> <zoomscale>5000</zoomscale> <labels> <searchprompt>Skriv fastighet, adress eller plats</searchprompt> <noresults>Inga träffar hittades</noresults> <searchresulttitle>Sökträff</searchresulttitle> <clearfeaturelabel>Rensa</clearfeaturelabel> </labels> <symbols> <simplemarkersymbol color="0x00FFFF" alpha="0.7" size="10"/> <simplefillsymbol color="0x00FFFF" alpha="0.5"> <outline alpha="0.9" width="2"/> </simplefillsymbol> </symbols> </search> The search works fine for my three layer ids but also displays searchresult from what I guess is the default locator. Is there anyway to disable that? I don't see any graphics to my results though, is something wrong with my <symbols> tag? (My layers are one polygon layer and two point layers). My last wish I think would require editing the source code (maybe something for the next version?), I would like the resultlist to display and update while typing, without pressing enter, after the users has entered a number of characters (for example 4 or 5).
... View more
12-21-2012
12:12 AM
|
0
|
14
|
2466
|
|
POST
|
Dasa, I made that change to the map tag and then the application works in a browser (except the initial extent wasn't correct). But the problem in the AppBuilder is still there. Changing or removing tha initial extent in the config doesn't help either.
... View more
12-20-2012
09:41 PM
|
0
|
0
|
1851
|
|
POST
|
The config file (for this simple test application) looks like this: <?xml version="1.0" ?>
<configuration>
<title>ArcGIS Viewer for Flex</title>
<logo>assets/images/logo.png</logo>
<style>
<colors>0xffffff,0x333333,0x101010,0x0,0xffd700</colors>
<alpha>0.8</alpha>
<font name="Verdana"/>
<titlefont name="Verdana"/>
<subtitlefont name="Verdana"/>
</style>
<!-- replace the following url with your own geometryservice -->
<geometryservice url="http://oskar75:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer"/>
<subtitle>test</subtitle>
<widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
<widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="0" bottom="0"/>
<widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>
<widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
<map attributionvisible="false" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="metric" zoomslidervisible="false" wraparound180="true" addarcgisbasemaps="false" initialextent="1694414.743585312 7736155.2180623105 1953383.3954153643 7882914.312369778" wkid="102100" top="40" portalurl="https://www.arcgis.com/">
<basemaps>
<layer type="tiled" label="Bakgrundskarta" url="http://oskar75:6080/arcgis/rest/services/test/Bakgrundskarta/MapServer" visible="true"/>
<layer type="tiled" label="Ortofoto test" url="http://oskar75:6080/arcgis/rest/services/test/Ortofoto_test/MapServer" visible="false"/>
</basemaps>
<operationallayers>
<layer type="dynamic" label="Riksintressen test" imageformat="png8" url="http://oskar75:6080/arcgis/rest/services/test/Riksintressen_test/MapServer" visible="true"/>
<layer type="dynamic" label="Fastigheter rättigheter" imageformat="png8" url="http://oskar75:6080/arcgis/rest/services/test/Fastigheter_r%C3%A4ttigheter/MapServer" visible="true"/>
</operationallayers>
</map>
<widgetcontainer layout="float">
<widget url="widgets/Draw/DrawWidget.swf" config="widgets/Draw/DrawWidget.xml" label="Rita" icon="assets/images/i_draw2.png"/>
<widget url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" label="Skriv ut" icon="assets/images/i_print.png"/>
<widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_1.xml" label="Teckenförklaring" icon="assets/images/Legend32.png"/>
<widget url="widgets/Search/SearchWidget.swf" config="widgets/Search/SearchWidget_1.xml" label="Sök" icon="assets/images/i_search.png"/>
</widgetcontainer>
</configuration> And I see at least one thing that's incorrect, the wkid of my map services that I use in this application (they are not public) is 3010, and the config file says the wkid of the map is 102100. The initial extent is what I can't set in the AppBuilder for my basemaps so it's the extent that I set with a basemap from arcgis online. And with that config file I can't see the application at all in a browser, just a blank screen, but I see a spinning clock and then the handcursor when trying to drag the blank map as well as the esri-logo. I tried making changes to the config.xml and set wkid to 3010 and an initialextent suitable to my basemaps, but it's still the same, both in AppBuiler and in the browser.
... View more
12-20-2012
03:36 AM
|
0
|
0
|
1851
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 02:59 AM | |
| 1 | 01-13-2025 02:57 AM | |
| 2 | 04-14-2025 04:49 AM | |
| 2 | 09-18-2025 05:51 AM | |
| 1 | 08-28-2025 12:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-23-2026
05:14 AM
|