Skip to main content



      Home
Home » Archived » BIRT » WebViewer - RCP - AppContext
WebViewer - RCP - AppContext [message #366289] Sat, 13 December 2008 03:21 Go to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Hi all.

I am using the report viewer plug-in within my RCP app. All my reports
use scripted dataset. In this case, how do I pass my POJOs (objects) to
the webviewer?

When using the RE API I achieve the above by:

engine.getConfig().setAppContext( contextmap );

where contextmap is a hashmap that containes my object(s). I can then
use reportContext.getAppContext().get( "OBJName" ) to retrieve my passed
object.

I have read that when used in a JSP app, we can set theapp context ny
using request.setAttribute(), but in this case as my application is RCP
how do I set the app context?


Regards,

Anup Gokhale
Re: WebViewer - RCP - AppContext [message #366293 is a reply to message #366289] Mon, 15 December 2008 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Anup Gokhale wrote:
> Hi all.
>
> I am using the report viewer plug-in within my RCP app. All my reports
> use scripted dataset. In this case, how do I pass my POJOs (objects) to
> the webviewer?
>
> When using the RE API I achieve the above by:
>
> engine.getConfig().setAppContext( contextmap );
>
> where contextmap is a hashmap that containes my object(s). I can then
> use reportContext.getAppContext().get( "OBJName" ) to retrieve my passed
> object.
>
> I have read that when used in a JSP app, we can set theapp context ny
> using request.setAttribute(), but in this case as my application is RCP
> how do I set the app context?
>
>
> Regards,
>
> Anup Gokhale

I have been able to achieve the above by extending the
"org.eclipse.birt.report.viewer.appcontext" extension point. Is this teh
correct way? Also is there some other way of passing the app context in
a RCP app - web viewer combination?

Regards,

Anup Gokhale
Re: WebViewer - RCP - AppContext [message #366298 is a reply to message #366293] Mon, 15 December 2008 12:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Anup,

Using the appcontext extension point is a great way to do this.
That extension point was added to allow what you are trying to do. It
allows users to simulate there web environment from the designer. In
your case you not simulating but the extension point is still valid for
this operation.

Jason

Anup Gokhale wrote:
> Anup Gokhale wrote:
>> Hi all.
>>
>> I am using the report viewer plug-in within my RCP app. All my reports
>> use scripted dataset. In this case, how do I pass my POJOs (objects)
>> to the webviewer?
>>
>> When using the RE API I achieve the above by:
>>
>> engine.getConfig().setAppContext( contextmap );
>>
>> where contextmap is a hashmap that containes my object(s). I can then
>> use reportContext.getAppContext().get( "OBJName" ) to retrieve my
>> passed object.
>>
>> I have read that when used in a JSP app, we can set theapp context ny
>> using request.setAttribute(), but in this case as my application is
>> RCP how do I set the app context?
>>
>>
>> Regards,
>>
>> Anup Gokhale
>
> I have been able to achieve the above by extending the
> "org.eclipse.birt.report.viewer.appcontext" extension point. Is this teh
> correct way? Also is there some other way of passing the app context in
> a RCP app - web viewer combination?
>
> Regards,
>
> Anup Gokhale
Re: WebViewer - RCP - AppContext [message #366316 is a reply to message #366298] Mon, 15 December 2008 22:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: anupgokhale.rediffmail.com

Jason Weathersby wrote:
> Anup,
>
> Using the appcontext extension point is a great way to do this.
> That extension point was added to allow what you are trying to do. It
> allows users to simulate there web environment from the designer. In
> your case you not simulating but the extension point is still valid for
> this operation.
>
> Jason
>
> Anup Gokhale wrote:
>> Anup Gokhale wrote:
>>> Hi all.
>>>
>>> I am using the report viewer plug-in within my RCP app. All my
>>> reports use scripted dataset. In this case, how do I pass my POJOs
>>> (objects) to the webviewer?
>>>
>>> When using the RE API I achieve the above by:
>>>
>>> engine.getConfig().setAppContext( contextmap );
>>>
>>> where contextmap is a hashmap that containes my object(s). I can then
>>> use reportContext.getAppContext().get( "OBJName" ) to retrieve my
>>> passed object.
>>>
>>> I have read that when used in a JSP app, we can set theapp context ny
>>> using request.setAttribute(), but in this case as my application is
>>> RCP how do I set the app context?
>>>
>>>
>>> Regards,
>>>
>>> Anup Gokhale
>>
>> I have been able to achieve the above by extending the
>> "org.eclipse.birt.report.viewer.appcontext" extension point. Is this
>> teh correct way? Also is there some other way of passing the app
>> context in a RCP app - web viewer combination?
>>
>> Regards,
>>
>> Anup Gokhale

Jason,

Apart from using the appcontext extension point, is there any other way
to achieve the above?

Regards,
Anup Gokhale
Re: WebViewer - RCP - AppContext [message #366327 is a reply to message #366316] Tue, 16 December 2008 13:59 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

Anup,

You can always export the viewer src and import into your project and
modify it. But that may be more than you want to do.

Jason

Anup Gokhale wrote:
> Jason Weathersby wrote:
>> Anup,
>>
>> Using the appcontext extension point is a great way to do this.
>> That extension point was added to allow what you are trying to do. It
>> allows users to simulate there web environment from the designer. In
>> your case you not simulating but the extension point is still valid
>> for this operation.
>>
>> Jason
>>
>> Anup Gokhale wrote:
>>> Anup Gokhale wrote:
>>>> Hi all.
>>>>
>>>> I am using the report viewer plug-in within my RCP app. All my
>>>> reports use scripted dataset. In this case, how do I pass my POJOs
>>>> (objects) to the webviewer?
>>>>
>>>> When using the RE API I achieve the above by:
>>>>
>>>> engine.getConfig().setAppContext( contextmap );
>>>>
>>>> where contextmap is a hashmap that containes my object(s). I can
>>>> then use reportContext.getAppContext().get( "OBJName" ) to retrieve
>>>> my passed object.
>>>>
>>>> I have read that when used in a JSP app, we can set theapp context
>>>> ny using request.setAttribute(), but in this case as my application
>>>> is RCP how do I set the app context?
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Anup Gokhale
>>>
>>> I have been able to achieve the above by extending the
>>> "org.eclipse.birt.report.viewer.appcontext" extension point. Is this
>>> teh correct way? Also is there some other way of passing the app
>>> context in a RCP app - web viewer combination?
>>>
>>> Regards,
>>>
>>> Anup Gokhale
>
> Jason,
>
> Apart from using the appcontext extension point, is there any other way
> to achieve the above?
>
> Regards,
> Anup Gokhale
Previous Topic:Setup logging level for EventAdapter
Next Topic:How to display StyledText RTF contents in a report
Goto Forum:
  


Current Time: Thu May 15 01:57:30 EDT 2025

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

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

Back to the top