Jump to content
We've recently updated our Privacy Statement, available here ×

prabuddha.kulatunga

Members
  • Posts

    17
  • Joined

  • Last visited

prabuddha.kulatunga's Achievements

  1. Thanks for the reply! please response here since I don't have Professional subsciption plan. Thanks is Advance!
  2. I moved from 7.8.0 jasper server version to 8.2.0 version. but, calendar translations not changing as usual when create new calendar.properties files according to locale. but 7.8.0 version support that locale translations. I mean calender date picker popup (on inputControls section when we add Date type input control as a parameter from jasper server) translations according to selected localization on the jasper login page. for default jasper server aready existing locales either not change calender translations. it is always English. I checked with all jasper server 8 sub versions and non of them worked. Is this a bug? or is there any solution? please help me. Thanks in advance!
  3. Sometimes Jasperserver 7.1.0 shows an error (in the jasperserver logfile) as, 2020-01-07 08:07:30,538 ERROR LazyInitializationException,http-nio-8081-exec-8:42 - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session that error displays when I log in to the jasperserver and also when I select my custom menu item. but if that error display, I can refresh the page and login and menu is starts working as normal. also there is no specific time for that error. sometimes it displays suddenly. below question also has my problem. but for a different jasperserver version. I tried below solution also from there. Click here to see related question already asked by someone. I added new property to applicationContext.xml file under <bean id="permissionsPrefetcher" class="com.jaspersoft.jasperserver.api.metadata.user.service.impl.PermissionsPrefetcher"> as <property name="minimumPrefetch" value="30"/> and restarted jasperserver. (Before I used jasperserver 6.4.2 version. but this error not appeared in that.)
  4. use jasperreports-6.4.2.jar to fix that issue. Windows OS path to jar is Jaspersoftjasperreports-server-cp-7.1.0apache-tomcatwebappsjaspermysqlWEB-INFlib
  5. How to Change Report Names and Navigation Tree when change Locale from Jasper Server? (I Use Jasper Server Version 7.1)
  6. Can we change the order of input controls after created them? Is there any feature to do it for the new Jasper Server version? (I use Jasper Server 7.1 version)
  7. On loading.jsp file in the Jasper Server installation directory comment below part <t:insertTemplate template="/WEB-INF/jsp/templates/container.jsp"> <t:putAttribute name="containerID" value="${not empty containerID ? containerID : 'loading'}"/> <t:putAttribute name="containerClass">panel dialog loading overlay moveable centered_horz centered_vert ${containerClass}</t:putAttribute> <t:putAttribute name="containerTitle"><spring:message code='jsp.wait'/></t:putAttribute> <t:putAttribute name="headerClass" value="mover"/> <t:putAttribute name="bodyContent" > <p class="message" role="alert" aria-live="assertive"><spring:message code='jsp.loading'/></p> <button id="cancel" class="button action up"> <span class="wrap"><spring:message code="button.cancel"/></span><span class="icon"></span> </button> </t:putAttribute></t:insertTemplate>[/code]When you do like above example, loading window will be disappear from everywhere. To remove loading for a specific report, put two div tags with id attribute. then hide the div using js code. Below I shown the example; <div id="prabu"> <div id="x3"> <t:insertTemplate template="/WEB-INF/jsp/templates/container.jsp"> <t:putAttribute name="containerID" value="${not empty containerID ? containerID : 'loading'}"/> <t:putAttribute name="containerClass">panel dialog loading overlay moveable centered_horz centered_vert ${containerClass}</t:putAttribute> <t:putAttribute name="containerTitle"><spring:message code='jsp.wait'/></t:putAttribute> <t:putAttribute name="headerClass" value="mover"/> <t:putAttribute name="bodyContent" > <p class="message" role="alert" aria-live="assertive"><spring:message code='jsp.loading'/></p> <button id="cancel" class="button action up"> <span class="wrap"><spring:message code="button.cancel"/></span><span class="icon"></span> </button> </t:putAttribute> </t:insertTemplate> </div>[/code]Then add below javascript code; <script> var url = window.location.href; //take current tab url var dash = 'http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2FMy_Reports&reportUnit=%2FMy_Reports%2FDashboard_Report_Original__2_&standAlone=true'; if(url === dash ){ removeElement("x3"); } function removeElement(elementId) { // Removes an element from the document var element = document.getElementById(elementId); element.parentNode.removeChild(element); }</script>[/code]In my case, I use a report as my dashboard and I refresh it in every 1 minute.So I want to remove loading window for my dashboard report only. On js code, url is current url from the browser. dash is the my dashboard report url.
  8. I want to remove the loading window, that appears when report loads/refresh. How to do this? Can anyone tell me the file name in the jasper server installation directory that should I change at least?
  9. Found a way by myself. Go to ViewReport.jsp on jasper server installation files. Then add below code for it.(Actually we use java script to do this.) <script type="text/javascript"> var url = window.location.href; //take current tab url var dash = 'http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&_flowId=viewReportFlow&ParentFolderUri=%2FMy_Reports&reportUnit=%2FMy_Reports%2FDashboard_Report_Original__2_&standAlone=true'; if(url == dash ){ setTimeout(function(){ window.location.reload(1); }, 5000); } </script> url is the current display report url. dash is the url that we want to refresh. otherwise all the reports will be refresh withn every 5seconds. 5000 is time gap want to refresh. restart the jasper server. that's it..
×
×
  • Create New...