Home » Developer & Programmer » Forms » Problem with Webutil program units (10g Application Server win xp)
Problem with Webutil program units [message #346927] Wed, 10 September 2008 02:19 Go to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Hi,

I am having problem with some webutil program units. client_get_file_name was working fine but when I tested client_tool_env and client_win_api_environment it throws exception. I have attached both the console readings here, Can you figure out what can be the problem?

CLIENT_WIN_API_ENVIRONMENT code
declare
	uname varchar2(10);
BEGIN 
 uname:=client_win_api_environment.get_windows_username();
 message('This is the username '||uname);
END; 

CLIENT_TOOL_ENV.GETVAR code
[ALIGN=center]declare
	dirname varchar2(255);
BEGIN 
  client_tool_env.getvar('C:\', dirname);
  message('Here it is  '||dirname);
END;

[EDITED by DJM: removed extraneous formatting]

[Updated on: Wed, 10 September 2008 02:40] by Moderator

Report message to a moderator

Re: Problem with Webutil program units [message #346928 is a reply to message #346927] Wed, 10 September 2008 02:20 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
No Message Body
Re: Problem with Webutil program units [message #346938 is a reply to message #346928] Wed, 10 September 2008 02:41 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Try putting a 'pause' command after the message.

David
Re: Problem with Webutil program units [message #346940 is a reply to message #346938] Wed, 10 September 2008 02:41 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
In what trigger are you placing this code?

David
Re: Problem with Webutil program units [message #346966 is a reply to message #346940] Wed, 10 September 2008 04:30 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
I tried putting 'PAUSE' but it still gave the same exception in the java console

I am using this code in WHEN_BUTTON_PRESSED trigger.
Re: Problem with Webutil program units [message #347134 is a reply to message #346966] Wed, 10 September 2008 18:36 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Can you run the 'webutil' demo? Does it work there?

David
Re: Problem with Webutil program units [message #347176 is a reply to message #347134] Wed, 10 September 2008 23:34 Go to previous messageGo to next message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
unfortunately no...none of the functionalities except the client_Get_file_name (on the BUILTINs page) are working.

I believe the exceptions in the console have to do something about this but do not know what to do about it.

Any other steps I could take?
Re: Problem with Webutil program units [message #347186 is a reply to message #347176] Thu, 11 September 2008 00:45 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Yo uare gong to have to work your way through the 'webutil' documentation until you get the demo form working.

Obviously, something in your install is not correct. Read the documentation and search this forum for 'webutil formsweb.cfg' and you will find threads like http://www.orafaq.com/forum/m/342812/67467/?srch=webutil+formsweb.cfg#msg_342812

David
Re: Problem with Webutil program units [message #347219 is a reply to message #347186] Thu, 11 September 2008 02:00 Go to previous messageGo to next message
mudabbir
Messages: 235
Registered: April 2006
Location: Kuwait
Senior Member

In your other post you said you were copying the webutil.olb file and not subclassing it... right?

you have to subclass it... for some reason it doesnt work if you copy it.
Re: Problem with Webutil program units [message #347518 is a reply to message #347219] Fri, 12 September 2008 00:14 Go to previous message
durgadas.menon
Messages: 365
Registered: December 2007
Location: Nowhere
Senior Member
Thanks...I tried sub classing it but with less success...Let check the configuration files again..might get some clue.
Previous Topic: Installation errors: Developer 2000 & Oracle on one machine (probably)
Next Topic: abort repors
Goto Forum:
  


Current Time: Sun Dec 01 11:42:17 CST 2024