Skip to main content



      Home
Home » Archived » BIRT » An issue in preview tag
An issue in preview tag [message #259696] Fri, 26 October 2007 13:58 Go to next message
Eclipse UserFriend
Hi,

I tried to use preview tag, But I faced an issue as I added it in my code,
in IE (not Firefox).
IE shows alert "The page can not be open". As I tracked it down (for few
hours), I found out that tag creates a form internally dynamically & as I
put the tag inside a div, in IE 7, it won't work. Following is a sample to
reproduce the scenario:

<div>
<script type="text/javascript">
function loadViewersample_chart(){
var bodyObj = document.body;
var formObj = document.createElement( "FORM" );
bodyObj.appendChild( formObj );
formObj.action =
" http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
formObj.method = "post";
formObj.target = "sample_chart";
formObj.submit( );
}
</script>
<iframe name="sample_chart"></iframe>
<script type="text/javascript">loadViewersample_chart();</script>
</div>

Does anybody know a solution for that?

Thanks
Farid
Re: An issue in preview tag [message #259773 is a reply to message #259696] Mon, 29 October 2007 10:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Farid,

Do you have the preview tag nested in another div? This is a known
issue with ie 7. You can try setting the reportContainer attribute tag
to div.

Jason

Farid wrote:
> Hi,
>
> I tried to use preview tag, But I faced an issue as I added it in my code,
> in IE (not Firefox).
> IE shows alert "The page can not be open". As I tracked it down (for few
> hours), I found out that tag creates a form internally dynamically & as I
> put the tag inside a div, in IE 7, it won't work. Following is a sample to
> reproduce the scenario:
>
> <div>
> <script type="text/javascript">
> function loadViewersample_chart(){
> var bodyObj = document.body;
> var formObj = document.createElement( "FORM" );
> bodyObj.appendChild( formObj );
> formObj.action =
> " http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
> formObj.method = "post";
> formObj.target = "sample_chart";
> formObj.submit( );
> }
> </script>
> <iframe name="sample_chart"></iframe>
> <script type="text/javascript">loadViewersample_chart();</script>
> </div>
>
> Does anybody know a solution for that?
>
> Thanks
> Farid
>
>
Re: An issue in preview tag [message #260099 is a reply to message #259773] Wed, 31 October 2007 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Jason,
I tried your solution, but I face another issue. I have the birt running as
a seperate application. The tag in my code looks like this:

<birt:report reportContainer="div" id="sample_chart" baseURL="/birt"
isHostPage="false" showParameterPage="false" height="600" width="800"
reportDesign="${param.reportName}"></birt:report>

But it shows an error:
The report file :
C:\projects\eclipseworkspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp2\webapps\selfadmin\clientSale.rptdesign
does not exist or contains errors.

As I use the tag without reportContainer attribute (in Firefox) it works
fine.

Thanks
Farid

"Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
news:fg4qkc$45n$2@build.eclipse.org...
> Farid,
>
> Do you have the preview tag nested in another div? This is a known issue
> with ie 7. You can try setting the reportContainer attribute tag to div.
>
> Jason
>
> Farid wrote:
>> Hi,
>>
>> I tried to use preview tag, But I faced an issue as I added it in my
>> code, in IE (not Firefox).
>> IE shows alert "The page can not be open". As I tracked it down (for few
>> hours), I found out that tag creates a form internally dynamically & as I
>> put the tag inside a div, in IE 7, it won't work. Following is a sample
>> to reproduce the scenario:
>>
>> <div>
>> <script type="text/javascript">
>> function loadViewersample_chart(){
>> var bodyObj = document.body;
>> var formObj = document.createElement( "FORM" );
>> bodyObj.appendChild( formObj );
>> formObj.action =
>> " http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
>> formObj.method = "post";
>> formObj.target = "sample_chart";
>> formObj.submit( );
>> }
>> </script>
>> <iframe name="sample_chart"></iframe>
>> <script type="text/javascript">loadViewersample_chart();</script>
>> </div>
>>
>> Does anybody know a solution for that?
>>
>> Thanks
>> Farid
Re: An issue in preview tag [message #260197 is a reply to message #260099] Thu, 01 November 2007 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Farid,

If you hard code the reportDesign, does this work?
Also reportDesign if relative will be in relation to the /birt context.

Jason

Farid wrote:
> Jason,
> I tried your solution, but I face another issue. I have the birt running as
> a seperate application. The tag in my code looks like this:
>
> <birt:report reportContainer="div" id="sample_chart" baseURL="/birt"
> isHostPage="false" showParameterPage="false" height="600" width="800"
> reportDesign="${param.reportName}"></birt:report>
>
> But it shows an error:
> The report file :
> C:\projects\eclipseworkspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp2\webapps\selfadmin\clientSale.rptdesign
> does not exist or contains errors.
>
> As I use the tag without reportContainer attribute (in Firefox) it works
> fine.
>
> Thanks
> Farid
>
> "Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
> news:fg4qkc$45n$2@build.eclipse.org...
>> Farid,
>>
>> Do you have the preview tag nested in another div? This is a known issue
>> with ie 7. You can try setting the reportContainer attribute tag to div.
>>
>> Jason
>>
>> Farid wrote:
>>> Hi,
>>>
>>> I tried to use preview tag, But I faced an issue as I added it in my
>>> code, in IE (not Firefox).
>>> IE shows alert "The page can not be open". As I tracked it down (for few
>>> hours), I found out that tag creates a form internally dynamically & as I
>>> put the tag inside a div, in IE 7, it won't work. Following is a sample
>>> to reproduce the scenario:
>>>
>>> <div>
>>> <script type="text/javascript">
>>> function loadViewersample_chart(){
>>> var bodyObj = document.body;
>>> var formObj = document.createElement( "FORM" );
>>> bodyObj.appendChild( formObj );
>>> formObj.action =
>>> " http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
>>> formObj.method = "post";
>>> formObj.target = "sample_chart";
>>> formObj.submit( );
>>> }
>>> </script>
>>> <iframe name="sample_chart"></iframe>
>>> <script type="text/javascript">loadViewersample_chart();</script>
>>> </div>
>>>
>>> Does anybody know a solution for that?
>>>
>>> Thanks
>>> Farid
>
>
Re: An issue in preview tag [message #260641 is a reply to message #260197] Mon, 05 November 2007 11:32 Go to previous messageGo to next message
Eclipse UserFriend
The result won't be different. It tries to find the report in local context.

"Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
news:fgcles$mm8$1@build.eclipse.org...
> Farid,
>
> If you hard code the reportDesign, does this work?
> Also reportDesign if relative will be in relation to the /birt context.
>
> Jason
>
> Farid wrote:
>> Jason,
>> I tried your solution, but I face another issue. I have the birt running
>> as a seperate application. The tag in my code looks like this:
>>
>> <birt:report reportContainer="div" id="sample_chart" baseURL="/birt"
>> isHostPage="false" showParameterPage="false" height="600" width="800"
>> reportDesign="${param.reportName}"></birt:report>
>>
>> But it shows an error:
>> The report file :
>> C:\projects\eclipseworkspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp2\webapps\selfadmin\clientSale.rptdesign
>> does not exist or contains errors.
>>
>> As I use the tag without reportContainer attribute (in Firefox) it works
>> fine.
>>
>> Thanks
>> Farid
>>
>> "Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
>> news:fg4qkc$45n$2@build.eclipse.org...
>>> Farid,
>>>
>>> Do you have the preview tag nested in another div? This is a known
>>> issue with ie 7. You can try setting the reportContainer attribute tag
>>> to div.
>>>
>>> Jason
>>>
>>> Farid wrote:
>>>> Hi,
>>>>
>>>> I tried to use preview tag, But I faced an issue as I added it in my
>>>> code, in IE (not Firefox).
>>>> IE shows alert "The page can not be open". As I tracked it down (for
>>>> few hours), I found out that tag creates a form internally dynamically
>>>> & as I put the tag inside a div, in IE 7, it won't work. Following is a
>>>> sample to reproduce the scenario:
>>>>
>>>> <div>
>>>> <script type="text/javascript">
>>>> function loadViewersample_chart(){
>>>> var bodyObj = document.body;
>>>> var formObj = document.createElement( "FORM" );
>>>> bodyObj.appendChild( formObj );
>>>> formObj.action =
>>>> " http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
>>>> formObj.method = "post";
>>>> formObj.target = "sample_chart";
>>>> formObj.submit( );
>>>> }
>>>> </script>
>>>> <iframe name="sample_chart"></iframe>
>>>> <script type="text/javascript">loadViewersample_chart();</script>
>>>> </div>
>>>>
>>>> Does anybody know a solution for that?
>>>>
>>>> Thanks
>>>> Farid
>>
Re: An issue in preview tag [message #260683 is a reply to message #260641] Mon, 05 November 2007 13:28 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Farid,

Is this jsp page in the /birt context or another?
Also if you set
reportDesign="c:/temp/clientSale.rptdesign" does it find the report?
Lastly can you set logging in the /birt context by modifying its web.xml
and setting the logging directory and post the log?

Thanks

Jason


Farid wrote:
> The result won't be different. It tries to find the report in local context.
>
> "Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
> news:fgcles$mm8$1@build.eclipse.org...
>> Farid,
>>
>> If you hard code the reportDesign, does this work?
>> Also reportDesign if relative will be in relation to the /birt context.
>>
>> Jason
>>
>> Farid wrote:
>>> Jason,
>>> I tried your solution, but I face another issue. I have the birt running
>>> as a seperate application. The tag in my code looks like this:
>>>
>>> <birt:report reportContainer="div" id="sample_chart" baseURL="/birt"
>>> isHostPage="false" showParameterPage="false" height="600" width="800"
>>> reportDesign="${param.reportName}"></birt:report>
>>>
>>> But it shows an error:
>>> The report file :
>>> C:\projects\eclipseworkspace\.metadata\.plugins\org.eclipse. wst.server.core\tmp2\webapps\selfadmin\clientSale.rptdesign
>>> does not exist or contains errors.
>>>
>>> As I use the tag without reportContainer attribute (in Firefox) it works
>>> fine.
>>>
>>> Thanks
>>> Farid
>>>
>>> "Jason Weathersby" <jasonweathersby@alltel.net> wrote in message
>>> news:fg4qkc$45n$2@build.eclipse.org...
>>>> Farid,
>>>>
>>>> Do you have the preview tag nested in another div? This is a known
>>>> issue with ie 7. You can try setting the reportContainer attribute tag
>>>> to div.
>>>>
>>>> Jason
>>>>
>>>> Farid wrote:
>>>>> Hi,
>>>>>
>>>>> I tried to use preview tag, But I faced an issue as I added it in my
>>>>> code, in IE (not Firefox).
>>>>> IE shows alert "The page can not be open". As I tracked it down (for
>>>>> few hours), I found out that tag creates a form internally dynamically
>>>>> & as I put the tag inside a div, in IE 7, it won't work. Following is a
>>>>> sample to reproduce the scenario:
>>>>>
>>>>> <div>
>>>>> <script type="text/javascript">
>>>>> function loadViewersample_chart(){
>>>>> var bodyObj = document.body;
>>>>> var formObj = document.createElement( "FORM" );
>>>>> bodyObj.appendChild( formObj );
>>>>> formObj.action =
>>>>> " http://localhost:8080/birt//preview?__format=html&__repo rt=sample-chart.rptdesign&__masterpage=true";
>>>>> formObj.method = "post";
>>>>> formObj.target = "sample_chart";
>>>>> formObj.submit( );
>>>>> }
>>>>> </script>
>>>>> <iframe name="sample_chart"></iframe>
>>>>> <script type="text/javascript">loadViewersample_chart();</script>
>>>>> </div>
>>>>>
>>>>> Does anybody know a solution for that?
>>>>>
>>>>> Thanks
>>>>> Farid
>
Previous Topic:BIRT 2.2.1 and WAS CE 2.0 - can't start BIRT.
Next Topic:Charting: Making gaps in line chart from groups (instead of nulls)
Goto Forum:
  


Current Time: Tue Jul 15 14:42:44 EDT 2025

Powered by FUDForum. Page generated in 0.04126 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top