Home » Archived » BIRT » drill-through hyperlinks contain unwanted ../../..
|
Re: drill-through hyperlinks contain unwanted ../../.. [message #640207 is a reply to message #640071] |
Fri, 19 November 2010 15:07 |
|
What version of BIRT are you using and can you post the report?
Jason
On 11/18/2010 5:21 PM, rhinmass@yahoo.com wrote:
> 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 18:22 |
No real name Messages: 5 Registered: November 2010 |
Junior Member |
|
|
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 19:02 |
|
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 19:23 |
|
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.
>
|
|
| |
Re: drill-through hyperlinks contain unwanted ../../.. [message #640281 is a reply to message #640277] |
Fri, 19 November 2010 21:43 |
|
I believe the hyperlinks are baked into the rptdocument. So when you
generate the rptdocument in the designer it is using the hyperlink that
was created there. Using __document in the viewer url should create the
rptdocument in the viewer. Just make sure to specify a __report and a
__document. You can then re-run your previous test with the newly
created documents.
Jason
On 11/19/2010 4:12 PM, rhinmass@yahoo.com wrote:
> Hi Jason,
> I'm not sure I understand what this is supposed to do. I added
> &__document=c:/temp/myrptdocument to the URL:
>
> http://localhost:8080/WebViewerExample/frameset?__report=pie .rptdesign&__document=c:/temp/myrptdocument
>
>
> and got:
>
> Cannot access the document file : c:/temp/myrptdocument.
>
> org.eclipse.birt.report.exception.ViewerException: Cannot access the
> document file : c:/temp/myrptdocument.
>
>
> I do have a C:\temp folder , but rptdocument files in it.
> [quote title=Jason Weathersby wrote on Fri, 19 November 2010 14:23]Can
> you try deploying both reports and then use the
> __document=c:/temp/myrptdocument to generate the documents?
>
> Jason
>
>
|
|
| | | |
Goto Forum:
Current Time: Mon Sep 23 21:38:37 GMT 2024
Powered by FUDForum. Page generated in 0.04434 seconds
|