Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

jsf reportPageViewer shows report data in "View page source", but not on webpage

$
0
0

Using JSF 2.2.5, a remote crystal report application server 2011.

 

I got around a problem with the parameter prompts where the OK button wouldn't do anything by setting the parameters in the code like so:

                parameterFields="#{reports.parameterFields}"

 

This, and entering in database logon info manually or in code got me to the point where the report viewer is displayed, but the 'page' appears blank, like so:
soma.jpg

 

Yet if one views the page source, the report data is there:

 

  report viewer goes here:   <form id="reportviewer" name="reportviewer" method="post" action="/Janus/reports.xhtml" enctype="application/x-www-form-urlencoded"><input type="hidden" name="reportviewer" value="reportviewer" /><link rel="stylesheet" type="text/css" href="crystalreportviewers/js/crviewer/images/style.css"> <script type="text/javascript" language="JavaScript"> <!-- 

crv_config = {"lang":"en","needFallback":true,"useAsync":true} 

//--> </script> <script language="JavaScript" src="crystalreportviewers/js/crviewer/crv.js"></script> <script type="text/javascript" language="JavaScript"> <!-- 

if (typeof bobj == 'undefined') {

  document.write(  '<STYLE type=\"text/css\">' +  '.crExceptionBorder {background-color: #A3A3BC;}' +  '.crExceptionHeader {background-color: #E4E4EC; color: black; font-family: Arial; font-weight: bold; font-size: 11pt;}' +  '.crExceptionElement {background-color: #E4E4EC; border-top:1px solid #FFFFFF;}' +  '.crExceptionText {color: black; font-family: Arial; font-size: 11pt;}' +  '</STYLE>' +  '<table class=\"crExceptionBorder\" width=\"100%\" cellspacing=1 cellpadding=0 border=0>' +  ' <tr><td class=\"crExceptionHeader\">The viewer was unable to find the resources required to render the report.</td></tr>' +  ' <tr><td>' +  ' <table width=\"100%\" border=0 cellpadding=5 cellspacing=0>' +  ' <tr><td class=\"crExceptionElement\">' +  ' <table border=0 cellpadding=5 cellspacing=0>' +  ' <tr><td><span class=\"crExceptionText\">Please check the following to resolve the issue.<br>1. Verify that crystalreportviewers/ is accessible to your WebApp and is the correct path to the viewer resources.<br>2. You may customize this location by altering the crystal_image_uri and crystal_image_use_relative properties in the web.xml.<br>3. Validate that the file crv.js exists at crystalreportviewers/js/crviewer/crv.js.</span></td></tr>' +  ' </table>' +  ' </td></tr>' +  ' </table>' +  ' </td></tr>' +  '</table>' )

}

 

//--> </script> <script type="text/javascript" language="JavaScript"> <!-- 

bobj.crv.writeWidget({"args":{"id":"CrystalViewer","visualStyle":{"height":"750px","width":"1000px","left":"0px","top":"0px"},"layoutType":"fixed"},"children":[{"args":{"id":"CrystalViewer_toptoolbar"},"children":[{"args":{"isDisabled":false,"id":"CrystalViewer_toptoolbar_export"},"cons":"bobj.crv.newExportButton"},{"args":{"isDisabled":false,"id":"CrystalViewer_toptoolbar_print"},"cons":"bobj.crv.newPrintButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_panel"},"cons":"bobj.crv.newPanelToggleButton"},{"args":{"id":"CrystalViewer_toptoolbar_grouptree"},"cons":"bobj.crv.newGroupTreeToggleButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_firstPg"},"cons":"bobj.crv.newFirstPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_prevPg"},"cons":"bobj.crv.newPrevPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_selectPg","curPage":1,"numPages":"1"},"cons":"bobj.crv.newSelectPageControl"},{"args":{"id":"CrystalViewer_toptoolbar_nextPg"},"cons":"bobj.crv.newNextPageButton"},{"args":{"id":"CrystalViewer_toptoolbar_lastPg"},"cons":"bobj.crv.newLastPageButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_refresh"},"cons":"bobj.crv.newRefreshButton"},{"args":{"id":"CrystalViewer_toptoolbar_zoom","initialZoom":85},"cons":"bobj.crv.newZoomControl"},{"args":{"id":"CrystalViewer_toptoolbar_logo","layoutAlign":"right"},"cons":"bobj.crv.newLogoButton"},{"cons":"bobj.crv.newToolbarSeparator"},{"args":{"id":"CrystalViewer_toptoolbar_search","searchText":""},"cons":"bobj.crv.newSearchTextControl"}],"cons":"bobj.crv.newToolbar"},{"args":{"id":"CrystalViewer_printUI","isActxPrinting":false},"cons":"bobj.crv.newPrintUI"},{"args":{"id":"CrystalViewer_exportUI","availableFormats":[{"name":"Crystal Reports (RPT)","value":"CrystalReports"},{"name":"PDF","value":"PDF"},{"name":"Microsoft Excel (97-2003)","value":"MSExcel"},{"name":"Microsoft Excel (97-2003) Data-Only","value":"RecordToMSExcel"},{"name":"Microsoft Word (97-2003)","value":"MSWord"},{"name":"Microsoft Word (97-2003) - Editable","value":"EditableRTF"},{"name":"Rich Text Format (RTF)","value":"RTF"},{"name":"Separated Values (CSV)","value":"CharacterSeparatedValues"},{"name":"XML","value":"XML"}],"canSupportRange":true},"cons":"bobj.crv.newExportUI"},{"args":{"displayDrilldownTab":true,"initTabIdx":0},"children":[{"args":{"isMainReport":true,"label":"Main Report","viewStateId":"1"},"children":[{"args":{"content":"\r\n<style> div.crystalstyle div {position:absolute; z-index:25}\r\n div.crystalstyle a {text-decoration:none}\r\n div.crystalstyle a img {border-style:none; border-width:0}\r\n\t.fc1405538317513-0 {font-size:8pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-1 {font-size:15pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-2 {font-size:6pt;color:#000000;font-family:Arial;font-weight:normal;text-decoration:underline;}\r\n\t.fc1405538317513-3 {font-size:6pt;color:#000000;font-family:Arial;font-weight:normal;}\r\n\t.fc1405538317513-4 {font-size:8pt;color:#000000;font-family:Arial;font-weight:bold;}\r\n\t.ad1405538317513-0 {border-color:#000000;border-left-width:0;border-right-width:0;border-top-width:0;border-bottom-width:0;}\r\n<\/style><div id=\"CrystalViewercridreportpage\" name=\"CrystalViewercridreportpage\" class=\"crystalstyle\" style=\"width:652;height:856;position:absolute;visibility:hidden;\"><div style=\"z-index:15;top:251px;left:14px;border-color:#000000;border-style:solid;border-width:0px;border-top-width:1px;width:639px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,95px,0px);top:0px;left:0px;width:653px;height:95px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:0px;left:0px;width:295px;height:34px;\"><img src=\"CrystalReportViewerHandler?dynamicimage=crystal14055383175307535459024881645798.png\" border=\"0\" width=\"295px\" height=\"34px\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:34px;left:0px;width:279px;height:13px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">S0010 - Transfer Details <\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:75px;left:0px;width:279px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Store #: <\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:61px;left:0px;width:319px;height:13px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Report Printed: 7/16/2014 at 12:18:34PM<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:48px;left:0px;width:605px;height:13px;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-0\">Report For Period: 07/01/2014 To 07/01/2014<\/span><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,31px,0px);top:95px;left:0px;width:653px;height:31px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:95px;left:0px;width:456px;height:31px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-1\">DEPARTMENT: <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,20px,0px);top:125px;left:0px;width:653px;height:20px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:146px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,26px,0px);top:158px;left:0px;width:653px;height:26px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:41px;width:51px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">DATE<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:163px;width:41px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">CONF #<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:306px;width:116px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">SUBTOTAL<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:102px;width:46px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TIME<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:258px;width:130px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TM NAME<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:158px;left:211px;width:44px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-2\">TM ID<\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,27px,0px);top:185px;left:0px;width:653px;height:27px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:198px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\">Destination: /SUPPLY<\/span><\/div><\/div><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:185px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\">Source: /SUPPLY<\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,14px,0px);top:212px;left:0px;width:653px;height:14px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:212px;left:57px;width:421px;height:14px;\"><div style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-3\"> - <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,12px,0px);top:226px;left:0px;width:653px;height:12px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,14px,0px);top:237px;left:0px;width:653px;height:14px;\"><\/div>\r\n<div class=\"ad1405538317513-0\" style=\"top:237px;left:102px;width:319px;height:14px;\"><div align=\"right\" style=\"position:relative;padding-top:1px;padding-left:1px;line-height:1.0;\"><div style=\"position:relative;\"><span class=\"fc1405538317513-4\">SubTotal: <\/span><\/div><\/div><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:251px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,13px,0px);top:263px;left:0px;width:653px;height:13px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,35px,0px);top:276px;left:0px;width:653px;height:35px;\"><\/div>\r\n<div style=\"z-index:3;clip:rect(0px,653px,38px,0px);top:819px;left:0px;width:653px;height:38px;\"><\/div>\r\n<\/div>","bottomMargin":20,"height":857,"rightMargin":20,"width":653,"leftMargin":20,"documentView":"PrintLayout","topMargin":20},"cons":"bobj.crv.newReportPage"},{"args":{"width":"200.0px","initialViewType":"GroupTree"},"children":[{"args":{"label":"Group Tree","enableDrilldown":false,"enableNavigation":true,"toolPanelType":"GroupTree"},"cons":"bobj.crv.newGroupTree"},{"args":{"label":"Interactive Parameters"},"cons":"bobj.crv.params.newParameterPanel"}],"cons":"bobj.crv.newToolPanel"}],"cons":"bobj.crv.newReportView"}],"cons":"bobj.crv.newReportAlbum"},{"cons":"bobj.crv.newReportProcessingUI"}],"cons":"bobj.crv.newViewer"}); 

//--> </script> <script type="text/javascript" language="JavaScript"> <!-- 

bobj.crv.stateManager.setComponentState('CrystalViewer',{"1":{"gpTreeCurrentExpandedPaths":{},"rptViewLabel":"Main Report","gpTreeLastExpandedPath":"","lstPgNum":1,"isLstPgNumKn":true,"pageNum":1},"common":{"rptAlbumOrder":["1"],"enblDrllDwn":false,"zoom":85,"width":1000,"allowOverflow":false,"paramOpts":{"numberFormat":{"decimalSeperator":".","groupSeperator":","},"dateTimeFormat":"M/d/yyyy HH:mm:ss","timeFormat":"HH:mm:ss","dateFormat":"M/d/yyyy","booleanFormat":{"false":"False","true":"True"},"maxNumParameterDefaultValues":200},"screenResolution":96,"productLocale":"en_US","resourcePrefix":"crystalreportviewers/","toolPanelType":"GroupTree","RptSrcFacName":"com.crystaldecisions.sdk.occa.report.application.reportsourcefactory.RasReportSourceFactory","iactParams":[{"isOptionalPrompt":false,"_usage":57,"allowNullValue":false,"isDataFetching":true,"allowMultiValue":true,"allowDiscreteValue":true,"defaultValues":[],"description":"Select store","value":[103610],"valueDataType":"n","attributes":{"IsDCP":true,"PGURI":"eor://BERLIN-B.owfg.com:6400/AXDYjQVqqKxJpFxfC5SWpec"},"allowRangeValue":false,"allowCustomValue":false,"paramName":"Store","isEditable":true,"defaultDisplayType":0}],"height":750,"servletUri":"CrystalReportViewerHandler","reqCtx":{"logOnInfo":"PENyeXN0YWxSZXBvcnRzLkNvbm5lY3Rpb25JbmZvcyB4bWxucz0iaHR0cDovL3d3dy5jcnlzdGFs\r\nZGVjaXNpb25zLmNvbS9yZXBvcnQiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9Y\r\nTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxT\r\nY2hlbWEiIHhzaTp0eXBlPSJDcnlzdGFsUmVwb3J0cy5Db25uZWN0aW9uSW5mb3MiIHZlcnNpb249\r\nIjIiPjxDb25uZWN0aW9uSW5mbyB4c2k6dHlwZT0iQ3J5c3RhbFJlcG9ydHMuQ29ubmVjdGlvbklu\r\nZm8iIGlkPSIxIj48VXNlck5hbWU+c2ltX3JwdDwvVXNlck5hbWU+PFBhc3N3b3JkPnowMDA3N0Zd\r\nWlNcQjRAQDAwPC9QYXNzd29yZD48QXR0cmlidXRlcyB4c2k6dHlwZT0iQ3J5c3RhbFJlcG9ydHMu\r\nUHJvcGVydHlCYWciIGlkPSIyIj48UHJvcGVydHk+PE5hbWU+RGF0YWJhc2UgTmFtZTwvTmFtZT48\r\nVmFsdWUgVmFyaWFudFR5cGU9IlN0cmluZyI+PC9WYWx1ZT48L1Byb3BlcnR5PjxQcm9wZXJ0eT48\r\nTmFtZT5TZXJ2ZXIgTmFtZTwvTmFtZT48VmFsdWUgVmFyaWFudFR5cGU9IlN0cmluZyI+U0lNUlBU\r\nMV9OQVRJVkUuT1dGRy5DT008L1ZhbHVlPjwvUHJvcGVydHk+PC9BdHRyaWJ1dGVzPjxLaW5kPlNR\r\nTDwvS2luZD48L0Nvbm5lY3Rpb25JbmZvPjwvQ3J5c3RhbFJlcG9ydHMuQ29ubmVjdGlvbkluZm9z\r\nPg==","prptInfo":"<CrystalReports.Fields xmlns=\"http://www.crystaldecisions.com/report\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xsi:type=\"CrystalReports.Fields\" version=\"2\"><Field xsi:type=\"CrystalReports.ParameterField\" id=\"1\"><Name>Department<\/Name><Description><\/Description><Type>xsd:decimal<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"2\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"3\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"4\"><Value VariantType=\"Double\">2209.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>false<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionOnly<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><Field xsi:type=\"CrystalReports.ParameterField\" id=\"5\"><Name>From_Date<\/Name><Description><\/Description><Type>xsd:date<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"6\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"7\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"8\"><Value xsi:type=\"dateTime\">2014-7-1T0:0:0.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>true<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionAndValue<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><Field xsi:type=\"CrystalReports.ParameterField\" id=\"9\"><Name>To_Date<\/Name><Description><\/Description><Type>xsd:date<\/Type><Length>0<\/Length><Attributes xsi:type=\"CrystalReports.PropertyBag\" id=\"10\"><Property><Name>IsDCP<\/Name><Value VariantType=\"Boolean\">false<\/Value><\/Property><\/Attributes><AllowMultiValue>false<\/AllowMultiValue><CurrentValues xsi:type=\"CrystalReports.Values\" id=\"11\"><Value xsi:type=\"CrystalReports.ParameterFieldDiscreteValue\" id=\"12\"><Value xsi:type=\"dateTime\">2014-7-1T0:0:0.0<\/Value><\/Value><IsNoValue>false<\/IsNoValue><\/CurrentValues><ParameterType>ReportParameter<\/ParameterType><AllowCustomCurrentValues>true<\/AllowCustomCurrentValues><AllowNullValue>false<\/AllowNullValue><DefaultValueSortOrder>NoSort<\/DefaultValueSortOrder><DefaultValueSortMethod>BasedOnValue<\/DefaultValueSortMethod><ValueRangeKind>Discrete<\/ValueRangeKind><Usage>DataFetching,InUse<\/Usage><DefaultValueDisplayType>DescriptionAndValue<\/DefaultValueDisplayType><IsOptionalPrompt>false<\/IsOptionalPrompt><\/Field><\/CrystalReports.Fields>"},"reportSourceSessionID":"com.crystaldecisions.report.web.viewer.RPT_SRC:CrystalViewer1484296940","toolPanelWidth":200,"toolPanelWidthUnit":"px"},"curViewId":"1"}); 

//--> </script> <script type="text/javascript" language="JavaScript"> <!-- 

new bobj.crv.ViewerListener('CrystalViewer', new bobj.crv.FacesAdapter('reportviewer', 'CrystalReportViewerHandler')); 

//--> </script>   ^   <input type="hidden" name="javax.faces.ViewState" id="j_id1:javax.faces.ViewState:0" value="8699192975832549599:-7190272799067789315" autocomplete="off" /></form>

Viewing all articles
Browse latest Browse all 893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>