Example: Report input JSP file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <%@page import="java.util.*" %> <%@page import="com.ibm.commerce.tools.util.*" %> <%@page import="com.ibm.commerce.tools.xml.*" %> <%@include file="common.jsp" %> <%@include file="ReportStartDateEndDateHelper.jsp" %> <%@include file="ReportFrameworkHelper.jsp" %> <HTML> <HEAD> <%=fHeader%> <TITLE><%=reportsRB.get("OrderSummaryReportInputViewTitle")%></TITLE> <SCRIPT SRC="/wcs/javaScript/tools/common/Util.js"></SCRIPT> <SCRIPT SRC="/wcs/javaScript/tools/common/DateUtil.js"></SCRIPT> <SCRIPT SRC="/wcs/javaScript/tools/common/SwapList.js"></SCRIPT> <SCRIPT SRC="/wcs/javascript/tools/reporting/ReportHelpers.js"></SCRIPT> <SCRIPT> //////////////////////////////////////////////////////////////////// // Call the initialize routines for the various elements of the page //////////////////////////////////////////////////////////////////// function initializeValues() { onLoadStartDateEndDate("enquiryPeriod"); if (parent.setContentFrameLoaded) parent.setContentFrameLoaded(true); } //////////////////////////////////////////////////////////////////// // Call the save routines for the various elements of the page //////////////////////////////////////////////////////////////////// function savePanelData() { saveStartDateEndDate("enquiryPeriod"); ///////////////////////////////////////////////////////////////// // Specify the report framework particulars ///////////////////////////////////////////////////////////////// setReportFrameworkOutputView("DialogView"); setReportFrameworkParameter("XMLFile","reporting.OrderSummaryReportOutputDialog"); setReportFrameworkReportXML("reporting.OrderSummaryReport"); setReportFrameworkReportName("OrderSummaryReport"); ///////////////////////////////////////////////////////////////// // Specify the report specific parameters and save ///////////////////////////////////////////////////////////////// setReportFrameworkParameter("StartDate", returnStartDateAsJavaTimestamp("enquiryPeriod")); setReportFrameworkParameter("EndDate", returnEndDateAsJavaTimestamp("enquiryPeriod")); saveReportFramework(); return true; } //////////////////////////////////////////////////////////////////// // Call the validate routines for the various elements of the page //////////////////////////////////////////////////////////////////// function validatePanelData() { if (validateStartDateEndDate("enquiryPeriod") == false) return false; return true; } </SCRIPT> </HEAD> <BODY ONLOAD="initializeValues()" CLASS=content> <H1><%=reportsRB.get("OrderSummaryReportInputViewTitle") %></H1> <i><%=reportsRB.get("OrderSummaryReportDescription")%></i> <p> <DIV ID=pageBody STYLE="display: block; margin-left: 20"> <%=generateStartDateEndDate("enquiryPeriod", reportsRB, null)%> </DIV> </BODY> </HTML>Related concepts
Related tasks
Related reference