We need your help with a problem when displaying a Birt report on an iPad using Safari and iOS6.
We created a report using the Birt engine and inserted it into a liferay portal. When accessing the report from a desktop environment it displays OK but when accessing it from an iPad (on IOS 6) the iframe starts growing up and by the time it really shows up it is a very small portion of the full redered page on the iPad.
This is a dynamic report based on two parameters that must be selected before the execution.
We published the original frame set that comes out of Birt and noticed the same behavior even outside liferay or other CMS portals such as Joomla. We have come to the conclusion that there is a parameter built in the Birt's master document that is somehow misinterpreted on Safari IOS6 creating the endless growing behavior.
Has anyone encountered the same problem? Can you point us on the right direction in order to solve this issue?
Antonio Urbina <forums-noreply@xxxxxxxx> wrote:
> We need your help with a problem when displaying a Birt report on an iPad
> using Safari and iOS6.
> We created a report using the Birt engine and inserted it into a liferay
> portal. When accessing the report from a desktop environment it displays
> OK but when accessing it from an iPad (on IOS 6) the iframe starts
> growing up and by the time it really shows up it is a very small portion
> of the full redered page on the iPad.
> This is a dynamic report based on two parameters that must be selected
> before the execution.
> We published the original frame set that comes out of Birt and noticed
> the same behavior even outside liferay or other CMS portals such as
> Joomla. We have come to the conclusion that there is a parameter built in
> the Birt's master document that is somehow misinterpreted on Safari IOS6
> creating the endless growing behavior.
> Has anyone encountered the same problem? Can you point us on the right
> direction in order to solve this issue?
A couple of my reports continually grow and move to the right when
displaying on the iPad with iOS5. Since they work Ok on the PC and Mac with
Safari it must be an iPad Safari issue.
Are you setting this render option?
HTMLRenderOption options = new HTMLRenderOption();
I am using the birt web viewer with the /frameset option and running into the same difficulty as described above.
I noticed your suggestion about using HTMLRenderOption's to setViewportMeta("width=device-width").
This is going to seem like a stupid question, and I am admittedly not nearly as versed in Birt as you or many here, but I am uncertain how to go about getting these options to the web viewer. Presently we simply have a jsp page which forwards the user to the web viewer after setting the __report parameter (may be __reportName, but I'm sure you know what I mean). Where would I create this HTMLRenderOption object and how would I pass it to the viewer? I am guessing I could create one in a scriptlet in the JSP, but I am still at a loss as to how to make the viewer actually use it.
Thank you for the suggestion, unfortunately either I am not doing it properly or it isn't working.
I put the following into the framesetfragment.jsp :
<META HTTP-EQUIV="width" CONTENT="device-width">
And I even put a breakpoint in the scriptlet in that jsp to make sure it was being run for reports (it is). But no effect on the report on the iPad, it still has the frame growing constantly off to the right into infinity seemingly.
I tried it that way as well and still no effect/change. I guess we are hoping that the viewer servlet picks up the meta tag and alters it's behavior for the output? Naturally I've been trying any number of other attempts to just get it to work, changing to run option instead of frameset, but it still walks across the screen with that loading box with the cancel button.
Any other ideas on how to get this to work with the birt viewer on an iPad?
Again, thank you for the help, though I put the above in the beforeRender script and there was no effect. It still walks the loading dialog across the window into infinity for some reason I haven't nailed down.
I tried using a PC and Mac version of Safari and both of those work fine. So it is only the iPad that is giving this strange behavior.
Any further suggestions are not only welcomed, but very appreciated as I am at wits end on this and have run out of ideas myself.
It is still the case with an actual Ipad (Air 2).
Firefox and Safari won´t work properly, even the navigation bar of the viewer is already displayed in huge proportions.
Solution: Use Chrome.
Or use Android as it works on every browser there.
Thx for the fast reply James. But this solution isn't working for me. The Birt report parameters are shown correctly at start up but it isn't possible to edit the variables and not possible to click the OK button. (same result for Safari and Chrome)