Home » Archived » BIRT » drill-through hyperlinks contain unwanted ../../..
drill-through hyperlinks contain unwanted ../../.. [message #640071] |
Thu, 18 November 2010 17:21  |
Eclipse User |
|
|
|
I created a pie chart and a detail chart. I configured the pie chart to drill through to the detail chart. I saved them both as .rptdocument in the project directory.
When I run this under eclipse it works correctly.
When I copy both .rptdocument files to the
$TOMCAT_HOME/webapps/WebViewerExample file, they work indendently, but the drill through is broken.
The message I get is:
org.eclipse.birt.report.exception.ViewerException: Cannot access the document file : C:\Apache Software Foundation\Tomcat 6.0\webapps\WebViewerExample/../../../detail.rptdocument.
I do not know where the "../../.." is coming from. Without the "../../.." it works, but I can't figure out how to prevent "../../.." from getting inserted into my hyperlink.
Does anyone have any idea what might be causing this?
Thanks!!
|
|
| |
Re: drill-through hyperlinks contain unwanted ../../.. [message #640246 is a reply to message #640207] |
Fri, 19 November 2010 13:22   |
Eclipse User |
|
|
|
I am using 2.6.1
I'm new to this group and can't seem to figure out how to upload my files.
Here are the recreate steps.
1. For dataset use flat csv file:
item,color
apple,red
fire truck,red
sky,blue
sun,yellow
banana,yellow
grass,green
money,green
envy,green
rash,red
violet,blue
rose,red
smurf,blue
lime,green
avocado,green
2. Create color_detail.rptdesign, from this data set. I just dragged the dataset onto the layout; previewed and saved.
3. Under Run menu, click on generate document and save it in the project folder alongside the rptdesign file.
4. Create new report pie.rptdesign with same data set above.
5. Create pie chart. For slice size definition use COUNT row["item"]. For category use row["color"]
6. Click "Finish" ; save report .
7. Edit the pie chart and go to Format Chart; Series; Value Series; Interactivity
8. Choose Action Hyperlink, then add "color detail"; Edit Base URL; drill-through; Choose Report Document and navigate to the document file generated in step 3.
9. click OK; save the report and test it to make sure the drill-through works (ie when click on pie chart , the detail report pops up.)
10. Generate the pie.rptdocument as done in step 3.
11. Copy both pie.rptdocument and color_detail.rptdocument to the $TOMCATHOME/webapps/WebViewerExample folder
12. View the pie in webbrowser:
http://localhost:8080/WebViewerExample/frameset?__document=p ie.rptdocument
13. Click on the pie chart. The error message appears:
Cannot access the document file : C:\Apache Software Foundation\Tomcat 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
org.eclipse.birt.report.exception.ViewerException: Cannot access the document file : C:\Apache Software Foundation\Tomcat 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
Note that removing the "../../../" in the above link yields the detail chart.
14. Also I noticed that if I copy pie.rptdesign into the webapps/WebViewerExample folder and view it using the URL:
http://localhost:8080/WebViewerExample/frameset?__report=pie .rptdesign, the drill-through does work correctly.
|
|
|
Re: drill-through hyperlinks contain unwanted ../../.. [message #640261 is a reply to message #640246] |
Fri, 19 November 2010 14:02   |
Eclipse User |
|
|
|
Can you either select the xml view and cut and paste report to the forum
or just email the files to me at jasonweathersby at windstream dot net.
Thanks
Jason
On 11/19/2010 1:22 PM, rhinmass@yahoo.com wrote:
> I am using 2.6.1
>
> I'm new to this group and can't seem to figure out how to upload my files.
> Here are the recreate steps.
>
> 1. For dataset use flat csv file:
> item,color
> apple,red
> fire truck,red
> sky,blue
> sun,yellow
> banana,yellow
> grass,green
> money,green
> envy,green
> rash,red
> violet,blue
> rose,red
> smurf,blue
> lime,green
> avocado,green
>
>
> 2. Create color_detail.rptdesign, from this data set. I just dragged the
> dataset onto the layout; previewed and saved.
>
> 3. Under Run menu, click on generate document and save it in the project
> folder alongside the rptdesign file.
>
> 4. Create new report pie.rptdesign with same data set above.
>
> 5. Create pie chart. For slice size definition use COUNT row["item"].
> For category use row["color"]
>
> 6. Click "Finish" ; save report .
>
> 7. Edit the pie chart and go to Format Chart; Series; Value Series;
> Interactivity
>
> 8. Choose Action Hyperlink, then add "color detail"; Edit Base URL;
> drill-through; Choose Report Document and navigate to the document file
> generated in step 3.
>
> 9. click OK; save the report and test it to make sure the drill-through
> works (ie when click on pie chart , the detail report pops up.)
>
> 10. Generate the pie.rptdocument as done in step 3.
>
> 11. Copy both pie.rptdocument and color_detail.rptdocument to the
> $TOMCATHOME/webapps/WebViewerExample folder
>
> 12. View the pie in webbrowser:
> http://localhost:8080/WebViewerExample/frameset?__document=p ie.rptdocument
>
> 13. Click on the pie chart. The error message appears:
>
> Cannot access the document file : C:\Apache Software Foundation\Tomcat
> 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
>
> org.eclipse.birt.report.exception.ViewerException: Cannot access the
> document file : C:\Apache Software Foundation\Tomcat
> 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
>
>
> Note that removing the "../../../" in the above link yields the detail
> chart.
>
> 14. Also I noticed that if I copy pie.rptdesign into the
> webapps/WebViewerExample folder and view it using the URL:
>
> http://localhost:8080/WebViewerExample/frameset?__report=pie .rptdesign,
> the drill-through does work correctly.
>
|
|
|
Re: drill-through hyperlinks contain unwanted ../../.. [message #640264 is a reply to message #640246] |
Fri, 19 November 2010 14:23   |
Eclipse User |
|
|
|
Can you try deploying both reports and then use the
__document=c:/temp/myrptdocument to generate the documents?
Jason
On 11/19/2010 1:22 PM, rhinmass@yahoo.com wrote:
> I am using 2.6.1
>
> I'm new to this group and can't seem to figure out how to upload my files.
> Here are the recreate steps.
>
> 1. For dataset use flat csv file:
> item,color
> apple,red
> fire truck,red
> sky,blue
> sun,yellow
> banana,yellow
> grass,green
> money,green
> envy,green
> rash,red
> violet,blue
> rose,red
> smurf,blue
> lime,green
> avocado,green
>
>
> 2. Create color_detail.rptdesign, from this data set. I just dragged the
> dataset onto the layout; previewed and saved.
>
> 3. Under Run menu, click on generate document and save it in the project
> folder alongside the rptdesign file.
>
> 4. Create new report pie.rptdesign with same data set above.
>
> 5. Create pie chart. For slice size definition use COUNT row["item"].
> For category use row["color"]
>
> 6. Click "Finish" ; save report .
>
> 7. Edit the pie chart and go to Format Chart; Series; Value Series;
> Interactivity
>
> 8. Choose Action Hyperlink, then add "color detail"; Edit Base URL;
> drill-through; Choose Report Document and navigate to the document file
> generated in step 3.
>
> 9. click OK; save the report and test it to make sure the drill-through
> works (ie when click on pie chart , the detail report pops up.)
>
> 10. Generate the pie.rptdocument as done in step 3.
>
> 11. Copy both pie.rptdocument and color_detail.rptdocument to the
> $TOMCATHOME/webapps/WebViewerExample folder
>
> 12. View the pie in webbrowser:
> http://localhost:8080/WebViewerExample/frameset?__document=p ie.rptdocument
>
> 13. Click on the pie chart. The error message appears:
>
> Cannot access the document file : C:\Apache Software Foundation\Tomcat
> 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
>
> org.eclipse.birt.report.exception.ViewerException: Cannot access the
> document file : C:\Apache Software Foundation\Tomcat
> 6.0\webapps\WebViewerExample/../../../color_detail.rptdocume nt.
>
>
> Note that removing the "../../../" in the above link yields the detail
> chart.
>
> 14. Also I noticed that if I copy pie.rptdesign into the
> webapps/WebViewerExample folder and view it using the URL:
>
> http://localhost:8080/WebViewerExample/frameset?__report=pie .rptdesign,
> the drill-through does work correctly.
>
|
|
| | | | | |
Goto Forum:
Current Time: Tue Jul 22 11:45:12 EDT 2025
Powered by FUDForum. Page generated in 0.09313 seconds
|