• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 374
  • Last Modified:

Redirecting users to a new database on another server in another domain

Greetings experts,

I am on Domino 8.5.2 on a Windows 2003 Enterprise platform. I created a replica of a database on server B (in domain B) as the copy on server A (in domain A) was going away. I put in a nice redirect page that opens in a frameset, hiding and showing the necessary information depending on which server you are on. For server A it would show button to get to copy on server B. On server B you click on a button to open the normal frameset.

I didn't think that any of the users would be able to get past this page on server A (even I can't get to the View > Go to ...) however, i was able to get to a view on the copy on server A using the links in the History folder.

Is there a better way to redirect people to the correct copy of the database? Any way I can get rid of their history?

Thanks for your suggestions and ideas.

Regards - Notes Rookie.
0
notesrookie
Asked:
notesrookie
  • 7
  • 7
  • 3
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
Best to me seems to be
- create a Notes mail, asking them to click...
- add a database link
- and tell them that the old database will be removed in a week
- send the mail to all Notes users

Remove the database in a week, and be prepared to answer questions from people who are too lazy to read your mails.
0
 
Bill-HansonCommented:
The Admin client now handles this for you automatically.  When you delete a database using the Admin client, you will be prompted to create an automatic redirect.
Confirm Database Delete
0
 
Sjef BosmanGroupware ConsultantCommented:
Nice!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
notesrookieAuthor Commented:
Unfortunately I am not admin in the domain A that had database A. I did send out the emails with a calendar reminder they could click on to add to their calendar. I was sooo nice! :)

But you know there will always be someone who will use their history or bookmark link and circumvent the usual stuff put in place.

But thanks for the update on the admin client - that is nice?

Is t here any way to delete their history programmatically? I could place a redirect on each of the views that they may get to but that would be a real pain. Does Domino have a way to see what views were used most often in a database?

It is great that I learn something new every time I post a question on top of getting my question answered!

Thank you all!!

Regards - Notes Rookie
0
 
Sjef BosmanGroupware ConsultantCommented:
Why not remove the database altogether? Those who didn't follow your 2nd mail's advice (with the announcement that the db is removed), will contact you soon enough.
0
 
Bill-HansonCommented:
Can you replace replica A with a new database? One that only contains the redirect page/code?
0
 
notesrookieAuthor Commented:
sjef - I am unable to remove the database from domain A. I am admin for domain B where the new replica now resides.

Bill - No I am not able to replace replica A with a new database

Regards - Notes Rookie
0
 
Bill-HansonCommented:
You may be able to code the Database's OnOpen event to do what you need.  It should fire regardless of how the database was accessed.  Be aware that the event will not fire if you have the database open in Designer (haven't tested this since R6).  Also, this only works in the Notes client.
0
 
notesrookieAuthor Commented:
Bill-H - Let me try that and see what happens.
0
 
Sjef BosmanGroupware ConsultantCommented:
> It should fire regardless of how the database was accessed.
AFAIK there is no OnOpen event, and the PostOpen event doesn't necessarily fire, e.g. when the database is opened using code. I vaguely remember that there were other ways to circumvent the PostOpen event... Was it View/GoTo...?
0
 
notesrookieAuthor Commented:
Actually - I did try the PostOpen event but the database property that says to open using a frameset overrode that event. When you have a frameset in place you don't even see the View > Go to ..., that is, if you do not have a frame pointing to a view.

I am not sure what else to do. Suggestions? Ideas? Crazy thoughts?

Thanks - Notes Rookie
0
 
Sjef BosmanGroupware ConsultantCommented:
You may be Admin for domain B, but you probably can access the db's ACL on domain A? A suggestion:
- disable replication for the database in domain A
- set ALL users in the ACL in that database to No Access
- make sure you still have Manager rights
- send the users a mail telling them what to do if they can't open the database (File/Replication/Find Replica)
0
 
notesrookieAuthor Commented:
Bad news! I don't even have enough access to change the ACL. Sorry!
0
 
Sjef BosmanGroupware ConsultantCommented:
Bad news? Is that a euphemism for a nightmare??

Ok, here's another option, my panacea for nightmares actually, if all else fails and you're badly in need of anything to get you out of this mess:
1/ a NotesTimer
2/ the SendKeys library (see http://benpoole.com/bp.nsf/weblog/200208202155 )

The ugly details:
- create a NotesTimer that's triggered 1 second after the load of the page (yuck)
- make the code find out which database was opened
- if it's the wrong one, use PushKeys to switch to the right one (yuck again).

Ah... that makes me think of a different solution, not yuck at all: use the name of the current server in some hide-when formulas. The normal screen doesn't open on the domainA-server, instead a warning page is shown with a link to the real database.

That makes even 2 ideas! How 'bout that?
0
 
notesrookieAuthor Commented:
That's the ticket, sjef.

That is the solution I implemented, your second (although the 1st one sounds rather intriguing). I have a frameset that opens with all kinds of hide whens like you mentioned. Server A copy would has a warning and click here to connect to server B. Server B has a button that takes them to the correct frameset. Also coded database script > postopen event to prevent them from opening the database if it is on server A and sending them to server B.

So is there any possible way that a user would be able to circumvent this? I am sure they will find a way

Thanks, sjef, fpr your help.

Regards - Jade
0
 
notesrookieAuthor Commented:
Great as always!
0
 
Sjef BosmanGroupware ConsultantCommented:
Kind words. Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 7
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now