Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need busy mouse pointer in viewer.

Status
Not open for further replies.

AurobindoSaha

Programmer
Mar 11, 2004
57
US
We use Crystal Reports 8.5, Crystal Enterprise 8.0, Oracle 8i, DHTML viewer. We have reports in which the first part displays the count of telephone numbers in each state and in clicking on particular state it shows the actual details of telephone numbers in that state. So the first part (count) of the report cannot be completed until the data for the whole report is fetched. We use eportfolio in DHTML viewer to view the report.

The requirment is to show a progress bar or mouse pointer to turn as hourglass when the Crystal Engine is busy reading the records from database and processing that data, so that the user knows the records are computed by Crystal Engine.

Anyone can throw light how to implement this with our current setup (Crystal report 8.0 and DHTML Viewer). Can we modify the csp pages for this. If yes, please suggest in details.

Thanks and Regards
Aurobindo
 
Hi,

I don't use CE 8.0 but it should be possible (i'm using CE 10).

Find the csp page that opens the report (mine is rptviewer.csp).

Change the body tag to include an ID like this:
<body id=body_id onload=init()>

Then change the init function to alter the cursor style to "wait" - something like this:
body_id.style.cursor='wait';

e.g.
Response.Write("function init() { document.forms['viewForm'].submit(); body_id.style.cursor='wait';}" + vbCRLF);
 
Hi KingfisherINC
Thanks for your suggession
But i liked to know any property or a flag that CE uses to indicate the data is currently read or processed. Say a boolean flag which is set when the data is read and processed and reset when that action is complete. The suggession that you have said will turn the pointer into hourglass, but how will you know that now the processing is complete and change the pointer into normal Windows pointer. For that code we need some property or CE that keeps a track when the data is read or processed.

Thanks and Regards
Aurobindo
 
Hi,

I think i'd still do it sequentially; change the cursor, call the report, reset the cursor.

When I tried it in CE10 the report viewer set the cursor back without needing to code body_id.style.cursor=''; - Did you try it?

This is different from continually querying the APS to get the status of a job, which is not what I thought you were asking? - Is that what you want? this would be more complicated (but doable, I think). However you'd get the same result (maybe I'm missing the point).
 
Hi KingfisherINC ,
Thanks for your reply. But there is a bit confusion.

You see for on demand report (where user has to supply input parameters) there are two pages to be displayed.

First in e portfolio if we select the report and click go the parameter page gets displayed. Your code helps to get the hourglass at that time. In my case the request goes to display the page viewrpt.cwr. The pointer turns to normal Windows arrow after displaying the parameter page.

Second, after selecting the parameters user clicks "View Report" button. Now how can I control changing the pointer to hourglass? i.e. I want the hourglass on click of the "View Report" button when the page gets changed from the parameter page to the actual report preview window.

Thanks and Regards
Aurobindo
 
The CE 8.0 DHTML viewer isn't great.

I'd suggest that you toss the DHTML viewer and user the ActiveX viewer - or start looking at upgrading to CE 10.

Viewers are much better in CE-10, but I still prefer the ActiveX.
 
But Dude
Thats a corporate discission. As of now we have to find a solution with surrent setup.
i.e.
Cystal Report 8.5, Crystal Enterprise 8i, Oracle 8i and DHTML viewer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top