Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who has called the Webagent?!?!? 1

Status
Not open for further replies.

DerStephan

Programmer
Aug 19, 2003
54
0
0
DE
Hi

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


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

Code:
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.

Pascal.
 
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? ;)

Regards


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

Maybee the Notes Developer have made an competition for us...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top