Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Looking for a way to display users default insert site on start center

From: (2013-10-29 11:22)

I have a start center that uses dynamic queries (bind variables):

Example:
siteid = (select defsite from maxuser where userid = :USER) and .............

While this method works great of displaying the correct data, some of my users are confused about what data they are looking at and what site it pertains to.

What I would like to do is come up with a way to somehow display the users default insert site (defsite) on the start center either with static text & bind variable, or by changing the start center tab text, or any other creative method.......

I realize I could include the (siteid) field in any result sets, but was hoping someone might have a clever way around doing this.

I thought about:
Using a bulletin board message (You are viewing data for site :siteid) but bulletin boards do not accept bind variables. Using an empty portlet, and just using the header, but again cannot use a bind variable. Maybe using java script on the startcenter-tabs.jsp?????
Just thought I would see if anyone might have any creative ideas.


Thanks for looking.


From: Mohamed Skandaji (2013-10-29 22:46)

We had similar need recently.... What we did is to display next to "Welcome
, Maxadmin"... we added the siteid description "Welcome , Maxadmin @ site
YYYY"
On Tue, Oct 29, 2013 at 7:22 PM, <mlevinson@ledgesoft.com> wrote:
> **
>
>
> I have a start center that uses dynamic queries (bind variables):
>
> Example:
> siteid = (select defsite from maxuser where userid = :USER) and
> .............
>
> While this method works great of displaying the correct data, some of my
> users are confused about what data they are looking at and what site it
> pertains to.
>
> What I would like to do is come up with a way to somehow display the users
> default insert site (defsite) on the start center either with static text &
> bind variable, or by changing the start center tab text, or any other
> creative method.......
>
> I realize I could include the (siteid) field in any result sets, but was
> hoping someone might have a clever way around doing this.
>
> I thought about:
>
> - Using a bulletin board message (You are viewing data for site
> :siteid) but bulletin boards do not accept bind variables.
> - Using an empty portlet, and just using the header, but again cannot
> use a bind variable.
> - Maybe using java script on the startcenter-tabs.jsp?????
>
> Just thought I would see if anyone might have any creative ideas.
>
>
> Thanks for looking.
>
>
>
--
Mohamed Skandaji, MBA, PMP


From: Ian Wright (2013-10-30 11:18)

To do this its quite simple :-
Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components<file:///\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components>
Edit the file find
String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();
Replace with :-
String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();
Stop and start your app server
If you want the change to be permanent thenedit the file in the following directory
\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components<file:///\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components>
Rebuild and deploy the ear
HOWEVER this has one big drawback if the user changes their default insert site it is not reflected until they log off and on again
Rgds Ian
BPD Zenith Ltd.
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of Mohamed Skandaji
Sent: 29 October 2013 21:46
To: MAXIMO@yahoogroups.com
Subject: Re: [MAXIMO List] Looking for a way to display users default insert site on start center
We had similar need recently.... What we did is to display next to "Welcome , Maxadmin"... we added the siteid description "Welcome , Maxadmin @ site YYYY"
On Tue, Oct 29, 2013 at 7:22 PM, <mlevinson@ledgesoft.com<mailto:mlevinson@ledgesoft.com>> wrote:
I have a start center that uses dynamic queries (bind variables):
Example:
siteid = (select defsite from maxuser where userid = :USER) and .............
While this method works great of displaying the correct data, some of my users are confused about what data they are looking at and what site it pertains to.
What I would like to do is come up with a way to somehow display the users default insert site (defsite) on the start center either with static text & bind variable, or by changing the start center tab text, or any other creative method.......
I realize I could include the (siteid) field in any result sets, but was hoping someone might have a clever way around doing this.
I thought about:
* Using a bulletin board message (You are viewing data for site :siteid) but bulletin boards do not accept bind variables.
* Using an empty portlet, and just using the header, but again cannot use a bind variable.
* Maybe using java script on the startcenter-tabs.jsp?????
Just thought I would see if anyone might have any creative ideas.
Thanks for looking.
--
Mohamed Skandaji, MBA, PMP
GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.
**************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
**************************************************************************************************************


From: mohska (2013-10-30 12:26)

Dont remmember What we did but u don't need to log out and log in to display the new defsite after you change It
Sent from my iPhone
On 30 Oct 2013, at 12:18, Ian Wright <ian.wright@gdfsuezep.co.uk> wrote:
> To do this its quite simple :-
>
>
>
> Fine titlebar.jsp
>
> \\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components
>
>
>
> Edit the file find
>
>
>
> String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();
>
>
>
> Replace with :-
>
>
>
> String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();
>
>
>
> Stop and start your app server
>
>
>
> If you want the change to be permanent thenedit the file in the following directory
>
>
>
> \\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components
>
>
>
> Rebuild and deploy the ear
>
>
>
> HOWEVER this has one big drawback if the user changes their default insert site it is not reflected until they log off and on again
>
>
>
> Rgds Ian
>
> BPD Zenith Ltd.
>
>
>
> From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of Mohamed Skandaji
> Sent: 29 October 2013 21:46
> To: MAXIMO@yahoogroups.com
> Subject: Re: [MAXIMO List] Looking for a way to display users default insert site on start center
>
>
>
>
>
> We had similar need recently.... What we did is to display next to "Welcome , Maxadmin"... we added the siteid description "Welcome , Maxadmin @ site YYYY"
>
>
>
>
>
>
>
> On Tue, Oct 29, 2013 at 7:22 PM, <mlevinson@ledgesoft.com> wrote:
>
>
>
> I have a start center that uses dynamic queries (bind variables):
>
> Example:
> siteid = (select defsite from maxuser where userid = :USER) and .............
>
> While this method works great of displaying the correct data, some of my users are confused about what data they are looking at and what site it pertains to.
>
> What I would like to do is come up with a way to somehow display the users default insert site (defsite) on the start center either with static text & bind variable, or by changing the start center tab text, or any other creative method.......
>
> I realize I could include the (siteid) field in any result sets, but was hoping someone might have a clever way around doing this.
>
> I thought about:
>
> Using a bulletin board message (You are viewing data for site :siteid) but bulletin boards do not accept bind variables.
> Using an empty portlet, and just using the header, but again cannot use a bind variable.
> Maybe using java script on the startcenter-tabs.jsp?????
> Just thought I would see if anyone might have any creative ideas.
>
>
>
> Thanks for looking.
>
>
>
>
> --
> Mohamed Skandaji, MBA, PMP
>
>
> GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.
>
>
> ****************************************************************************************************************************************************************************************
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
>
> If you have received this email in error please notify the system manager.
> ****************************************************************************************************************************************************************************************
>
>


From: Ian Wright (2013-10-30 11:39)

I just deleted my browser cache and re-tested it and it DOES refresh so the below solution is good.

Rgds Ian
BPD Zenith Ltd

From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of mohska@gmail.com
Sent: 30 October 2013 11:27
To: MAXIMO@yahoogroups.com
Subject: Re: [MAXIMO List] Looking for a way to display users default insert site on start center


Dont remmember What we did but u don't need to log out and log in to display the new defsite after you change It

Sent from my iPhone

On 30 Oct 2013, at 12:18, Ian Wright <ian.wright@gdfsuezep.co.uk<mailto:ian.wright@gdfsuezep.co.uk>> wrote:

To do this its quite simple :-

Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components<file:///\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components>

Edit the file find

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();

Replace with :-

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();

Stop and start your app server

If you want the change to be permanent thenedit the file in the following directory

\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components<file:///\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components>

Rebuild and deploy the ear

HOWEVER this has one big drawback if the user changes their default insert site it is not reflected until they log off and on again

Rgds Ian
BPD Zenith Ltd.

From: MAXIMO@yahoogroups.com<mailto:MAXIMO@yahoogroups.com> [mailto:MAXIMO@yahoogroups.com] On Behalf Of Mohamed Skandaji
Sent: 29 October 2013 21:46
To: MAXIMO@yahoogroups.com<mailto:MAXIMO@yahoogroups.com>
Subject: Re: [MAXIMO List] Looking for a way to display users default insert site on start center


We had similar need recently.... What we did is to display next to "Welcome , Maxadmin"... we added the siteid description "Welcome , Maxadmin @ site YYYY"



On Tue, Oct 29, 2013 at 7:22 PM, <mlevinson@ledgesoft.com<mailto:mlevinson@ledgesoft.com>> wrote:


I have a start center that uses dynamic queries (bind variables):

Example:
siteid = (select defsite from maxuser where userid = :USER) and .............

While this method works great of displaying the correct data, some of my users are confused about what data they are looking at and what site it pertains to.

What I would like to do is come up with a way to somehow display the users default insert site (defsite) on the start center either with static text & bind variable, or by changing the start center tab text, or any other creative method.......

I realize I could include the (siteid) field in any result sets, but was hoping someone might have a clever way around doing this.

I thought about:

* Using a bulletin board message (You are viewing data for site :siteid) but bulletin boards do not accept bind variables.
* Using an empty portlet, and just using the header, but again cannot use a bind variable.
* Maybe using java script on the startcenter-tabs.jsp?????

Just thought I would see if anyone might have any creative ideas.



Thanks for looking.



--
Mohamed Skandaji, MBA, PMP

GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************


From: Ian Wright (2013-10-30 14:05)

Tested on Version 7.5.0.4 delete your browser cache before testing
To do this its quite simple :-

Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components<file:///\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components>

Edit the file find

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();

Replace with :-

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();

Stop and start your app server

If you want the change to be permanent thenedit the file in the following directory

\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components<file:///\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components>

Rebuild and deploy the ear

Rgds Ian
BPD Zenith Ltd.

GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

**************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
**************************************************************************************************************


From: (2013-10-31 07:59)

Thanks Ian, this works incredibly well.


Would it be possible to pull the SITE.DESCRIPTION so users can see the full site name and not just the siteid?


At any rate I appreciate the help!!!!



---In maximo@yahoogroups.com, <ian.wright@...> wrote:

Tested on Version 7.5.0.4 delete your browser cache before testing
To do this its quite simple :-

Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components

Edit the file find

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();

Replace with :-

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();

Stop and start your app server

If you want the change to be permanent thenedit the file in the following directory

\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components

Rebuild and deploy the ear

Rgds Ian
BPD Zenith Ltd.



GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************



From: Ian Wright (2013-10-31 16:25)

There isn’t an out of the box method for the site description from what I can see
http://thrue.org/javadocs/Javadocs7500/psdi/security/UserInfo.html

From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of mlevinson@ledgesoft.com
Sent: 31 October 2013 14:59
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] RE: Looking for a way to display users default insert site on start center



Thanks Ian, this works incredibly well.



Would it be possible to pull the SITE.DESCRIPTION so users can see the full site name and not just the siteid?



At any rate I appreciate the help!!!!


---In maximo@yahoogroups.com<mailto:maximo@yahoogroups.com>, <ian.wright@...<mailto:ian.wright@...>> wrote:

Tested on Version 7.5.0.4 delete your browser cache before testing

To do this its quite simple :-



Fine titlebar.jsp

\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components<file:///\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components>



Edit the file find



String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();



Replace with :-



String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();



Stop and start your app server



If you want the change to be permanent thenedit the file in the following directory



\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components<file:///\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components>



Rebuild and deploy the ear



Rgds Ian

BPD Zenith Ltd.

GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************


From: Ian Wright (2013-10-31 16:29)

Also note this file may be overwritten by future releases so document it well ☺ and keep a copy of your modified version in the directory

Rgds Ian


From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of mlevinson@ledgesoft.com
Sent: 31 October 2013 14:59
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] RE: Looking for a way to display users default insert site on start center



Thanks Ian, this works incredibly well.



Would it be possible to pull the SITE.DESCRIPTION so users can see the full site name and not just the siteid?



At any rate I appreciate the help!!!!


---In maximo@yahoogroups.com<mailto:maximo@yahoogroups.com>, <ian.wright@...<mailto:ian.wright@...>> wrote:

Tested on Version 7.5.0.4 delete your browser cache before testing

To do this its quite simple :-



Fine titlebar.jsp

\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components<file:///\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components>



Edit the file find



String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();



Replace with :-



String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();



Stop and start your app server



If you want the change to be permanent thenedit the file in the following directory



\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components<file:///\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components>



Rebuild and deploy the ear



Rgds Ian

BPD Zenith Ltd.

GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.

If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************


From: (2013-10-31 09:50)

Thanks for all the advice Ian. You have been a great help!!!!


Mike



---In MAXIMO@yahoogroups.com, <maximo@yahoogroups.com> wrote:

Also note this file may be overwritten by future releases so document it well J and keep a copy of your modified version in the directory

Rgds Ian


From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of mlevinson@...
Sent: 31 October 2013 14:59
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] RE: Looking for a way to display users default insert site on start center




Thanks Ian, this works incredibly well.

Would it be possible to pull the SITE.DESCRIPTION so users can see the full site name and not just the siteid?

At any rate I appreciate the help!!!!


---In maximo@yahoogroups.com mailto:maximo@yahoogroups.com, <ian.wright@... mailto:ian.wright@...> wrote:
Tested on Version 7.5.0.4 delete your browser cache before testing
To do this its quite simple :-

Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components

Edit the file find

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();

Replace with :-

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();

Stop and start your app server

If you want the change to be permanent thenedit the file in the following directory

\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components

Rebuild and deploy the ear

Rgds Ian
BPD Zenith Ltd.



GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************











From: (2013-10-31 09:53)

Thanks for all the advice Ian. You have been a great help!!!!



---In MAXIMO@yahoogroups.com, <maximo@yahoogroups.com> wrote:

Also note this file may be overwritten by future releases so document it well J and keep a copy of your modified version in the directory

Rgds Ian


From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of mlevinson@...
Sent: 31 October 2013 14:59
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] RE: Looking for a way to display users default insert site on start center




Thanks Ian, this works incredibly well.

Would it be possible to pull the SITE.DESCRIPTION so users can see the full site name and not just the siteid?

At any rate I appreciate the help!!!!


---In maximo@yahoogroups.com mailto:maximo@yahoogroups.com, <ian.wright@... mailto:ian.wright@...> wrote:
Tested on Version 7.5.0.4 delete your browser cache before testing
To do this its quite simple :-

Fine titlebar.jsp
\\yourserver\e$\apps\ibm\WebSphere\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear\maximouiweb.war\webclient\components

Edit the file find

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName();

Replace with :-

String userFullName = control.getWebClientSession().getUserInfo().getDisplayName()+" - site : "+control.getWebClientSession().getUserInfo().getInsertSite();

Stop and start your app server

If you want the change to be permanent thenedit the file in the following directory

\\yourserver\e$\apps\ibm\SMP\maximo\applications\maximo\maximouiweb\webmodule\webclient\components

Rebuild and deploy the ear

Rgds Ian
BPD Zenith Ltd.



GDF SUEZ E&P UK Ltd (Company Number 3386464), registered in England and Wales with a registered office address at: 40 Holborn Viaduct, London, EC1N 2PB.

****************************************************************************************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
****************************************************************************************************************************************************************************************