Manage Learn to apply best practices and optimize your operations.

Rollovers and @formulas, simple

An easier way to use action hotspots for an @formula

This is not rocket science but I think a handy tip. After seeing and using the tip here for using action hotspots for an @formula and then extracting the onclick value and using it in JavaScript, I thought of an easier way to do some of the functionality.

The other method is still good for when you need to use a lot of javascript but I use this tip for say a Save button or Cancel. Even opening another form etc etc.

An added bonus!! You also get the groovy finger pointer happening instead of just the mouse arrow!!

Place your picture, button graphic etc on your form. Put all your javascript code in, onMouseOut,onClick etc. if desired.

Highlight your graphic, create an action hotspot and put your @formula in it.

This way you get the javascript functionality and the @formula functionality.

In my example I have a pop-up window to enter some information. I want to save the document in the pop-up, close the pop-up window and change the graphic on the main from a 'cross' to a 'tick'.

Picture - 
// "type" is a field on the mainform that holds the value of the associated graphic id

var name = document.forms[0].type.value;
eval("opener.document." + name + ".src='ok'");

document.forms[0].save.src = "saveoff";
//Using alias of Image Resource

document.forms[0].save.src = "saveon";

HotSpot (which is over the Picture)

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...