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

markpope

Members
  • Posts

    11
  • Joined

  • Last visited

markpope's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I have create several reports in the folder structure /Project/Dev. The reports call sub-reports by hyperlinks. When I deploy the reports to an new folder, /Project/QA, the hyperlinks must be changed. I do not want to maintain 4 identical sets of reports because of the hyperlink. Is there a way to reference reports in a relative way?
  2. I have 24 $F{values} for each name and date. My SQL table is name, date, hour1, hour2, hour3,... I am prompting the user for name and date to display a single line graph made of 24 different hourly values. How do I pass $F{hour1} $F{hour2} .... $F{hour24} to value expressions?
  3. I have a table that contains a name, date, and 24 columns for hourly data samples. Must I use a group to create a line? If so, how do I configure the group?
  4. Thanks that worked. I have many reports that call other reports with the following type of tag: <hyperlinkParameterExpression><![CDATA["/Ironscale/Dev/AuditLogPayloadByRowID"]]></hyperlinkParameterExpression> The Dev part of the report path is one of several directories(folders) in the repository. When I use the JasperServer UI to copy reports to other folders they do not work properly. This is due to the subreports true path is now /Ironscale/QA/.... not /IronScale/Dev/... Is there a report global that should be used for this?
  5. I figured it out. Modify WEB-INF/jsp/DefaultJasperViewer.jsp with the following changes" Add the selectPage() Javascript function. Replace the second code block with the third. Code:<script type="text/javascript">function selectPage(){ var newpage=document.getElementById("newPage"); navigateToReportPage(parseInt(newpage.options[newpage.selectedIndex].text)-1);}</script><td align="center" nowrap="nowrap"> <spring:message code="jasper.report.view.page" arguments='<%= new Object[]{ new Integer(((Integer)request.getAttribute("pageIndex")).intValue() + 1), new Integer(((Integer) request.getAttribute("lastPageIndex")).intValue() + 1)} %>'/></td><td align="center" nowrap="nowrap"><form> Go to Page: <select id="newPage" onchange="selectPage()"> <c:forEach var="i" begin="1" end="${lastPageIndex+1}" step="1" varStatus ="status"> <c:choose> <c:when test="${i == pageIndex +1}"> <option selected="selected">${i}</option> </c:when> <c:otherwise> <option>${i}</option> </c:otherwise> </c:choose> </c:forEach> </select> </form> </td>
  6. If found the JSP that generates page navigation behavior. It is WEB-INF/jsp/DefaultJasperViewer.jsp. I'm not a JSP programmer but am trying to modify it to display a dropdown that allows the user to jump directly to any page.
  7. When my reports span 40+ pages it is inconvient for my customers to use the Next Page button. Is it possible to provide a drop down with all the page numbers that allows a user to move directly to any page?
  8. I would like to create hyperlinks in a report column that change the content of a sub-report attached to the same page. Is this possible?
  9. I've created two reports. The first report has a column of data that displays as hyperlinks. I created the hyperlink in iReport and added the following expression: "/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/Ironscale/AuditLogForID&standAlone=true&ParentFolderUri=/reports/Ironscale&Transaction_ID=" + $F{ID} Where $F{ID} is the Transaction_ID. In the second report I added a parameter by the same name. When I deploy both reports and click a hyperlink the second report fails to display. Is this the correct method for reports calling reports and passing data?
  10. Thanks, I did something similar with help of a friend. JasperServer/iReports rocks! Code: <authz:authentication operation="fullName"/><spring:message code="jsp.main.exclamation.mark"/> <c:set var="email" ><authz:authentication operation="emailAddress"/></c:set> <c:set var="email" value="${fn:split(email,'@')[1]}"/> <c:set var="domain" value="${fn:split(email,'.')[0]}"/> </authz:authorize> </td> <td width="135"><a href="http://www.${domain}.com"><img src="${pageContext.request.contextPath}/images/${domain}.gif" border="0" height="31" hspace="10" width="105"></a></td>
  11. I want to dynamically change the gif in the upper right corner where sourceforge is displayed. I would like a different gif displayed based on the user who is logged in. To match gifs to users I plan to add gifs to the image directory with the name of users domains(ex. bob@kodak.com -> kodak.gif) In main.jsp I found the following line that displays the user's name in the welcome message: <authz:authentication operation="fullName" /> I changed the operation value to "emailAddress" and the page now displays the user's email address in the welcome message. This proves that I have access to the email address. I need to capture this value to strip out the domain using Java/JSP and don't understand the langauge. How can I assign the value returned by <authz:authentication operation="emailAddress" /> to a variable? Such as: <%! String email = <authz:authentication operation="emailAddress" /> ; %> but this doesn't work.
×
×
  • Create New...