JavaScript Question - Lotus Notes Client

Could somebody point me to an example or let me know if it is possible to write JS in a Notes Client to collect the user name associated with a session, similar to the CommonUserName, EffectiveUserName capabilities that are availabel with LS or Java. I need to collect the information in a JS variable so that I can pass it to a URL call I am making as a parm.

If it cannot be done directly via JS, can it be passed from LS or Java to a JS variable??

Subject: JavaScript Question - Lotus Notes Client

Put the username in a field using Formula Language and access it that way.

Subject: RE: JavaScript Question - Lotus Notes Client

Stan - forgot to mention (I apologize) - I do not have access to the form design to place the value in a field name and use the document.forms[0].fieldvalue method…

Can I achieve the same by building a field dynamically via LS, populating the field as you state with for example session.CommonUsername and then access it via JS ?? I don’t think it will work, but I will give it a try.

Subject: RE: JavaScript Question - Lotus Notes Client

Nope. How were you hoping to do this if you can’t access the form’s design?