Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Who has called the Webagent?!?!?

Who has called the Webagent?!?!?

Who has called the Webagent?!?!?


I'm searching a possibility to get the username of the user, that called the agent in the agent.

NotesSession.UserName gives me only the server name and
NotesSession.EffectiveUserName gives me the name of the person who saved the agent.

I want to create an "subscribe" button that adds the user name of the user that clicks that button to an field of this document.

The agent is called with @Command([ToolsRunMacro];AgentName).

thanks in advance


RE: Who has called the Webagent?!?!?

You have a button to run the agent ?
Simply add a FIELD command to the code before you run the agent, like this :

FIELD agentCall := agentCall:@username;

That way, the document will tell who clicked the button.
Of course, that means that you need to consult the document to know, and that also means that he who clicks the button must have edit access to the document.
I'm sure you can work something out, though.


RE: Who has called the Webagent?!?!?

Yes it's a button, so documentcontext works

Thank you very much.

But tell me why can't you do anything on notes in a "normal" way? ;)



RE: Who has called the Webagent?!?!?

Hmm, what is normal ?

RE: Who has called the Webagent?!?!?

Not having to think about "How to circumvent this restriction"

Maybee the Notes Developer have made an competition for us...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close