Select to view content in your preferred language

multiple widget containers AVF 2.1 - problem

1186
10
09-27-2010 05:45 AM
KarlMagnusson
Deactivated User
Hi All!

I'm have some problem with multiple widget containers. When I use more than one widget container the page never stops loading. Well maybe it stops but the busy cursor never stops/disappears. Somewhat annoying.  I haven't even infected the code with my own widgets yet 😉
When the ArcGIS View for Flex was in beta I didn't encounter this problem.
Is this a problem for anyone else?

part from the config.xml below...




    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks"         left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
   </widgetcontainer>
   
<widgetcontainer layout="vertical">
     <widget label="Search" left="80" top="280"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget_Louisville.xml"
                url="widgets/Search/SearchWidget.swf"/>
    </widgetcontainer>

</configuration>
Tags (2)
0 Kudos
10 Replies
BjornSvensson
Esri Regular Contributor
I'm guessing it's "only" the busy cursor not being removed (when it should) and not a loading problem. 

Are you using the same widget twice? If so, where are the multiple widgets (in the same widget container, different containers, some not in a widget container at all)?

Could you share the complete config.xml file?
0 Kudos
KarlMagnusson
Deactivated User
Hi Bjorn!

Thanks for the quick answer.

I am not using the same widget twice.
I did some testing today and it seems to be a problem in the layer tag when I have an additional widget container. At least when I specify a dynamic layer.

Complete config.xml attached.
The only thing I have changed is to add a widget container, moved a widget in to it and change the layer in operational layers to a dynamic layer. Somehow I must have specified the dynamic layer incorrect since staying with default operational layers will not generate the sticky busy cursor. On the other hand, only removing the second widget container will also solve the "problem" even if I use my modified operational layer.

To summarize: I only get the sticky busy cursor when I have BOTH a second widget container AND modified the layer tag in operational layers.

/Karl Magnusson
gis-engineer municipality of Växjö
http://gis.vaxjo.se/byggabo/byggabo.html?typ=1
0 Kudos
MehulChoksey
Esri Contributor
Thanks for reporting this bug. This will be address in next release.

Side note: This behavior is not seen if there is a operational layer of type feature with infoconfig parameter set as seen below:

<layer label="Fires" type="feature" visible="false" alpha="1" info="widgets/InfoTemplates/SimpleInfoWinWidget.swf" infoconfig="widgets/InfoTemplates/IWT_Fires.xml" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>
see
http://help.arcgis.com/en/webapps/flexviewer/live/index.html?config=../samples/config-wgcontainers.x...
0 Kudos
KarlMagnusson
Deactivated User
You are welcome.
Now I can stop trying different config settings.

Is there a workaround? Commenting or adding some lines of code somewhere? Where to look? viewerContainer.mxml?
I'm not certain that I will use a feature layer with an infowidget but I will use at least two widget containers. At least I planned to do so.

Karl Magnusson
municipality of Vaxjo
0 Kudos
SarthakDatt
Frequent Contributor
Hey Karl,

For now, can you comment out line 139(this.cursorManager.setBusyCursor()) and line 144(this.cursorManager.removeBusyCursor()) from WidgetManager.mxml.

We would add a fix for this in the next release.

Hope that helps.
0 Kudos
KarlMagnusson
Deactivated User
Ok thanks, this works somewhat.
I can live without the busy cursor during loading of widgets until the next realese of the viewer.

Again thanks for the quick and helpful respons.

/Karl Magnusson
0 Kudos
SarthakDatt
Frequent Contributor
Karl,

This would only affect the loading of widget containers, the loading of widgets should still show the busy cursor.
0 Kudos
KarlMagnusson
Deactivated User
You're right. I was a bit hasty. I guess my computer loaded the widget to fast.
Now it isn't an issue at all.

/Karl
0 Kudos
philippschnetzer
Frequent Contributor
I have the same problem.  Using SFV2.1 and two widget containers.  I have commented out those two lines but still get the busy cursor.  Is there yet another place to override this?
0 Kudos