WebViewer - RCP - AppContext [message #366289] |
Sat, 13 December 2008 03:21  |
Eclipse User |
|
|
|
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 #366316 is a reply to message #366298] |
Mon, 15 December 2008 22:56   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06017 seconds