Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [birt-dev] Refine reportlet feature.

Since the method IRenderTask.setInstanceID( InstanceID) need a parameter which type is InstanceID, while the instance id provided in URL string is String type, so it needs to be converted to InstanceID type by InstanceID.parse( String ).

 

However, considering the inconvenience of this method, I add another method setInstanceID( String ) into IRenderTask, so that user can directly pass a string type instance id in.

 

Now the methods to set reportlet information are:

 

IRenderTask provides API to set the reportlet information.

1. If instance id is provided ( instanceId ):

   IRenderTask.setInstanceId( instanceId );

2. If bookmark is provided:

   IRenderTask.setReportlet( bookmark );

3. If TOC is provided:

   Get the respective bookmark of the report item based on TOC ( IReportDocument.findTOC(String toc) ), and then set reportlet as method 2.

 

Thanks!

-Jun Ouyang


From: Wenfeng Li
Sent: 2006
610 2:01
To: Jun Ouyang
Cc: Wei Yan; Gary Xue
Subject: FW: [birt-dev] Refine reportlet feature.

 

HI, OuYang

 

For case 1.   What is the reason we need to have the caller to call  “IRenderTask.setInstanceId( InstanceID.parse( instanceId ) );” instead of “IRenderTask.setInstanceId(instanceId  );” ?

 

 

Thanks

 

Wenfeng

 

 

 

-----Original Message-----
From: birt-dev-bounces@xxxxxxxxxxx [mailto:birt-dev-bounces@xxxxxxxxxxx] On Behalf Of Jun Ouyang
Sent: Friday, June 09, 2006 3:01 AM
To: birt-dev@xxxxxxxxxxx
Subject: [birt-dev] Refine reportlet feature.

 

Summary:

Refine reportlet feature.

 

- Bugzilla Bug(s)

143922

 

- Description:

IRenderTask provides API to set the reportlet information.

1. If instance id is provided ( instanceId ):

   IRenderTask.setInstanceId( InstanceID.parse( instanceId ) );

2. If bookmark is provided:

   IRenderTask.setReportlet( bookmark );

3. If TOC is provided:

   Get the respective bookmark of the report item based on TOC ( IReportDocument.findTOC(String toc) ), and then set reportlet as method 2.

 

- Tests Description:

Manuel Test. Unit Test

 

- Notes to Build Team:

 

- Notes to Developers:

 

- Notes to QA:

 

- Notes to Documentation:

 

- Files Edited:

/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/IReportDocument.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentWriter.java /org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/reportlet1.rptdesign /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentConstants.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/IRenderTask.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/presentation/TransientReportDocument.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/ReportDocumentBuilder.java /org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/ReportletTest.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportDocumentReader.java /org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java

 

- Files Added:

/org.eclipse.birt.report.engine/test/org/eclipse/birt/report/engine/api/reportlet1.rptdesign

 

-Jun Ouyang

 


Back to the top