| Birt Report Viewer Customization- Yet another question [message #959355] |
Fri, 26 October 2012 12:58  |
birt 2010 Messages: 11 Registered: October 2012 |
Junior Member |
|
|
I am developing report application for two different companies. So ideally on the report viewer I would like to have different look and feeling. So if I am modifying framefragment.jsp( as suggested on the forum), how to maintain different look and feel? One idea is to keep two copies of framefragment.jsp, but I am not sure how to call specific one. Any ideas?
Please let me know
|
|
|
|
|
| Re: Birt Report Viewer Customization- Yet another question [message #963105 is a reply to message #963081] |
Mon, 29 October 2012 11:28   |
birt 2010 Messages: 11 Registered: October 2012 |
Junior Member |
|
|
Thanks Jason. The difference is, since it belongs to two different companies, I am trying to put different logos on each viewer page.
If having two different framesefragment.jsp is difficult then, I could use single page.
Say I have HTML landing page for each company. When user clicks on a link specific to the compnay, I would like to pass custom tag saying "_company:xyz" "-company:ABC" and check for the company in the framesetfragment.jsp. So the alternate question is, can I pass my custom parameters when calling "/birt-viewer/frameset?__report=myreport.rptdesign&"
The idea is to access these custom parameters in framesetfragment.jsp. However I am not able to retrieve any attributes passed. Tried to use the following code logic to see the parameters passed.
<%=
Enumeration attrs = request.getAttributeNames();
while(attrs.hasMoreElements()) {
System.out.println(attrs.nextElement());
}
%>
Getting errors on framesetfragment.jsp saying that the Enumeration is not recognized.
I wish there is a document that explains this configuration, however experience folks like you are helping a lot. Please let me know if you have any way to handle my requirement. I really do not want to run a different viewer application for each company.
|
|
|
|
|
|
| Re: Birt Report Viewer Customization- Yet another question [message #963220 is a reply to message #963169] |
Mon, 29 October 2012 12:56   |
birt 2010 Messages: 11 Registered: October 2012 |
Junior Member |
|
|
Hmm. I know what I did wrong "<%=" in my code was messing up. It should have been "<%".
I tried your snippet, I do see the attributes. Now I am getting the following error.
SEVERE: Servlet.service() for servlet [ViewerServlet] in context with path [/birt-viewer] threw exception [org.apache.jasper.JasperException: org.apache.jasper.JasperException: org.apache.jasper.JasperException: org.apache.jasper.JasperException: javax.servlet.ServletException: File "/webcontent/birt/pages/parameter/HiddenParameterFragment.jsp" not found] with root cause
javax.servlet.ServletException: File "/webcontent/birt/pages/parameter/HiddenParameterFragment.jsp" not found
I am using Tomcat 7.0. I do not see the folder ../pages/parameter in my install.
[Updated on: Mon, 29 October 2012 13:48] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05269 seconds