Avatar of anime18angel
anime18angel
 asked on

opening pages

I use this to automatically open a page after running a lotusscript web agent that would display a 'thank you' page.

Print "[/Test.nsf/ThankYou?OpenPage]"

It works on an internet browser but it doesn't work on the notes client. Any suggestions?
Lotus IBM

Avatar of undefined
Last Comment
Zvonko

8/22/2022 - Mon
Zvonko

In notes client it is a simple print to bottom Status line.

The redirection is managed by Domino html engine and this is not in between when you run an agent on Client. The Client do it all without the engine.

But anyway. There are LotusScript commands to open Pages. So why do you not distinguish which environment you are running and open appropriate page method?
Like:
Call workspace.OpenPage("ThankYou")


anime18angel

ASKER
thank you, but the OpenPage method under the NotesUIWorkspace class which doesn't work on web browsers.

what can I do do automatically open the ThankYou page using both notes client and web browser?

am I supposed to make two separate agents (one for the 'print method' and the other for OpenPage method) for that?

thanks.
ASKER CERTIFIED SOLUTION
Zvonko

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
scottrma

You can use @IsMember("$$WebClient"; @UserRoles) either as a formula by itself, or in a LotusScript Evaluate() function, to determine whether the user is a Notes client or a web browser, and the proceed in your code accordingly.

Regards,

Scott
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
anime18angel

ASKER
i knew it.

well, thanks to the both of you.
Zvonko

The regular grading is an A.

And this was not your last question.
So next you knew better...