|
POST
|
I just tried loading the application in Internet Explorer, and I got this error message:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
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()
Perhaps this is a bug that is causing the UI to not display properly. Just curious, What is the spatial reference of the basemap that you are initially loading into your application?
... View more
12-20-2012
07:06 AM
|
0
|
0
|
1233
|
|
POST
|
I meant in the viewer application. The Widgets tab that has the icons for each widget. The new ones are not in there. Which new widgets are you refererring to? If it's the Attribute Table, this is not provided in the Widgets Tab, rather in the Layouts tab as referenced http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Layout_tab/01m300000043000000/ and http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Attribute_Table_widget/01m30000004s000000/
... View more
12-19-2012
12:03 PM
|
0
|
0
|
867
|
|
POST
|
Ah, I see now the issue. What appears to be happening is that the PortalURL is not getting set is always defaulting back to https://www.arcgis.com. This is definitely a bug and has been logged to be fixed. The initial requests made to the arcgis.com portal are in https, regardless of what you set it to. The subsequent requests to the services inside the portal are then made in http. Also, if possible, could you please respond to Dasa's request as well regarding the certificate issue you were seeing? Thanks for your patience, we will get this addressed ASAP.
... View more
12-19-2012
11:30 AM
|
0
|
0
|
1059
|
|
POST
|
Thank you, using http://<mapservice-url>/dynamicLayer does work. It was not clear to me that I had to add �??/dynamicLayer�?� to my map service URL to access the dynamic workspace. May be the documentation can be extended to clearly explain this. You can find detailed documentation regarding working with dynamic workspaces at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Dynamic_workflows_overview/017p0000002p000000/.
... View more
12-19-2012
11:09 AM
|
0
|
0
|
652
|
|
POST
|
Thank you for everyone's help so far. But I'm still unable to make this work. I just tried to add the portalurl and it didn't seem to make a difference. That specific URL has to be referenced somewhere else. Any idea where? Are you able to show us the config.xml file you are working with that's causing the issue? Once I changed my portalurl it displays the requests to access the basemaps using this instead of https (I was able to determine this using Firebug).
... View more
12-19-2012
10:37 AM
|
0
|
0
|
1028
|
|
POST
|
Is this really true? I can see the attributes from any service loaded as type="feature", but I see no attribute information at all with any of the type="dynamic" mapservices using the default attributetablewidget.xml. The only example in the documentaion is for AppBuilder and it has a screenshot allowing you to select which layers to show in the attribute table. Is this actually modifying the xml to show sublayers, or is the AttributeWidget actually supposed to show them all by default like it does with type="feature"? Thanks, R_ Actually there is an example and screenshot showing it from the source/config tags as well. http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Attribute_Table_widget_tags/01m30000004t000000/ After the tag description, there is a code snippet with the resulting screenshot.
... View more
12-19-2012
10:28 AM
|
0
|
0
|
1063
|
|
POST
|
Stuggling to get this new widget to work. I'm finding if I specify in the config something like this: <layer label="Boundaries" url="http://testserver/arcgis/rest/services/Boundaries/Boundaries/MapServer/0"></layer> <!-- non-mapped layer(s), added for just this widget --> It works and show all features, but doesn't update when you pan to a new extent and if I set the config like this: <layersettings> <layer name="Boundaries"> <!-- Overwriting layer settings for a map service layer --> <sublayer id="0" iseditable="false"> <!-- is editable only supported for a sub layer within a map service layer --> <fields> <field name="objectid" alias="ObjectID"/> </fields> <showobjectid>false</showobjectid> <showglobalid>false</showglobalid> <exportlocation>true</exportlocation> <showattachments>false</showattachments> <showrelatedrecords>false</showrelatedrecords> <columnsorder>alphabetical</columnsorder> </sublayer> </layer> </layersettings> The above references a map service like this in my main config file: <layer label="Boundaries" type="dynamic" visible="false" alpha="1.0" url="http://testserver/arcgis/rest/services/Boundaries/Boundaries/MapServer"/> It doesn't work at all. What am I doing wrong and how can I set this attribute table to work with map services I have defined in the main config file? Are you adding the boundaries to the map or no? You mention that the "above references a map service" and points to the boundaries map server but then in the config file at the top you have a layer in it which you are adding that is NOT added to the map.
... View more
12-19-2012
06:31 AM
|
0
|
0
|
1063
|
|
POST
|
Hi, I've tried the new AppBuilder 3.1 and have problems creating apps with my basemaps. If I'm only using sample basemaps from arcgis online eventhing works, but if I use my basemaps (that worked perfectly in 3.0) the app builder freezez when I go to step 3 to set the extent. se the attached image. And if I'm viewing the application in a browser I can't se my basemaps. [ATTACH=CONFIG]20071[/ATTACH] The App Builder should have generated a config.xml file for you in the location you specified for the web server location. It would help if we could see what was in there. Thanks.
... View more
12-19-2012
05:38 AM
|
0
|
0
|
1097
|
|
POST
|
Your config file looks fine from what I can see. Since I can't actually check the services you are trying to display, I'm not sure if that is something that could be causing some issues. Could you try one thing? Set the wraparound property to false. <map wraparound180="true" ..... Do you still get the same issue? Also, does any of the information asked and given in this thread sound familar? http://forums.arcgis.com/threads/73799-Issues-with-3.1-Flex-Viewer-and-App-Builder
... View more
12-18-2012
04:17 PM
|
0
|
0
|
1522
|
|
POST
|
The widgetcontainer tag has attributes such as size, paneltype, and initialstate that you can configure. E.g. <widgetcontainer
paneltype="bottom" initialstate="open" height="250">
<widget label="Attribute Table" config="widgets/AttributeTable/AttributeTableWidget.xml"
url="widgets/AttributeTable/AttributeTableWidget.swf"/>
</widgetcontainer> The paneltype allows bottom, left, or right. Not doc'd, but you can also add the widget into a widgetcontainer similar to how your other widgets display. <widget label="attributes" left="430" top="90"
icon="assets/images/i_table.png"
config="widgets/AttributeTable/AttributeTableWidget.xml"
url="widgets/AttributeTable/AttributeTableWidget.swf" /> Just like any of the other widgets, you can specify the layout of how the widgets will display relative to the application. http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Widget_Container_tag/01m300000003000000/ http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Widget_tag/01m30000001w000000/
... View more
12-18-2012
04:09 PM
|
0
|
0
|
1156
|
|
POST
|
Heather, No problem with using individual map layers in the basemaps section of the config.xml. I don't have to do this in version 3.0 though, my config.xml for 3.0 says addarcgisbasemaps="true". I'm not understanding what has changed in 3.1 to give me this error. OK I see where the issue is coming from. In 3.0, the default portal url pointed to http://www.arcgis.com whereas in 3.1 it is pointing to https://www.arcgis.com. This is probably why you are not able to access it if you are in a more secure environment. One thing you could do to test this out is to use http://www.arcgis.com instead. All you would need to do is switch this out in the config.xml to read portalurl="http://www.arcgis.com". Try this out now and see if it works for you.
... View more
12-18-2012
10:57 AM
|
0
|
0
|
1028
|
|
POST
|
Heather, Still no problems accessing map backgrounds on Arcgis.com. And no issues accessing them in previous versions of Flex. I don't have a http traffic bugger, and I probably won't be able to install one since I'm running on a government network/computer. "I don't have a http traffic bugger, and I probably won't be able to install one since I'm running on a government network/computer." This is why I'm thinking you don't have access. Many times when on an internal/private network where there is more limited access to particular sites you won't be able to gain access to public sites like this. By default the portal url goes to https://www.arcgis.com. If this domain is blocked, which the error message indicates it is, than you won't be able to get access to the underlying portal basemaps. Another thing you could try would be to instead of using the addarcgisbasemaps="true", set this to "false" and see if you are able to use basemaps in your application similar to how prior versions of the viewer accessed them. For example, can you access these services by switching out the xml to read this instead <basemaps>
<layer label="Streets" type="tiled" visible="true" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
<layer label="Aerial" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"/>
<layer label="Topo" type="tiled" visible="false" url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
</basemaps> If you can access the service than we know that it is something on your end with how you are able to access this portal site outside of your organization.
... View more
12-18-2012
10:21 AM
|
0
|
0
|
1028
|
|
POST
|
I'm still thinking that the issue is with your network blocking accessing to the arcgis.com portal. Are you able to, in a browser, access arcgis.com and specify an item # to get to a basemap? e.g. http://arcgis.com/home/item.html?id=f2498e3d0ff642bfb4b155828351ef0e. I still think the next best thing you should do is to run the app in an http traffic debugger, this would tell you specifically where it could be getting hung up on. This is a small screen capture of what Firebug shows when launching the Flex Viewer and having it request the portal items for the basemap gallery. [ATTACH=CONFIG]20037[/ATTACH]
... View more
12-18-2012
09:12 AM
|
0
|
0
|
1293
|
|
POST
|
This functionality is directly provided out of the box using 3.1. Refer to http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Query_widget/01m30000003m000000/ Order by and http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Query_widget_tags/01m30000000t000000/ if working with tag references
... View more
12-18-2012
08:32 AM
|
0
|
0
|
1119
|
|
POST
|
Heather, I'm not using App Builder. I'm not even entirely sure what that is. I'm using Adobe Flash Builder and I haven't changed anything in the source code since I downloaded it. I have tried to use links to other web services since this error appreared, but I've gotten error no matter what I use. I'm just not sure why I'm getting this error. I followed the same process that I have used in the past to create the viewer. Without knowing your network system setup on your end, I am guessing that it is blocking the arcgis.com portal that we have the portalurl set to. If you downloaded the source code and are running it directly in FB without changing a thing, and still getting this error, something is blocking this request. This is where I mentioned it would be useful to run this through something like Fiddler or Firebug so you could see exactly which request it is erroring out on. One thing you could try would be to go into the config.xml file change addarcgisbasemaps="true" to "false". This turns off the basemap switcher. These basemaps are accessed from the default basemaps accessible from the arcgis.com default portal. Do you still get the error? If not, this will give us an indication of where this is coming from.
... View more
12-18-2012
08:28 AM
|
0
|
0
|
1293
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 07-08-2025 04:21 AM | |
| 2 | 07-07-2025 07:38 AM | |
| 1 | 02-27-2024 08:17 AM | |
| 2 | 02-26-2024 06:53 PM | |
| 1 | 07-27-2023 07:27 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-22-2025
08:51 AM
|