Link to home
Start Free TrialLog in
Avatar of satyaprakash
satyaprakash

asked on

Display a message whenever database is opened

Hello there!

I want to display a message to the users whenever they open my database irrespective of the method they use to open the database.  How to do this?

(When users open the database using 'right-click on db icon -> Database -> Go To...' or 'View -> Go To...' menus, the Database PostOpen Event is bypassed.)

TIA.
SOLUTION
Avatar of Arunkumar
Arunkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arunkumar
Arunkumar

If none of the views are opened but a navigator instead then the db event would fire the code.  If the db is right clicked and a view is selected then the view event would fire.  Is that what you want ?
Avatar of satyaprakash

ASKER

I got this idea of invking a script library from view's postopen but, there are too many views in my db.
Isn't there a better way (may be using Windows APIs) to achieve this?
Well thats why i did not want to repeat the code in all the views but refer to a script library.

I am 0 in API stuff so may be you gotta wait for other experts to get in !

Sorry buddy!

:-)
Arun.
Avatar of SysExpert
How about setting the database to always Open the "about this database" and put your message or a link to it there ?

I hope this helps !
What if the person rightclicks the db and goes to a view ???  Thats the whole problem here SysExpert !!!!

:-)

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi JM,
That's interesting!
Will this work for Notes clients too?  My application is mostly used on Notes clients.

Satya.
Let me do a quick test and I'll get back to you.
Sorry,
Looks like the $$ViewTemplates are only for web use.
Thank you for verifying it for me.
Any other ideas?
An idea:
To prevent the user from directly going to a view, make them hidden by putting the name of the view between brackets.
Provide an alias for the view for easier access in your design.
Then create a frameset with two frames : left frame contains an outline to reference to the views available to the users, right frame displays the currently selected view.

Set the database launch properties to open this frameset, both in notes and in browser.
That wont work buddy... cntrl + Shift right-click and goto will reveal all hidden views !

:-(
Yes, I know, but it will make it a bit harder for users to directly go to views. (Most users don't know this trick)
Admin,

Looks like there's no solid solution for this problem.
Please award 50 points to Arunkumar and 25 points to jerith and please close this question.
Dear experts and friends,

I have to admit that I did underrate the difficulty of this DatabaseOpen  message question. I assumed some sort of LotusScript libraries could have state variables to be called from every view and so track whether the Open message was displayed or not. But I failed tremendous.

Here the notes.net resources describing the event sequence and event descriptions:
http://www-12.lotus.com/ldd/doc/domino_notes/5.0.3/help5_designer.nsf/078c27b23262ffff852566dd0029426a/4f4cab3fceb3d3ff8525687e00583d8c?OpenDocument&AutoFramed
http://www-12.lotus.com/ldd/doc/domino_notes/5.0.3/help5_designer.nsf/078c27b23262ffff852566dd0029426a/4f4cab3fceb3d3ff8525687e00583d8c?OpenDocument&AutoFramed

As the Moderator ee_ai_construct stated here:
http:Q_20919105.html
does the answer to this question fall under the category "you can't do that", and as such do the experts get the points for the question and not a part of the points.

So please satyaprakash be so king and grant the points to the experts for the correct answers.

Thanks in advance,
Zvonko
Cleanup Volunteer

Bro, you are still volunteering ?  I am completely covered with work nowadays.... will definitely stay in touch this summer.  

Until then...Take Care!
Regards,
Arun.
Yep, Zvonko is helping me becoming a Guru expert by making sure I get points for ancient questions :-)
I guess you'll be reaching Sage level this way.

As we all know Zvonko is already a Genius ;-)
All my 13k pts this year were given by my bro !!!

Alright.... here we go... 125 to Arun and 75 to jerrith....
I could have done this earlier but, I overlooked the "Split Points" option.

Thanks everybody!
Satya.
Thanks Satya for finishing this question.
Thanks for the points! Glad to have been of some help at least :-)
Did you convince your users to make it a web appliation? In that case you can do what you want and hide the views froms users and not allow them to open views directly.
Hi Jerrith... you are welcome.
It's tough to convince the users as the app is being used by 100s of employees.
In fact, they have now migrated the app to...

....any guesses?....

.... you got it...

Websphere!
Well, well, how did I gues that one ? :-)
Might be that in a Websphere environment you could have this functionality too, i'm not sure since I've yet to have my first encounter with WebSphere...
I know you would guess it right :-)

Webshpere has a neat security feature.  Whenever a user logs in to the site, we can have the security manager jump into action to collect user information (username, pwd, browser info etc..etc...).  The cool thing is... we can make this happen irrespective of the url used by the user to log in to the site.  For e.g., I can login to this site using any of the following urls....

https://www.experts-exchange.com/
https://www.experts-exchange.com/Applications/Email/
https://www.experts-exchange.com/questions/20314682/Display-a-message-whenever-database-is-opened.html
etc...

Now, whenever security manager calls the methods to initialize user info, we know that the user is logging in for the first time.  We can take advantage of this event to display messages to the user.

You know what... I actually wanted to display to the Notes users a message that says the Notes app is getting migrated to Websphere ;-)
Looks like WebSphere is a cool thing to work with too. Well, at the moment here it's not yet an issue to migrate to anything, so it will be some time before I get my hands on anything new I suppose.
We are considering migration to R6.5 at the moment, but it's a slow process :)