Focal Point
[SOLVED] Turn Off "My View" for Users?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5837023826

January 28, 2013, 02:19 PM
John_Edwards
[SOLVED] Turn Off "My View" for Users?
I'd like to limit my users to just their group views. "My View" seems to just sow confusion and in 7.7 I can't get it to turn off the Links in the upper-right-hand corner of the banner, so the users are getting access to options I don't want them to have.

I was able to comment out a section of code in 7.6 and get My View to disappear, but that trick doesn't appear to work in 7.7. Can anyone point me to the secret sauce for this one?

J.

This message has been edited. Last edited by: John_Edwards,



January 28, 2013, 02:39 PM
John_Edwards
I'll change the question a bit -- I can turn off My View on startup for the user, I'd like it removed in their Views window when they select the link in the upper-right-hand part of the banner. 7.6 had a jsp mod that did the trick but it did not function correctly when I applied it to 7.7



January 28, 2013, 03:24 PM
Francis Mariani
We recently opened a case about this. After a lot of back-and-forth about which "My View" link we wanted to suppress, this was suggested, and apparently works in v7.7.03:

quote:

You can remove the "My View" option from the Views link by doing the following.

* These steps are assuming that you are pointing to the webfocus77 exploded directory for your web application rather than the webfocus77.war

* Please make sure you backup your files before you make any changes.

A. Locate the intl.jar file under the following directory:
\ibi\WebFOCUS77\webapps\webfocus77\Web-INF\lib\intl.jar

B. Unjar the "copied" jar file you can use the Winzip to unjar.

C. Locate the WORP_Bundle_en.properties located under:
\\ibi\intlfolder

D. Find the following entry:
sMyView=My View

E. Change it to the following:
sMyView=

F. Save your changes. You now need to re-create the JAR

G. After all the changes please bounce your application server for changes to take effect.



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 28, 2013, 03:32 PM
John_Edwards
Well if that doesn't void the warranty I don't know what will. Thanks!

J.



January 28, 2013, 04:48 PM
Francis Mariani
Good luck!!!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 29, 2013, 09:45 AM
John_Edwards
Much thanks to Andrew Katz in the DC office that brought the goods. Two files need to be changed to pull "My View" out of reach of end users. Both are found here:

C:\ibi\WebFOCUS77\webapps\webfocus\worp\jsp\views


IMPORTANT PRE-ACTION REQUIRED -- Make a backup copy of the original files and clearly label them. There will be another set of backup files required below so be sure to indicate with the backup names that these are the original install files.


WORP_ViewList.jsp places My View before the user on their Menu List of views when they log in. (This assumes you've turned off the immediate execution of My View at login, which seems like a pretty safe assumption if you're looking to turn it off later in their business process.) Comment out or remove this code near the bottom of the unit --

<TD><img src="<%=bulletIconPath%>" /></TD>
	<td style="white-space: nowrap" align="left">
	<a class="anchor1" href="<%=actionHandler%>?WORP_REQUEST_TYPE=WORP_INIT_VIEW&
           <%=StringEscapeUtils.escapeHtml(appendMpv)%>"><%=WORP_Utilities.getDBVar(language, "sMyView")%></a>
	</td>



WORP_GroupViewList.jsp places My View before the user in their Views list from the option on the upper-right of their worp banner. That's a separate removal requirement. As with WORP_ViewList above, comment out the same code near the bottom of the unit --

<TD><img src="<%=bulletIconPath%>" /></TD>
	<td style="white-space: nowrap" align="left">
	<a href='about:blank' onClick='changeView("<%=actionHandler%>?WORP_REQUEST_TYPE=WORP_CHANGE_VIEW")'>
            <%=WORP_Utilities.getDBVar(language, "sMyView")%></a>
	</td>



IMPORTANT POST-ACTION REQUIRED -- These files are in the line of fire when upgrades are made to your WebFOCUS install. Even a x.xx.001 patch to your WebFOCUS software could result in the deletion of your modifications. Your end-users will magically get My View back. Make a copy of your modifications and label them appropriately so that you can duplicate the change after a system upgrade replaces the files in the execution path.

Oh, and check your changes into CM. You're using CM on your modded system files, right? Right?

Of course you are.

J.



January 29, 2013, 09:59 AM
Francis Mariani
John,

Thanks for the update. This sounds a lot easier and seems a definitely more kosher method.

Cheers,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server