Determining focus

Good day, all,

This may be a very simple question that I’m missing the point of.

I’m building a global procedure for use with the founsetupdater. I can determine what form I’m on by using controller.getName(), but I also need to determine what field I’m on (this would trigger as the result of right click on a field, which would display a popupmenu, and the popup would allow the user to request an update to selected fields).

It would seem that this should be staring me right in the nose, but I’m missing it.

Thanks, as always, for any guidance you can provide.

Have a good day.

Ron

Doesn’t the event object passed from the right click method give you :

event.getElementName()
``` ? (along with .getSource(), .getFormName() )

The event is retrieved via the "arguments" key word. Inside the right click method callback, do :

var event = arguments[0] ;

Hi Matt,

I’ll tell you, sometimes things are staring you right in the face and you don’t see it.

Your suggestion works absolutely great. As I look at it I’m thinking, “how did I not know that?”. :-)

Thank you so much.

Ron