How to attach logic to Sign-On?

Zoltan_Gyimesi

Legendary Poster
Hi List,
Our problem is that we would like to bring up a warning message window/form when the user Sign-On to the Production enwironment warning her/him that she/he is going to use the Production data.
It is important when the system go live because users who took part in the CRP session, sometimes can be confused about in which environment they are.

If I remember well, the Sign-On screen was a OneWorld Form under B7321 but now, starting with B733 it reside in one of the system DLLs in the b7\system\bin32 sub-folder.

Has anybody any idea how can we catch the sign-on event and attach our logic to it or any other idea how can we indicate for the user the usage of the Production environment (as a warning)?

Any tips, suggestion will be greatly appreciated.
Zoltán
P.S.: I know, that user can check her/his environment in the help of Oexplorer, further the environment is displayed on the bottom bar of Oexplorer startin with XE, but we want to make a warning independently from the user actions. Thanks.

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 

David Robertson

Reputable Poster
Hi Zoltán,

The site I am working on (B7332sp7 - terminal servers) at the moment (until Thursday afternoon) has a little message that says CRP, highlighted in yellow, on all the windows (or maybe just the menu window), in the CRP environment.

If this would be helpful, I can find out how it is done. Let me know?

Thanks,
David
 

David Robertson

Reputable Poster
Hi again Zoltán,
I'm not sure this helps, but what we do is modify the bitmap in B7332
..\pathcode\Res\Stbr1.bmp
which is by default a little globe. Keeping it the same size, we've redrawn it on a highlighted colour as appropriate ,with the letters CRP or PRD. This displays on the bottom of all the windows, except the main menu window.

Thanks,
David
 

Jack_Crouch

Well Known Member
We setup special test user profiles that only had CRP. Production users only had PRD.

Just a thought.

AS400 V4R4, B733.2, SP11.3, NT-SQL7 for CO
 

Zoltan_Gyimesi

Legendary Poster
David,
It is a GREAT idea! I greatly appreciate it. Thanks.
However it is not really that we are looking for but I am sure that we will use it independently of will we able to catch the Sign-On event or not because it has an other and great advantage, namely, we can check the Environment instantly on all form instead of check it in the Help of Explorer which needs more steps. Great!

In the past, we investigated that how could be able to change some color on forms depending on e.g. environment for indication but unfortunatelly we wasn't succesful.

On the other hand, catching the Sig-On has (could be) an other advantage for us, namely that we would be able to keep track Sign-On actions and/or accomplish other administrative tasks.

David, many thanks again.

Eric, I vote to put David's idea onto the Tips & Traps board. Please, do it if you agree too.

Zoltán



B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 

Zoltan_Gyimesi

Legendary Poster
Jack,

It is not only "just a thought" but a very good idea.
This solution forces the user to make preliminary decision that which environment do she/he want to sign on and later keep it in mind (hopefully :)

We have already guessed this solution too and time to time forgot it :)

Personaly me, as developer, prefer this solution very much but unfortunately not all of the administrators.

On the other hand, this solution has an other advantage too, namely that we can differenciate the security setting for the user based on the environment.

I think, your and David's idea together could be an enough suitable solution to our problem. (Jack, have you read David's answers?)

Thanks both of you.

Zoltán




B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 

Zoltan_Gyimesi

Legendary Poster
Just a bit addition to David's idea.
This solution is a Path Code dependent solution and not really an Environment dependent
... but very useful.
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)<P ID="edit"><FONT SIZE=-1>Edited by Zoltan_Gyimesi on 2/14/01 10:10 AM.</FONT></P>
 

Adrian_Chimirel

Legendary Poster
Re: RE: How to attach logic to Sign-On?

William,
Just being curious: is your current Environment not displayed already on your StatusBar?

Adrian Chimirel
Programmer Analyst
LIVE: B732.1 SP12.2, Oracle 806
SANDBOX: XE SP13, 8i
RS/6000, Citrix, 200+ clients
 
RE: RE: How to attach logic to Sign-On?

Yes but the method mentioned seemed like a method that would re-enforce
which environment someone was in.


William C. Godfrey, BBA
Senior Programmer Analyst
Information Technology Division
J. D. Irving, Limited
Bus: (506) 863-6092
Fax: (506) 858-7787
Email: godfrey.bill@jdirving.com


>
 

David Robertson

Reputable Poster
Hi Zoltán,

I can't claim the honours for the Stbr1.bmp idea. You can thank Niels Mosselman (Muscle Man) for that, a very competent and imaginative Dutchman.

Another from Niels idea he had as a creative solution to your problem, was to use the tip of the day program. The messages are editable, so you could set up a warning or whatever in there.

I presume from your post, that in XE it is no longer the application P00825 to perform the signon validation? How about the Business Function ValidateUser?

If you can still get at the code for Tip Of The Day, you can set it to be forced to all users for the OW Menu. You could maybe even attach logic to the TOTD form in P0085.

Sorry, but I don't have access to XE at the moment. I'll have a look on Demo Jnr over the weekend, and see if I can imagineer something.

Regards,
David
 

David Robertson

Reputable Poster
Re: RE: How to attach logic to Sign-On?

Sorry, but I'm on B7332 here, so I'm not sure if it works on B7333 or XE.
You do need to sign off and back on to OneWorld for it to be picked up.
 

harry_lisle

Member
In XE, you can find out what your environment is by
looking in the lower right corner of the Oneworld
Menu...

Not exactly what you're looking for, but maybe a
solution for your problem.
-Harry


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
 

ryanwa

Member
We have tried changing the stbr1.bmp too, and it works great ... except if
the user clicks on the little flashlight to choose the environment. When
the user does this, the bitmap is loaded from the default environment set up
in jde.ini. Has anyone seen this behavior in later versions? (We are on
B7331).

Ryan Walls [ryanwa@attachmate.com]
Senior Programmer/Analyst - Attachmate Corp.
B733.1 SP10.1 DS:NT4.0 ES:AS400 V4R4
TSE4.0/Citrix 1.8 co-existent





B733.1 sp10.1 ent AS400 v4r4 deploy NT 4.0
TSE 4.0 Citrix 1.8 coexistant
 

Wayne_Ivory

Member
Zoltán (& others),

I know I said goodbye already but I think I really do have something useful
to contribute to this thread. I apologise - I had read some of these
messages but I must have been too distracted by our project being canned to
realise what you were asking about.

We had recently put in 13.1 on B7332 which gives us some XE functionality
without XE. As a result the environment shows in the main menu status bar.
However prior to that we had no such information so I had started developing
a Visual Basic utility to display the environment in the Title bar (the blue
bar at the top of all Windows).

This solution required the use of Visual Basic and an add-on tool called
SpyWorks Professional. This probably means you may not be interested in
pursuing this specific solution, but the main fact the utility took
advantage of is that the last logon environment is stored in the jde.ini
file, eg

[SIGNON]
LASTENV=CONV733
LASTUSER=WIVORY

Even if you didn't use Visual Basic you might be able to take advantage of
this fact some other way.

For anyone interested, I called my utility OneWorld Window Manager. It is
able to detect Windows events such as Windows being opened or closed, and
Windows being activated (ie clicked on). Visually it appears as a list box
at the bottom right of the screen (always on top, but can be minimised).
When a new item is selected off the menu the utility detects the opening of
a new window and puts the environment (from the ini file) on the Windows
Title Bar. So the title bar on the left might say Item Master Maintenance
and on the right say DEV733. I also was able to use different colours so
DEV is blue, PROD is red etc. That was all my original intention was but I
thought that since I was already detecting which windows were opened I might
as well keep a list of them. So the list box shows a list of the currently
open windows (OneWorld only). This is useful when you have a lot of windows
opened and can't make out names in the Windows Start bar. If you click on
the name of a window that window gets activated (ie brought to the front).

I also dabbled with getting icons for the different windows to display in
the list box. Overall it's certainly not a "finished product" but it's
working for me. In it's current form it wouldn't be useful for others
because the environment/colours are hard coded. I intended to one day make
a new custom section in the jde.ini file and read environment colours from
there. If someone is interested in taking over the development of this I
will make it available as a parting gift. Remember you would have to have
Visual Basic (5 or higher) and SpyWorks Professional.

Regards

Wayne Ivory
Information Services
Iluka Resources Limited
 

Zoltan_Gyimesi

Legendary Poster
Harry,
Thanks your answer but it is a known feature of XE for us and I was described it in the P.S. section on the end of my original post.
Thanks in any case.
Here is my previous PS again:
"P.S.: I know, that user can check her/his environment in the help of Oexplorer, further the environment is displayed on the bottom bar of Oexplorer starting with XE, but we want to make a warning independently from the user actions. Thanks."
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 

Zoltan_Gyimesi

Legendary Poster
Re: RE: How to attach logic to Sign-On?

Hello Wayne,
You are very welcome again.
I was sure that we will read you again.
Thanks for your 1st price hint.
I think, it is really what we want.
Although I have never used Visual Basic and SpyWorks but I am sure that we will find an expert in house.

Your answer is very valuable not only for us. I know that many of us on the Lists are interested in this issue and not only here on the Developers board but on the other OneWorld XE board too.

Would you be so good as to attach your valuable post to my thread on the other board too (the title and author is the same) or allow me to copy it there?

Thanks again & don't say goodbye forever!

Read you again,
Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Top