How set the Dashboards on the user home page ?

0

I have used sub-reports to get a multi-panel look and feel for a report that fits on a single screen,but i don't know how show this report on the user's home page ?

somebody help me!

 



Post Edited by Lucian Chiriţă at 09/22/08 07:58
wengjianqing's picture
Joined: Aug 22 2008 - 5:19am
Last seen: 12 years 8 months ago

9 Answers:

0

Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report..


Regards,
Lucian

lucianc's picture
7412
Joined: Jul 17 2006 - 1:10am
Last seen: 1 week 2 days ago
0

lucianc
Wrote:
 

Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report..


Regards,
Lucian

Hi,lucianc

I have changed the jasperserver-servlet.xml, but when Start JasperServer, got this exception:  

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 96 in XML document from ServletContext resource [/WEB-INF/jasperserver-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "reportUnit" must end with the ';' delimiter.

I used the URI is " /sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure".

"rwerewrw" is the name of report.

Maybe, this uri is wrong!

So,how can i get the URI of the dashboard report?

Thanks in advance!

Code:
        <property name="homePageByRole">
            <list>
	       <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value>                
               <value>ROLE_USER|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value>
            </list>
        </property></td></tr></tbody></table>
wengjianqing's picture
Joined: Aug 22 2008 - 5:19am
Last seen: 12 years 8 months ago
0

lucianc
Wrote:
 

Edit jasperserver/WEB-INF/jasperserver-servlet.xml, search for "homePageByRole" and change the ROLE_USER or ROLE_ADMINISTRATOR home page to flow.html?_flowId=viewReportFlow&reportUnit=..URI of the dashboard report..


Regards,
Lucian

Hi,lucianc

I have changed the jasperserver-servlet.xml, but when Start JasperServer, got this exception:  

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 96 in XML document from ServletContext resource [/WEB-INF/jasperserver-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "reportUnit" must end with the ';' delimiter.

 

 

I used the URI is " /sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure".

"rwerewrw" is the name of report.

Maybe, this uri is wrong!

So,how can i get the URI of the dashboard report?

Thanks in advance!

Code:
        <property name="homePageByRole">
            <list>
	       <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value>                
               <value>ROLE_USER|redirect:/flow.html?_flowId=viewReportFlow&reportUnit=/sysconfigure/rwerewrw&standAlone=true&ParentFolderUri=/sysconfigure</value>
            </list>
        </property></td></tr></tbody></table>
wengjianqing's picture
Joined: Aug 22 2008 - 5:19am
Last seen: 12 years 8 months ago
1

This is probably caused by "&" characters in the URIs.  Try to either encode them as "&amp;", or put the URIs into <![CDATA[..]]> sections.

Regards,

Lucian

lucianc's picture
7412
Joined: Jul 17 2006 - 1:10am
Last seen: 1 week 2 days ago
0
thanks!
wengjianqing's picture
Joined: Aug 22 2008 - 5:19am
Last seen: 12 years 8 months ago
0

Hi All! 
 

I made the changes the jasperserver-servlet.xml inorder to see my Own dashboard after the use login............... but still i am not able to my reports/dashboard after user login.

Should i need to make some config. changes in another files too....

                            

yashdeep's picture
Joined: Oct 6 2008 - 1:03am
Last seen: 12 years 7 months ago
0

Could you explain again:

you can see your own dashbaord after changing jasperserver-servlet.xml, "but still i am not able to my reports/dashboard after user login"

 

Sherman

Jaspersoft

swood's picture
2610
Joined: Jun 21 2006 - 12:48pm
Last seen: 8 years 6 months ago
0

CDATA worked for me thx ! This is my changement an it works. For those who are driving crazy in finding the solution

 

 <bean id="homePageByRole" class="java.util.ArrayList">
        <constructor-arg index="0" type="java.util.Collection">
            <list>
                <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=searchFlow</value>
<!--                <value>ROLE_USER|redirect:/flow.html?_flowId=searchFlow</value> -->
                <value>ROLE_USER|redirect:<![CDATA[flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2F&reportUnit=%2F$
 
            </list>
        </constructor-arg>
    </bean>
 
dariogambi's picture
Joined: Apr 2 2016 - 4:40pm
Last seen: 11 months 3 weeks ago
0

CDATA worked for me thx ! This is my changement an it works. For those who are driving crazy in finding the solution

 

 <bean id="homePageByRole" class="java.util.ArrayList">
        <constructor-arg index="0" type="java.util.Collection">
            <list>
                <value>ROLE_ADMINISTRATOR|redirect:/flow.html?_flowId=searchFlow</value>
<!--                <value>ROLE_USER|redirect:/flow.html?_flowId=searchFlow</value> -->
                <value>ROLE_USER|redirect:<![CDATA[flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2F&reportUnit=%2F$
 
            </list>
        </constructor-arg>
    </bean>
 
dariogambi's picture
Joined: Apr 2 2016 - 4:40pm
Last seen: 11 months 3 weeks ago
Feedback