Home » Developer & Programmer » Forms » using Webutil to get ip address on form load (Oracle 10.2.0.1.0)
using Webutil to get ip address on form load [message #299450] Tue, 12 February 2008 01:56 Go to next message
ShaShalini
Messages: 59
Registered: January 2007
Member
Hello

My requirement is to show the ip address of the client after he has logged in.

I tried putting the code in when-new-form-instance .. but it returns null. I think the webutil objects are not yet loaded in when the when-new-form-instance is fired. If I put the same code in a push button , I am able to get the IP address.

Actually for test purpose I am displaying the IP in a message.

Message ('Client IP add '|| webutil_clientinfo.get_ip_address);

please help , I want the IP when as soon as the form is loaded.

Thanks

Re: using Webutil to get ip address on form load [message #299498 is a reply to message #299450] Tue, 12 February 2008 04:20 Go to previous messageGo to next message
susantaindia
Messages: 12
Registered: January 2008
Location: India
Junior Member
You can try sys_context.
Re: using Webutil to get ip address on form load [message #299690 is a reply to message #299498] Tue, 12 February 2008 23:43 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Did you put a 'pause' command after your 'message' command?

David
Re: using Webutil to get ip address on form load [message #462608 is a reply to message #299498] Fri, 25 June 2010 04:40 Go to previous messageGo to next message
havok
Messages: 36
Registered: February 2010
Member
susantaindia wrote on Tue, 12 February 2008 04:20
You can try sys_context.

It returns a server ip address Sad

djmartin wrote on Tue, 12 February 2008 23:43
Did you put a 'pause' command after your 'message' command?

I put it. And it not helped

[Updated on: Fri, 25 June 2010 05:00]

Report message to a moderator

Re: using Webutil to get ip address on form load [message #465146 is a reply to message #462608] Mon, 12 July 2010 22:25 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Sorry that I have been so long in replying. Have you solved your problem?

Have a look at http://www.orafaq.com/forum/t/159139/67467/

David
Re: using Webutil to get ip address on form load [message #465153 is a reply to message #465146] Tue, 13 July 2010 00:38 Go to previous message
havok
Messages: 36
Registered: February 2010
Member
problem is solved. here is the solution http://www.orafaq.com/forum/t/159139/67467/
Previous Topic: Client OLE2 excel rowcount
Next Topic: Third level block handling in oracle forms 6i
Goto Forum:
  


Current Time: Thu Sep 19 16:26:46 CDT 2024