I want Internet address of the user who has logged some request of the form.Suppose i have a field logged which is computed when compose field which has the @ProperCase(@Name([CN];@UserName)) formula.Now i need to have the Interned address of the field logged,I tried using this by @Name([ADDRESS821];logged ) in a computed field but it is not showing anything
Subject: displaying user’s Internet address
Hi,
One option is to use Lotus Script and a java call to get the inetAddress value of the machine (requires java 1.4 or higher on the workstation).Apply something like this to one of the form or action events (determined by your application process):
Uselsx “*javacon”
Function getIPAddress() As String
'***************************************************************
'** getIPAddress
'**
'** parameters:
'** N/A
'**
'** returns:
'** String with IP address of current computer in format
'** www.xxx.yyy.zzz
'***************************************************************
Dim jSession As JavaSession
Dim jClass As JavaClass
Dim jObject As JavaObject
Dim jMethod As JavaMethod
On Error Goto errorHandler
Set jSession = New JavaSession()
Set jClass = jSession.GetClass(“java/net/InetAddress”)
Set jMethod = jClass.GetMethod(“getLocalHost”,“()Ljava/net/InetAddress;”)
Set jObject = jMethod.Invoke()
getIPAddress = jObject.getHostAddress()
Exit Function
errorHandler:
getIPAddress = “”
Exit Function
End Function
Basically, just paste into your form and trigger it and then set the field value for use. Here’s a link regarding some detail and credit to the author:
http://www.triplewhitefox.com/tech/ls2j.htm
HTH
Geoff-
Subject: displaying user’s Internet address
You should be able to use @NameLookup to get the internet address from the Person document in the Domino Directory.