Calendar popup fails in CR IX R2 java viewer

I am using the default java viewer to view reports in a browser. When a date parameter is required the icon for the popup calendar appears as expected but clicking on this produces a 404 error although the calendar.html file is in the expected place. Has anyone else had a similar problem with the default viewer?


georgey (BOB member since 2007-03-16)

Do you find a solution?

I have a similar problem, but the calendar button is not showing at all!
I just get edit boxes for year, month and day


wally (BOB member since 2007-03-19)

I discovered that my build file was excluding the htm/html files required from the crystalviewers115 directory. I removed these excludes from the build script and everything was fine. It sounds as though you might be missing other files from crystalviewers115?

George


georgey (BOB member since 2007-03-16)

Georg

When you say build file, what do you mean? Location?

The crystalviewers115 directory, is this the one:
C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11

or
C:\Program Files\Business Objects\common\3.5\crystalreportviewers115

Chris


wally (BOB member since 2007-03-19)

Crystalviewers115 is for CR XI Release 2 . Crystalviewers115 is for CR XI Release 1.
The latter gives “slightly” better java support through the JRC classes.

The build is an ant build file that we use to build the project, if you aren’t using ant then you won’t have one. However, the symptom seems to suggest that the viewer isn’t finding some of the required files from Crystalviewersxxx
.

Does the viewer work correctly otherwise. Do you get the print and save icons etc?

George


georgey (BOB member since 2007-03-16)

Not using ant.

Viewer appears to work correctly otherwise. Can manually enter parameter and the report returns the correct data.

Get the print export toolbar and they work fine.


wally (BOB member since 2007-03-19)

forgot to mention I’m using Infoview with BO X1 R2 SP2


wally (BOB member since 2007-03-19)

I don’t know much about Infoview. I am using the JavaReportingComponent API. However, rereading your first post, I think the java viewer only offers the calendar selector automatically if you are requesting a datetime or date. It sounds as if you are asking for day month and year parameters separately?


georgey (BOB member since 2007-03-16)

Have done a test with a blank report and dropped two parameters onto it, one as a Date and the other as DateTime. Both give me edit boxes instead of the calendar


wally (BOB member since 2007-03-19)

Sorry. This must ber an infoview/CR specific problem. I don’t have to anything in a jsp to get the calendar to appear appropriately. The regular viewer does it all.

JSP code (not too useful to you) is:

//Refer to the Viewers SDK in the Java Developer Documentation for more information on using the CrystalReportViewer
//API. 
CrystalReportViewer viewer = new CrystalReportViewer();
viewer.setOwnPage(true);
viewer.setOwnForm(true);
viewer.setPrintMode(CrPrintMode.ACTIVEX);
viewer.setDisplayGroupTree(false); 

//Get the report source object that this viewer will be displaying.
Object reportSource = session.getAttribute("reportSource");
viewer.setReportSource(reportSource);


//Render the report.
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null); 

Good luck.

George


georgey (BOB member since 2007-03-16)

The only solutions is to change the default java viewer to DHTML or ACTIVE X viewer.

  1. Click on Personalize info view or prefrences.
  2. In Preferences under crystal report tab set view my report using DHTML or ACTIVE X viewer :wink: .

Thanks
Phil


phil2002 (BOB member since 2006-06-04)

Unfortunately activexs are not allowed to be run on the client desktops.

In intial testing we wanted to use the activex viewer, but that was squashed! :cry:

Have tried the Advanced DHTML viewer and that works okay, but again uses an activex print client :frowning:


wally (BOB member since 2007-03-19)