Manage Learn to apply best practices and optimize your operations.

The power of evaluate

This tip describes using the evaluate function.

I find interesting that most new Notes programmers could use a crash course in @formulas. For the most part they underestimate the power of @formulas and how easy it is to integrate in LS code. The Evaluate function when combined with the appropriate @formula could save you tons of time. As an example, here is a piece of code that allows me to redirect user when an agent is executed:


'-- this sample code redirects a user to a thank you page. After the agent has been executed. The Evaluate function, replaces the / to and the spaces to "+"

'-- 
Dim strDBName as string
Dim varDBName as string
varDBName=Evaluate({
@ReplaceSubstring(@subset(@dbname;-1);
"//":" ";"":"+")})
strDBName=varDBName(0)
Print "[/"+strDBName+"/pgthankyou?openpage]"

Dig Deeper on Lotus Notes Domino Agents

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