Right Mouse Clicking in Stored Process and Portal Web Apps

5

In 9.2, the right-mouse click functionality is not available by default. To switch back to this (which for STP developers in a DEV environment is essential to our productivity), SAS has provided the following note:
http://support.sas.com/kb/39/292.html

As you can see, out-of-the-box, all SAS STP developers will need to do is add the &_action=tree option to the URL, such as:
     http://your-server:8080/SASStoredProcess/do?_action=tree

Then you can right-click to your hearts content.

However, the same functionality is disabled in the SAS Portal. And some use this to create content (applications) to bypass authentication. So using the second option in the support note 39292, I went ahead and modified sas_Common.js in both the Stored Process and Portal web apps. The very last line in this js fine just needs to be commented out.

SASServer1deploy_sassas.portal4.3.earsas.portal.warscriptssas_Common.js
SASServer1deploy_sassas.storedprocess9.2.earsas.storedprocess.warscriptssas_Common.js

Just remember, with anything requiring a redeployment of the web applications, this change will need to be reincarnated.

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

5 Comments

  1. i found the following comment line in sas_Common.js:

    // We still have ctrl right click for the browser context menu.

    did you know that actually works!?

  2. Pingback: Stored Processes – bypassing double authentication - Real BI for Real Users

  3. I've heard that too, but in those cases companies usually disable the right mouse button in Windows all together.Quite a challenge to get it back in the Portal though...

  4. Thanks Angela, you have a solution for everything! :)Why on earth did SAS decide to disable the right mouse button in these applications??Thanks,Bart

Back to Top