Issues with 3.1 Flex Viewer and App Builder

2783
20
12-18-2012 09:54 AM
JoshWhite
Regular Contributor III
I pulled these posts from another thread. The original posts are at http://forums.arcgis.com/threads/73572-ArcGIS-Viewer-3.1-for-Flex-released-December-13-2012?p=257627...

Yesterday 09:29 AM#2

Re: ArcGIS Viewer 3.1 for Flex released December 13, 2012



I cannot figure out what is going on. I downloaded the compiled version and the app builder for 3.1. I upgraded a test application and checked my layers. I tried to open the app in IE and while I don't get any errors, all I get is the clock symbol spinning. I also noticed that I couldn't edit the Attribute table widget in the Layout tab. In the preview tab, I get the spinning clock symbol and a bar across the screen, I assume the attribute table, when a broken image icon in the middle. Help what is going on?

Also when I click on Map Extent under the Maps tab, the application builder becomes unresponsive other than the fact that when I close it asks if I want to save any changes.


Last edited by ksjosh82; Yesterday at 09:38 AM. Reason: more info
Josh White, AICP
Principal Planner

City of Arkansas City
Tags (2)
0 Kudos
20 Replies
JoshWhite
Regular Contributor III
Heather Gonzago


Have you doublechecked that the services are accessible? It sounds like their is some network issues if it is unresponsive. To test it out, just try accessing the services directly in the services directory and see if you are able to preview them there.




Heather Gonzago
Product Engineer - ArcGIS API for Flex
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JoshWhite
Regular Contributor III
Hi Josh,

Can you try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.



Dasa Paddock
ArcGIS API for Flex
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
DasaPaddock
Esri Regular Contributor
Hi Josh,

Can you try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.
0 Kudos
JoshWhite
Regular Contributor III
Hi Josh,

Can you try setting these two attributes on the map tag to false:

wraparound180="false" addarcgisbasemaps="false"

This is an issue in 3.1 when the base map layer is not geographic or web mercator.


That seems to have fixed the drawing issue.  But I'm still having the issue with it not finishing the header and widget bar.  I just get a spinning clock.  This even shows in the preview tab in the App Builder.

My issue with the attribute table is because it is not a feature layer.  I don't use sde so the attribute widget will continue to not help me.  I removed the widget and that display issue went away.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you share a link to your Viewer that has the display issue?
0 Kudos
JoshWhite
Regular Contributor III
http://70.167.59.150/flexviewers/test/

This is stripped down for just a test viewer with my data.  Not all of the widgets I use have been redone for 3.1 yet so I'm sure it will be a while before I make the full switch.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
DasaPaddock
Esri Regular Contributor
I see the following error when I open that Viewer with a debug Flash Player. I can see that it loaded eSearch/SearchWidgetFixedDG.swf. My guess is that it's this widget that's causing this error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.viewer.managers::WidgetManager/moduleReadyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/readyHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/update()
at mx.core::FlexModuleFactory/docFrameHandler()
at mx.core::FlexModuleFactory/docFrameListener()
0 Kudos
JoshWhite
Regular Contributor III
Thanks, that appears to have worked.  That widget was a custom widget that is 3.0 based that wasn't showing up for me in the Application Builder, I haven't configured it in the 3.1 Builder yet plus the widget probably will have to be rewritten first.  I'm still seeing the Application Builder freeze up with I click on the Map Extent tab under the Maps tab though.  The extent is correct at this point because of the previous configuration but there seems to still be something stuck with the Application Builder.
Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
SarthakDatt
Occasional Contributor III
Hey Josh,

Without looking at the code for eSearch/SearchWidgetFixedDG widget, my guess is that it should not be a 'layout' widget(looking at http://70.167.59.150/flexviewers/test/config.xml. Can you try moving it under the <widgetcontainer> tag:

<widgetcontainer layout="float">
<widget url="widgets/Locate/LocateWidget.swf" config="widgets/Locate/LocateWidget_1.xml" label="Locator" icon="assets/images/i_target.png"/>
<widget url="widgets/eSearch/SearchWidgetFixedDG.swf" config="widgets/eSearch/SearchWidgetFixedDG.xml"/>
</widgetcontainer>
0 Kudos