View Full Version: Crystal Report Viewer

LawsonTalk > Reporting (NEW!!) > Crystal Report Viewer


Title: Crystal Report Viewer


georgegraham - December 5, 2006 08:53 PM (GMT)
I seem to remember seeing a knowledge base article on this, but I can't find any documentation on it.

When viewing a published report in Reporting Suite, I want to limit the options on the Crystal viewer to users (i.e., I want to hide the tree group option).

Can anyone point me to this?

mnye - December 5, 2006 09:42 PM (GMT)
What version of RS are you on?

georgegraham - December 5, 2006 09:45 PM (GMT)
1.3 - we will be going to 9.0 in the next quarter...we are using Crystal 10

mnye - December 5, 2006 09:49 PM (GMT)
the option you are looking for is GroupTree=False. See the Reporting Services User Guide Page 115 for a list of all options. This needs to be placed in the URL that calls the report. There are a number of ways to do this. How are you allowing your users to run their reports?

hth,
matt

georgegraham - December 5, 2006 10:53 PM (GMT)
Actually those options I am aware of - and the GroupTree=false simply means that when the report displays it does not show the tree. However, this still leaves the icon on the viewer toolbar and the user can go up and override the URL setting.

What I am looking for is the ability to remove that icon from the toolbar outright...

mnye - December 5, 2006 11:29 PM (GMT)
that is the best I think you can hope for. I tried to find the reference KB article but couldnt find anything. If you are real brave, it looks like the file search.js is the file that builds the viewers group tree.

NOTE: THE FOLLOWING IS PURLY THEORETICAL

Search for a function called updateGroupTree. The first thing that this function does is to check if the current report has a group tree. If you can force a true result every time then it should just skip the whole process. The key word in that phrase is SHOULD. I am not recommending or suggesting you do this, just saying it might be possible.

Here is the code block that checks the report
CODE

if( !(document.all.hiddenTreeInfo) )
{
 //If not, just disable the buttons and go
 if( document.all.scrollup )
 {
  document.all.scrollup.style.display = "none";
 }
 if( document.all.scrolldown )
 {
  document.all.scrolldown.style.display = "none";
 }

 return;
}


example of how you could force a true result everytime

CODE

if( true==true )
{
 //If not, just disable the buttons and go
 if( document.all.scrollup )
 {
  document.all.scrollup.style.display = "none";
 }
 if( document.all.scrolldown )
 {
  document.all.scrolldown.style.display = "none";
 }

 return;
}


If you do decide to try this, backup the original file and let me know what happens.

regards,
matt

mnye - December 5, 2006 11:37 PM (GMT)
additionally, I doubt you are this lucky, but if there is no grouping in the report, obviously, there will be no group tree. :banghead:

hth,
matt




mnye - December 7, 2006 04:58 PM (GMT)
any resolution on this? did you try that hack?

georgegraham - December 7, 2006 05:01 PM (GMT)
No - we are pretty strict about customizations here so he decision was to leave the icon rather than put in a custom to remove it...

I was thinking that I read something before about an option that allows this to be removed...if I find it I will post back and let everyone know...might have been something from Business Objects directly...

Milo - December 7, 2006 08:07 PM (GMT)
George: If they're "pretty strict about customizations", is there any interest in my Lawson Change Control system?



Hosted for free by InvisionFree