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!

Control Keys

Status
Not open for further replies.

moonknightt

Programmer
May 7, 2002
92
US
Is there any way to disable the control keys in crystal reports or crystal enterprise? for example ctrl N which enables another browser to come up?

Thanks alot
 
Not that I'm aware of, what you're attempting to do is dangerous in almost any environment.

If the concern is that users are popping open a second browser, I would suggest training as opposed to locking them out.

If you're trying to prevent users from learning a URL, then use a pass through page (should trick most of them) or CE's methods for opening reports instead of a pass through URL, which isn't great for security reasons.

-k
 
I am trying to prevent the users from knowing the URL. when the report is pulled up in CE, using CTrl + N brings up another window with the URL displayed which i do not want. how do you use the pass through page throuh CE.

 
You'll never be able to fully stop someone that way, that's why CE has security.

Using a URL pass through goes around this, and if they are in CE and have a URL for a report that they aren't autorized to see, then they can't see it.

You still haven't stated how you're invoking reports, is it via URL pass through, or through eportfolio, and what version of CE?

-k
 
Hi,
You can call a new window ( using JavaScript) and hide the URL:
Snippet of relevant part of a larger function, so ignore the unknowns

Code:
windowprops = "fullscreen=no,location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes";

newloc = "report_viewer.asp?ReportId=" + rn + "&Pnames=" + str + "&Pvals=" + arr1in + "&NumParens=" + numparams
}

reportWindow=window.open(newloc,"rptWindow",windowprops);

self.close()

That is on a separate page frrom the user interface page and is called after any parameters are selected..

[profile]
 
How can this be incorporated in CE. I am using CE 10. The securities are set but a user can Ctrl + N and open a new browser window which displays the URl.

when the link is clicked in eportfolio it produces a page with out the adress bar but when Ctrl + N is selected it displays a page with the address bar and url
 
Hi,
Sorry but it would take some significant mods to the EPortfolio code that I am not familiar with since we use all custom pages for our user interfaces and do not use EPortfolio at all..

( Even the method I use will reveal the URL with a Cntrl-N but it is meaningless since it does not show any parameters at all..Report_Viewer.asp redirects to another page that actually shows the report but does not need any URL provided info - The Report Object( with its parameters/values and security set) is built in Report_Viewer.asp and that page is never presented to the user.)

[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top