Home » Developer & Programmer » Forms » WEBUTIL AS_TO_CLIENT (Forms, 10.1.2.3.0, Linux)
WEBUTIL AS_TO_CLIENT [message #429438] Tue, 03 November 2009 16:18 Go to next message
dlwixon
Messages: 92
Registered: September 2008
Member
Can anyone give me an example of how to use the AS_TO_CLIENT webutil function?

The WebUtil User's Guide doesn't give examples. It just gives a description of what the function does:

Quote:
AS_To_Client Transfers a file from the application server to the client. The webutil.cfg parameter transfer.appsrv.enabled must be set to true to use this function, and if the transfer.appsrv.accessControl parameter is also set to true, the upload target directory must be listed in the transfer.appsrv.read. list. It is sensible to call the WebUtil_File_Transfer_IsASReadable function with the target filename before starting the download to ensure that you will be able to read from this location on the application server.

Re: WEBUTIL AS_TO_CLIENT [message #429569 is a reply to message #429438] Wed, 04 November 2009 10:04 Go to previous messageGo to next message
dlwixon
Messages: 92
Registered: September 2008
Member

Perhaps someone can give me an example or direct me to documentation on URL_To_Client if not AS_TO_Client?
Re: WEBUTIL AS_TO_CLIENT [message #429620 is a reply to message #429438] Wed, 04 November 2009 14:50 Go to previous messageGo to next message
dlwixon
Messages: 92
Registered: September 2008
Member
There are examples in the webutil demo form found at

http://www.oracle.com/technology/products/forms/htdocs/webutil/webutil.htm
Re: WEBUTIL AS_TO_CLIENT [message #522528 is a reply to message #429438] Sun, 11 September 2011 23:24 Go to previous message
salrizzo
Messages: 7
Registered: December 2009
Junior Member
Example of AS_TO_CLIENT:

if NOT webutil_file_transfer.AS_TO_CLIENT('C:\Xming\Xming.zip', './Xming.zip')
then
message('Failed!');
end if;


Note that './Xming.zip' must be on the same directory of the form (.fmx) calling the function AS_TO_CLIENT().

Alternatevely use URL_TO_CLIENT().
Previous Topic: forms with the JPI
Next Topic: Trigger Cuasing error ORA-06502 and ORA-01403
Goto Forum:
  


Current Time: Sat Sep 07 12:59:41 CDT 2024