Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Extended Report Itens in WebViewer
Gustavo.Av
Hello all,
I started this topic, because i already posted in another topics but got no answers. Ok heres the deal, i have my RotatedText implemented in my Eclipse working fine, even when i run it by Run>View Report>In WebViewer through eclipse works fine either.
My problem is when i try to view the same report on the WebViewer inside my Tomcat, It seems that it cant process the rotatedtext plugin or render it i don't know. I tried removing the ui dependencies but it didnt work either.
And I also have another problem related to Report Itens, dont know if it is related to my rotatedtext plugin either, I got the
org.eclipse.birt.report.model source and I changed the getText() function in LabelHandle class to change every label that a create and set for a static text, just for test purposes. It works fine in Eclipse and In the WebViewer from inside eclipse, i create a label, set its value and when i run the report those labels from my design are change in runtime for my static one. But again when i tried to run the same report through my Tomcat's WebViewer it shows the texts that i defined in the design, not the ones from my source code.
Can anyone help me please ?
Thanks.
Find more posts tagged with
Comments
JasonW
Are you using the export wizard in the manifest wizard? Can you post your deployable plugin?
Jason
Gustavo.Av
Yes im using the export from manifest wizard. The plugins are working in Eclipse, but when I try to call the report, from the WebViewer that it is inside my tomcat server it don't work, i tried copying them to the viewer plugin folder but didnt worked.
I got some problems trying to attach the file in forum, for some reason the forum server wasnt responding (I checked all network restrictions and the problem wasnt here) so i sent an e-mail to you at jasonweathersby@windstream.net with my plugins attached.
JasonW
I just looked at the rotated text one and there are a couple of issues with the manifest
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",org.ec
lipse.birt.report.designer.core;bundle-version="2.3.1",org.eclipse.bi
rt.report.designer.ui;bundle-version="2.3.1",org.eclipse.birt.report.
designer.ui.views;bundle-version="2.3.1",org.eclipse.birt.report.engi
ne;bundle-version="2.3.1",org.eclipse.jface;bundle-version="3.4.0",or
g.eclipse.ui.forms;bundle-version="3.3.0"
The designer core plugin and the designer ui plugins and the org eclipse ui bundles are not in the birt runtime. You might just want to edit the mainifest manually after you export to remove those plugins. As a test I would also remove the bundle-version tags.
Jason
Gustavo.Av
Jason, i tried several ways and still dont work.
I added the jars to the runtime classpath and exported and tried.
Tried exporting all the packages, still nothing.
I dont know how u wanted me to edit the Manifest after i exported it, so I edited the manifest before exporting setting up the bundle versions equal to the ones that I got in the viewer plugins folder and still not working.
Gustavo.Av
Just tried removing the required bundles from the manifest before exporting and it didnt work either.
Btw wasnt Birt engine supposed to generate an exception when trying to render the unknown element ?
JasonW
I would not change it in the export wizard. Export the plugin as usual. Then make a copy of it. One copy goes in the designer. The other in the viewer. The viewer copy needs all dependencies removed except:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: BIRT extension tutorial_2 Plug-in
Bundle-SymbolicName: org.eclipse.birt.report.extension.tutorial_2;sing
leton:=true
Bundle-Version: 1.0.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Bundle-Vendor: Eclipse.org
Require-Bundle: org.eclipse.core.runtime,org.eclipse.birt.report.engine,org.eclipse.birt.data
Attached is the tutorial example from the source tree complete with a report sample two directories with the export for the designer and the runtime. This was version 2.6.1 of BIRT.
Jason
Gustavo.Av
Great, but Jason what about the problem with my label changed in the model source ? The other plugin that is on the zip file that i sent to u, is it related to dependencies too ?
How can I know what dependencies should i remove or not ?
JasonW
I assume it has the same issue. Look at the required plugins in the manifest and if they do not exist in the runtime eg WebViewer/web-inf/platform/plugins directory, remove them in only the copy you plan on deploying to the runtime. I would also remove version numbers.
Jason
Gustavo.Av
Got it !
I just noticed that in all birt plugins there is a jar of the working plugin itself, how and why is that done ?
JasonW
They are exported for the runtime viewer and apis. It is done using the export pde functionallity I believe. BTW looking at the issue on the second plugin again I do not think it is a dependency issue. I see you are replacing the model api plugin. Did you remove the old one? What does your new one do?
Jason
Gustavo.Av
Yeah i made a copy and placed outside the plugin folder and put my new one in the plugin folder. The new one works by getting the label value looking it up on a oracle database, on my table i have 2 fields (for testing) one named NAME and another one named LABEL. My class looks up on that table if my label text in the report is equal to the NAME column value if it matches my label text will swap its value for the data of the LABEL column.
JasonW
Why not just implement the rotated text item to do this?
Jason
Gustavo.Av
<blockquote class='ipsBlockquote' data-author="'JasonW'" data-cid="77184" data-time="1305749258" data-date="18 May 2011 - 01:07 PM"><p>
Why not just implement the rotated text item to do this?<br />
<br />
Jason<br /></p></blockquote>
I did it already, i wanted it working on both so when a report developer create a report there will be no chance that he implements the wrong label. But if you tell me there is no way to do this so no problem your support already helped me a lot ! <br />
Thanks Jason.
JasonW
You should be able to make changes to the model and export it and run it. I do not think it is the best thing to do because this will cause upgrade issues in the future. When BIRT releases a new version (June) you will have to re make your changes. If you use the report item extension you can just copy your plugin to the new install.
Jason
Gustavo.Av
You're right ... so next version coming up in June
great !
thanks for your help again Jason