Q
Problem solve Get help with specific problems with your technologies, process and projects.

Stop an LS agent with a prompt function instead of a message display

I'm using LotusScript as a background agent for Web development. My requirement is if there is any validation I'm able to stop by writing HTML code in the script, but I want a prompt function that can alert users instead of displaying a message on the form. Is there any way?
You don't give a lot of details, but I will try to answer your question. If a validation in your LotusScript agent fails, you could print something like this from the agent:
Print "Valdiation failed"
That would be displayed on a Web page. But you would like the user to see a prompt box instead, so print this in your agent instead:
Print "<script>alert('validation failed'); history.back();</script>"
It will display a blank page and an alert box, and when the user clicks OK, he will be returned to the previous page.
This was last published in November 2003

Dig Deeper on LotusScript

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close