Home » Archived » BIRT » Different behavior when using "frameset" or "run" in WebViewer
Different behavior when using "frameset" or "run" in WebViewer [message #242973] |
Fri, 15 June 2007 17:21  |
Eclipse User |
|
|
|
Hello all.
I am using Birt in my RCP application with ScriptedDataSource. I have
certain values that I need to pass to my script and I put them in a Map
and pass them to the report via an object (if there is an easier way to
pass along parameters and objects from my code to the report script,
please let me know about it as well :) )
My question is the following: when I use "run" servlet in WebViewer, I
can render a report, then change my parameters in my application and
call WebViewer.display(..) again to render the report with new
parameters. If, however, I use "frameset", the new parameters do not get
reflected in the report with a similar call to WebViewer.display(...)
and the old report remains there. How can I get a new report with the
new values reflected there while using the frameset servlet? I do like
to use frameset since I need to have the pagination and the rest of
goodies. One more data point: If I use WebViewer.display(name,
WebViewer.HTML) to open a browser outside of my main application window,
new parameters do get reflected there and works just fine. Do I need to
dispose my browser each time, or rest its URL or ...to use the frameset
in my usecase?
Many thanks
Ali.
|
|
|
Re: Different behavior when using "frameset" or "run" in WebViewer [message #243149 is a reply to message #242973] |
Mon, 18 June 2007 13:05   |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Ali,
What version are you using? You could modify the url to use
__overwrite=true.
Jason
Ali Naddaf wrote:
> Hello all.
>
> I am using Birt in my RCP application with ScriptedDataSource. I have
> certain values that I need to pass to my script and I put them in a Map
> and pass them to the report via an object (if there is an easier way to
> pass along parameters and objects from my code to the report script,
> please let me know about it as well :) )
>
> My question is the following: when I use "run" servlet in WebViewer, I
> can render a report, then change my parameters in my application and
> call WebViewer.display(..) again to render the report with new
> parameters. If, however, I use "frameset", the new parameters do not get
> reflected in the report with a similar call to WebViewer.display(...)
> and the old report remains there. How can I get a new report with the
> new values reflected there while using the frameset servlet? I do like
> to use frameset since I need to have the pagination and the rest of
> goodies. One more data point: If I use WebViewer.display(name,
> WebViewer.HTML) to open a browser outside of my main application window,
> new parameters do get reflected there and works just fine. Do I need to
> dispose my browser each time, or rest its URL or ...to use the frameset
> in my usecase?
>
> Many thanks
> Ali.
|
|
|
Re: Different behavior when using "frameset" or "run" in WebViewer [message #243153 is a reply to message #243149] |
Mon, 18 June 2007 13:31   |
Eclipse User |
|
|
|
Hi Jason.
I am using 2.2 (came as part of Eclipse 3.3 M7). This morning, I thought
about building URL and doing that and it worked with the following changes:
1. Previously I was not using any URL and as using
WebViewer.display(...), so I built the URL and in addition to
__overwrite=true, I also made sure that my __document is unique (added
time stamp to that). This made it work and each time I create a new
report, it creates a new *.rptdocument in a certain directory, and
doesn't seem to be removing them on exit, so I needed to add the
appropriate (still using URL but reusing the same *.rptdocument instead
of a unique one) and that worked to0.
3. Is there a way to use WebViewer.display(...) instead of building the
URL and using browser.setUrl(..) ? At this point, it is not really
important since building URL and using the browser does the job so it is
mostly a question so I can learn more.
Thanks a lot for getting back to me on this. Your responses are always
so helpful; I really appreciate it.
Regards
Ali.
Jason Weathersby wrote:
> Ali,
>
> What version are you using? You could modify the url to use
> __overwrite=true.
>
> Jason
>
> Ali Naddaf wrote:
>> Hello all.
>>
>> I am using Birt in my RCP application with ScriptedDataSource. I have
>> certain values that I need to pass to my script and I put them in a
>> Map and pass them to the report via an object (if there is an easier
>> way to pass along parameters and objects from my code to the report
>> script, please let me know about it as well :) )
>>
>> My question is the following: when I use "run" servlet in WebViewer, I
>> can render a report, then change my parameters in my application and
>> call WebViewer.display(..) again to render the report with new
>> parameters. If, however, I use "frameset", the new parameters do not
>> get reflected in the report with a similar call to
>> WebViewer.display(...) and the old report remains there. How can I get
>> a new report with the new values reflected there while using the
>> frameset servlet? I do like to use frameset since I need to have the
>> pagination and the rest of goodies. One more data point: If I use
>> WebViewer.display(name, WebViewer.HTML) to open a browser outside of
>> my main application window, new parameters do get reflected there and
>> works just fine. Do I need to dispose my browser each time, or rest
>> its URL or ...to use the frameset in my usecase?
>>
>> Many thanks
>> Ali.
|
|
|
Re: Different behavior when using "frameset" or "run" in WebViewer [message #243158 is a reply to message #243153] |
Mon, 18 June 2007 14:32  |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Ali,
I do not see an easy way of doing this, but changing the parameters
should have done an overwrite anyways. This is probably a good
candidate for a bugzilla entry. It would be nice if the createURL
function in the WebViewer class was made public.
Jason
Ali Naddaf wrote:
> Hi Jason.
>
> I am using 2.2 (came as part of Eclipse 3.3 M7). This morning, I thought
> about building URL and doing that and it worked with the following changes:
>
> 1. Previously I was not using any URL and as using
> WebViewer.display(...), so I built the URL and in addition to
> __overwrite=true, I also made sure that my __document is unique (added
> time stamp to that). This made it work and each time I create a new
> report, it creates a new *.rptdocument in a certain directory, and
> doesn't seem to be removing them on exit, so I needed to add the
> appropriate (still using URL but reusing the same *.rptdocument instead
> of a unique one) and that worked to0.
>
> 3. Is there a way to use WebViewer.display(...) instead of building the
> URL and using browser.setUrl(..) ? At this point, it is not really
> important since building URL and using the browser does the job so it is
> mostly a question so I can learn more.
>
> Thanks a lot for getting back to me on this. Your responses are always
> so helpful; I really appreciate it.
>
> Regards
> Ali.
>
>
>
> Jason Weathersby wrote:
>> Ali,
>>
>> What version are you using? You could modify the url to use
>> __overwrite=true.
>>
>> Jason
>>
>> Ali Naddaf wrote:
>>> Hello all.
>>>
>>> I am using Birt in my RCP application with ScriptedDataSource. I have
>>> certain values that I need to pass to my script and I put them in a
>>> Map and pass them to the report via an object (if there is an easier
>>> way to pass along parameters and objects from my code to the report
>>> script, please let me know about it as well :) )
>>>
>>> My question is the following: when I use "run" servlet in WebViewer,
>>> I can render a report, then change my parameters in my application
>>> and call WebViewer.display(..) again to render the report with new
>>> parameters. If, however, I use "frameset", the new parameters do not
>>> get reflected in the report with a similar call to
>>> WebViewer.display(...) and the old report remains there. How can I
>>> get a new report with the new values reflected there while using the
>>> frameset servlet? I do like to use frameset since I need to have the
>>> pagination and the rest of goodies. One more data point: If I use
>>> WebViewer.display(name, WebViewer.HTML) to open a browser outside of
>>> my main application window, new parameters do get reflected there and
>>> works just fine. Do I need to dispose my browser each time, or rest
>>> its URL or ...to use the frameset in my usecase?
>>>
>>> Many thanks
>>> Ali.
|
|
|
Goto Forum:
Current Time: Wed Apr 30 09:08:44 EDT 2025
Powered by FUDForum. Page generated in 0.03034 seconds
|