Select to view content in your preferred language

Header/widget display issue when upgrading to 3.1

3677
20
01-25-2013 06:43 AM
BenAller
Deactivated User
I'm trying to get a basic 3.1 viewer to work correctly, but the header, widgets and map switcher dissapear or are obscured when I first view in a browser with a cleared cache. Once I refresh the browser, everything displays correctly. I believe it's occurring when I add operational layers with popups, and possibly popups associated with dynamic layers.  I'm using my own basemaps and operational layers in state plane, and I set the wraparound180 to false and addarcgisbasemaps to false (as noted in other posts).

Any help would be greatly appreciated.


Thanks,
Ben
Tags (2)
0 Kudos
20 Replies
BenAller
Deactivated User
I was also using both <description> and <fields> for the main content in some popups. That could have been the problem.
0 Kudos
RhettZufelt
MVP Notable Contributor
To GISDev:

I was wondering if you have a basic viewer application setup that uses your own mapservices with pop-ups and all the widgets appear as expected at start-up, without requiring a refresh of the browser?

The reason I ask is because in the following post "Issues upgrading Flexviewer 3.1 (uncompiled)" from 12/18/2012 other users were commenting about the same issue and the ESRI person was unable to confirm whether this was a bug or not.

I am having the same issues as the original poster of this thread.


I do.  Running all my own basemaps and operational layers (all in my matching spatial reference, tiled or dynamic).  Arcgis basemaps = false, WKID is set in map tag to my state plane system and both extents set.  Running 15 widgets plus some in the UI section.

    <map  esrilogovisible="false" wraparound180="false" initialextent="549317 122136 603788 152861" fullextent="549317 122136 603788 152861" top="40" wkid="32149" addarcgisbasemaps="false" >


I have popups on many of my operational layers, and a couple of them use the CDATA description option (not both), but most just pull from the fields.

In case this helps (somehow),

R_
0 Kudos
GISDev1
Deactivated User
Looks like the CDATA section of my popups might be the culprit.  When I remove it, the viewer seems to display without the need to refresh.  Not sure why this has changed between 3.0 and 3.1, but at least we're moving in the right direction.


Esri did change how they parse some text in the Splash widget, so it wouldn't suprise me that they changed a few things in how they parse the popup custom text either.

If you figured out it was using some special HTML tags or elements inside your CDATA tag, then go ahead and mark your post as answered on your own post that figured it out.



To GISDev:

I was wondering if you have a basic viewer application setup that uses your own mapservices with pop-ups and all the widgets appear as expected at start-up, without requiring a refresh of the browser?

The reason I ask is because in the following post "Issues upgrading Flexviewer 3.1 (uncompiled)" from 12/18/2012 other users were commenting about the same issue and the ESRI person was unable to confirm whether this was a bug or not.

I am having the same issues as the original poster of this thread.


I haven't experienced this issue, but my Flex Viewer is pretty highly customized from the Source Code, and I also don't use any fancy formatting in the pop-ups I have configured.
0 Kudos
BenAller
Deactivated User
I was hoping to close this out and mark as answered but we're still having issues with the popups after all.  I might be sticking with 3.0 for now.
0 Kudos
MarkHuffman
Deactivated User
I was hoping to close this out and mark as answered but we're still having issues with the popups after all.  I might be sticking with 3.0 for now.


I too have been experiencing this problem, and only by disabling popups for layers in the main configuration file can I get the header back every time. These popups are crucial to our viewer so I am eager to be notified of a fix.

To be specific, the problem appears to be with popups within the <sublayer>tag only. My lone popup for a layer of type feature does not interfere and I have kept it in.

This is keeping me from putting 3.1 into production.

Mark
0 Kudos
MarkHuffman
Deactivated User
I was hoping to close this out and mark as answered but we're still having issues with the popups after all.  I might be sticking with 3.0 for now.


Ben,

Are you saying that even with the description tag CDATA commented out or removed, you are still having issues?

Thanks.

Mark
0 Kudos
MattiasEkström
Frequent Contributor
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...
0 Kudos
MarkHuffman
Deactivated User
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...


Mattias,

Thank you for sharing this. I tried it and I was pleased to see that it worked...for a while. Then the old behavior came back.

I have an incident with ESRI. I will report the outcome in this thread.

Mark
0 Kudos
MarkHuffman
Deactivated User
I have an incident with ESRI. I will report the outcome in this thread.Mark


ESRI support was able to reproduce the issue, and a bug was submitted on my behalf (#NIM088904  The header controller widget does not load properly when using <sublayer> tag popups in the main config.xml file.). It doesn't appear to be in the database yet.

Mark
0 Kudos
BjornSvensson
Esri Regular Contributor
Just wanted to follow up and let you know that this has been fixed and will be part of the 3.2 release (see GitHub Issue #28 - popups in 3.1 causes problem on application startup).

FYI: if you want to see what other viewer code changes made it into 3.2, look at the closed and verified issues for 3.2:
https://github.com/Esri/arcgis-viewer-flex/issues?labels=verified&milestone=1&state=closed
0 Kudos