Client_get_file_name
I am using the Client_get_file_name to let user choose the file, it works perfectly fine if I pass in a path name like "C:\TEMP\FOLDER_1\",
after user choose a file from the dialog box, the function returns the filename with the correct path.
But , I have found that if I pass in something like "\\Server_A\TEMP\", the file dialog box cannot be open the "\\Server_A\TEMP\ correctly,
however, when a file was selected, the function will return "\Server_A\TEMP\" ....which is one '\' missing in the left side.
Does any one know why it behave like that ?
Thanks!
We have encountered this behavior too. There is a published bug# 7329204 "WEBUTIL FILE SAVE DIALOG DISPLAYS UNMAPPED NETWORK SHARE NAME WITHOUT INITIAL \ "
Suggested woraround is to use mapped Drive.
Similar Messages
-
Webutil - issue with uploading text files with client_get_file_name
Hi,
I'm using webutil client_get_file_name to upload files from the client machine to the server.
It works fine for xls,pdf,doc files etc. but not for txt files it seems.
It doesn't display any error at all either.
Has anyone seen this type of issue before?
Kind regards,
Tom
Windows XP
Forms v10.1.2.0.2Hi Sarah et al,
The code that I'm using to upload any file type format is:
vfilename := client_get_file_name('c:\',file_filter => 'All files (*.*)');
it works for doc/pdf/xls/rtf/csv etc.
but not for text files i.e. .txt
Also, could someone tell me how to open a .msg (Outlook message) file
as it gives the output:
'Cannot read item' upon the opening of the Outlook application.
I'm using the following to try and open it:
CLIENT_HOST( 'cmd /C start '||p_filename);
Your help would be appreciated.
Kind regards,
Tom -
Using Webutil(CLIENT_GET_FILE_NAME) without result
Hi all,
I used Webutil(CLIENT_GET_FILE_NAME function) in developement platform(IDS) on WINDOWS and it worked fine.Now i'm migatring on IAS/LINUX, the same feature don't produce any result and any error occurs.Here's messages i receive in Jinitiator consol when a load and exit the form module:
2004-oct.-25 10:41:08.734 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.734 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.734 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.750 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.750 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.750 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.750 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:08.750 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2004-oct.-25 10:41:33.906 WUI[VBeanCommon.destroy()] WebUtil GetClientInfo Utility being removed..
2004-oct.-25 10:41:33.921 WUF[VBeanCommon.destroy()] WebUtil Client Side File Functions being removed..
2004-oct.-25 10:41:33.921 WUH[VBeanCommon.destroy()] WebUtil Client Side Host Commands being removed..
2004-oct.-25 10:41:33.921 WUS[VBeanCommon.destroy()] WebUtil Session Monitoring Facilities being removed..
2004-oct.-25 10:41:33.921 WUT[VBeanCommon.destroy()] WebUtil File Transfer Bean being removed..
2004-oct.-25 10:41:33.921 WUO[VBeanCommon.destroy()] WebUtil Client Side Ole Functions being removed..
2004-oct.-25 10:41:33.921 WUL[VBeanCommon.destroy()] WebUtil C API Functions being removed..
2004-oct.-25 10:41:34.140 WUB[VBeanCommon.destroy()] WebUtil Browser Functions being removed..
Plz what can i do to make this webutil feature(CLIENT_GET_FILE_NAME) available on IAS/LINUX.
plz help!
TYAG.Grant,
thanks for getting back.
It is actually a conversion from forms6. The call is in a library procedure rather than in the form.
The original call is:
v_filename := client_get_file_name(v_photodir, NULL, v_ff, NULL, OPEN_FILE, TRUE);
I have also tried: v_filename := client_GET_FILE_NAME(File_Filter=> v_ff);
The webutil log stops at the point of open file and the java exception appears on the console.
Webutil log:
192.168.100.111:mvisser: 2004-Feb-26 10:51:57.812 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
192.168.100.111:mvisser: 2004-Feb-26 10:51:58.187 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
192.168.100.111:mvisser: 2004-Feb-26 10:51:58.203 WUT[loadSettings()] Local properties file loaded
192.168.100.111:mvisser: 2004-Feb-26 10:51:58.406 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
192.168.100.111:mvisser: 2004-Feb-26 10:51:58.703 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
192.168.100.111:mvisser: 2004-Feb-26 10:51:58.890 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
192.168.100.111:mvisser: 2004-Feb-26 10:51:59.281 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
192.168.100.111:mvisser: 2004-Feb-26 11:01:59.609 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to false
192.168.100.111:mvisser: 2004-Feb-26 11:01:59.921 WUF[setProperty()] Setting property WUF_FILENAME to false
192.168.100.111:mvisser: 2004-Feb-26 11:01:59.921 WUF[setProperty()] Setting property WUF_FILTER to ;*.bmp;*.jpeg;*.tiff;*.jpg
192.168.100.111:mvisser: 2004-Feb-26 11:02:00.312 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to false
192.168.100.111:mvisser: 2004-Feb-26 11:02:01.140 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
192.168.100.111:mvisser: 2004-Feb-26 11:02:01.140 WUF[getProperty()] Getting property WUF_GFN_OPENFILE -
Webutil client_get_file_name does not display the select file dialog box
hi all,
i'm using oracle forms :
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Database 10g Release 10.2.0.1.0 - 64bit Production
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
my question is:
why can't i get the client_get_file_name dialog to open when i compiled the form on unix but it works fine when compiled on my pc. I have matched the webutils' setting my pc = my unix server.
here's both the java console messages:
###JAVA CONSOLE messages when running standalone on my pc (winxp): NOTE:it works fine###
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Admin
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\Admin\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://xxxx:9999/forms/java/frmall_jinit.jar from JAR cache
Loading http://xxxx:9999/forms/java/frmwebutil.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 10.1.2.0
Loading http://xxxx:9999/forms/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
2007-Mar-22 15:08:27.750 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.765 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.765 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.781 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.781 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.843 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.843 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:27.859 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:08:28.00 WUI[getProperty()] Getting property WUC_BEAN_VERSION
2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.15 WUI[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.ffisamp.dll
2007-Mar-22 15:08:28.15 WUI[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:08:28.15 WUI[loadSettings()] Local properties file loaded
2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:08:28.31 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
2007-Mar-22 15:08:28.31 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:08:28.31 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUL[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUO[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUS[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUH[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:28.31 WUF[setProperty()] Setting property WUC_SRV_LOGGING to 0
2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to C:\
2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_FILENAME to false
2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_FILTER to *.*
2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to false
2007-Mar-22 15:08:38.171 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
2007-Mar-22 15:08:38.171 WUF[getProperty()] Getting property WUF_GFN_OPENFILE
2007-Mar-22 15:09:22.437 WUT[getProperty()] Getting property WUT_MAX_BYTES
2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILENAME to C:\firdaus\K-I-S-07-v6.0.2.614.zip
2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 2
2007-Mar-22 15:09:22.437 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILENAME to C:\firdaus\K-I-S-07-v6.0.2.614.zip
2007-Mar-22 15:09:22.437 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 4
2007-Mar-22 15:09:22.437 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
2007-Mar-22 15:09:22.453 WUT[getProperty()] Getting property WUT_STATUS
2007-Mar-22 15:09:22.453 WUT[setProperty()] Setting property WUT_FILE_INFO to C:\firdaus\K-I-S-07-v6.0.2.614.zip|0|S|Y|Muatnaik fail ke C:\firdaus\fmb\admin\K-I-S-07-v6.0.2.614.zip untuk simpanan.|Sila Tunggu...
2007-Mar-22 15:09:22.453 WUT[getProperty()] Getting property WUT_FILE_INFO
##Note: i close the web browser & java console. and opened a new web browser##
###JAVA CONSOLE messages when running IAS 10g on Unix###
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.28-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Admin
Proxy Configuration: no proxy
JAR cache enabled
Location: C:\Documents and Settings\Admin\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://XXX.XXX.XXX.XXX:9999/forms/java/frmwebutil.jar from JAR cache
Loading http://XXX.XXX.XXX.XXX:9999/forms/java/frmall_jinit.jar from JAR cache
RegisterWebUtil - Loading WebUtil Version 10.1.2.0
Loading http://XXX.XXX.XXX.XXX:9999/forms/java/jacob.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.2
2007-Mar-22 15:12:43.984 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.15 WUI[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.15 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.31 WUF[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.31 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.31 WUH[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.46 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.46 WUS[SessionFunctions.init()] Dispatcher Monitoring interval set to 5
2007-Mar-22 15:12:44.46 WUS[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.62 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.62 WUT[SessionFunctions.init()] Max Transfer chunk size set to 16384
2007-Mar-22 15:12:44.62 WUT[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.125 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.140 WUO[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.140 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.140 WUL[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.140 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
2007-Mar-22 15:12:44.156 WUB[VBeanCommon.getIPAddress()] XXX.XXX.XXX.XXX
2007-Mar-22 15:12:44.500 WUI[getProperty()] Getting property WUC_BEAN_VERSION
2007-Mar-22 15:12:44.500 WUI[getProperty()] Value of WUC_BEAN_VERSION=10.1.2.0
2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:44.687 WUI[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.ffisamp.dll
2007-Mar-22 15:12:44.687 WUI[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:12:44.687 WUI[loadSettings()] Local properties file loaded
2007-Mar-22 15:12:44.687 WUI[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
2007-Mar-22 15:12:44.890 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:44.890 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
2007-Mar-22 15:12:44.890 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:12:44.890 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
2007-Mar-22 15:12:45.93 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
2007-Mar-22 15:12:45.93 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:12:45.93 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
2007-Mar-22 15:12:45.296 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
2007-Mar-22 15:12:45.296 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
2007-Mar-22 15:12:45.296 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
2007-Mar-22 15:12:45.500 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:45.500 WUL[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:45.500 WUO[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:45.500 WUS[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:45.500 WUH[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:12:45.500 WUF[setProperty()] Setting property WUC_SRV_LOGGING to 1
2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_DIRNAME to C:\
2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_FILENAME to false
2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_FILTER to false
2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_MESSAGE to false
2007-Mar-22 15:13:12.890 WUF[setProperty()] Setting property WUF_GFN_MULTISELECT to FALSE
###Note: No error messages. it just hangs (nothing happens), and i could not do anything else on the form or even close it. i have to close the web browser.
sorry if my question is long.
Message was edited by:
wajatimurI had logged Bug 5703183 and this seems similar to that.
Solnt was
Copy frmwebutil.jar from a patched Oracle DS installation where Webutil 10.1.2.x exist to the IAS
Also clear the jinitator/javaplugin cache
Rajesh Alex -
Webutil client_get_file_name ignoring directory parameter
I am trying to use the Webutility client_get_file_name and evrything is working correctly except the directory setting. I would expect the look in directory would be c:\temp in the following code when the dialog comes up;
v_filename := client_get_file_name('C:\temp',nul,null,'Select SOFSRP file for upload',OPEN_FILE,TRUE);
But to my surprise the look in directory is "c:\my documents". No matter what I put in I get the same starting directory. I have verified the directories exist and I have admin rights on this client so permissions should not be an issue. I have even tried using other similar webutil functions like file_open_dialog or file_selection_dialog and they all behave the same. I really need to have the open dialog start in a defined directory passed to the utility. Thanks in advance.
P.S. I am using forms 10.1.2.0.2 with matching webutil version 10.1.2.0.10.1.2.3 is a patch which is installed on top of 10.1.2.0. Patch sets are only available for customers with current Support Contracts and access to My Oracle Support (support.oracle.com). Be sure to become familiar with the usage license:
http://www.oracle.com/technology/software/popup-license/standard-license.html
If you have a current support contract and access to MOS, here is the information needed to obtain the patch:
+10.1.2.3 (released March 2008) Same patch for both iAS and iDS+
Patch ID 5983622 -
Webutil - client_get_file_name - java-exception
Hello
i'm using Forms 9.0.4 with webutil 1.0.5.
when i open a file-dialog with
client_get_file_name ( 'c:\temp', null, '(JPEG-Files)|*.jpg|(All Files)|*.*', 'my headline', open_file, true );The java-Console have the following output:
java.lang.StringIndexOutOfBoundsException: String index out of range: 40
at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:90)
at org.apache.regexp.RE.matchNodes(RE.java:1161)
at org.apache.regexp.RE.matchNodes(RE.java:1376) 20 times or more
at org.apache.regexp.RE.matchAt(RE.java:1448)
at org.apache.regexp.RE.match(RE.java:1498)
at org.apache.regexp.RE.match(RE.java:1468)
at org.apache.regexp.RE.match(RE.java:1561)
at oracle.forms.webutil.file.WebUtilFileFilter.accept(WebUtilFileFilter.java:131)
at javax.swing.JFileChooser.accept(Unknown Source)
at javax.swing.plaf.basic.BasicDirectoryModel$LoadFilesThread.run(Unknown Source)any ideas?
thanks in advance!thanks Andreas!
first i thought your right, but still i get this exception, even with the trailing |.
it does not happen if the opened directory is empty or there are just a few files.
and: i find out, that it does not happen, when i put (All Files)|*.*| in front, so the file-filter is not activ.
like this:
client_get_file_name ( 'c:\temp', null, '(All Files)|*.*|(JPEG-Files)|*.jpg|', 'my headline', open_file, true );if i activate the file-filter manually with opened dialog box the exception is not shown. -
CLIENT_GET_FILE_NAME Specifying path
In a Form I am doing this:
filename := CLIENT_GET_FILE_NAME('U:\ora_devl\courtsec\WORK\', File_Filter=> 'Text Files (*.txt)|*.txt|All Files (*.*)|*.*|', dialog_type=> OPEN_FILE);
Note that I am specifying 'U:\ora_devl\courtsec\WORK\.
I starts me looking for files at 'U:\ora_devl\courtsec\. This is one level above where I said. What causes this/how do I correct?
ThanksI just tested this with Forms and WebUtil 10.1.2.3.1 and 11.1.1.4 and it appears to work correctly. If you are not using one of these versions, consider patching. If you are using one of these versions, try using this code which is comes from the webutil demo:
l_filename := client_get_file_name(directory_name => 'U:\ora_devl\courtsec\WORK'
,file_name => null
,file_filter => null
,message => null
,dialog_type => null
,select_file => null
); -
Client_Get_File_Name webutil
Hello all, i am new to oracle development and i am trying to do the forms exercises in oracle 10g. However, when i got to uploading images in Client_get_file_name, there is an error:
I have a code in an image button.
Here it is:
DECLARE
v_file VARCHAR2(250):= client_get_file_name('C:\','','JPEG Files|*.jpg|',
'Select a product image',open_file,TRUE);
it_image_id ITEM := FIND_ITEM('control.product_image');
BEGIN
client_image.read_image_file(v_file,'',it_image_id);
END;
Then when i press the image button, an error occurs it says:
“FRM-92101: There was a failure in the Forms Server during stratup.”
If ayone could help me..
Thanks in advance!Hi,
FRM-92101 is a generic error and usually it means problems with Forms libraries (pll files). Try recompiling all your pll's or at least webutil.pll.
If this does not help, try rename webutil.pll to webutil_lib.pll, for instance, and attach it to your form. For us webutil.pll did not work at all until we renamed it.
Make sure you've subclassed Webutil Java beans from webutil.olb to your form.
Let know if this helped.
P.S. When working with files the better way is:
Let user choose file (client_get_file_name or webutil_file.file_open_dialog)
Transfer file to some temp directory on application server (webutil_file_transfer.client_to_as)
Read file from application server using old Forms buil-in API, READ_IMAGE_FILE in this case.
Delete file from temporary directory on application server
This is better for network traffic and speed, since you transfer file once, but not performing many reads through network (which is slower than single transfer). -
CLIENT_GET_FILE_NAME problem in Webutil
Dear All,
I have following code to allow user to choose pdf file from his desktop;
DECLARE
V_OSUSER VARCHAR2(20);--Operating System User
BEGIN
--Get Operating System User ID
V_OSUSER := WEBUTIL_CLIENTINFO.GET_USER_NAME;
--Get Filename to be attached
:FILENAME := CLIENT_GET_FILE_NAME('C:\Documents and Settings\'||V_OSUSER||'\Desktop',NULL,
'Purchase Requisition Files)|PR*.pdf','Select Purchase Requisition....',OPEN_FILE,TRUE);
END;
After selecting the file for example:
C:\Documents and Settings\Administrator\Desktop\ABC 123.pdf
now from another button lets say, "Transfer File" i am copying the selected file to another folder.
Code is: CLIENT_HOST('CMD /C COPY '||:FILENAME ||' D:\mywork');
PROBLEM: is its not working when filename or path or targat has spaces but working if there is no space in filename or path.
Any suggestion???????After adding " in both source and target
CLIENT_HOST('CMD /C COPY "'||:FILENAME ||'" "C:\My Work"');
thanks its resolved now
Edited by: rha2 on Apr 12, 2010 1:09 PM -
Client_Get_File_Name in Forms 6i
Hi everybody,
I'm having a few problems using Client_Get_File_Name with Forms 6i. Can anyone please help me?
This is what I have in my trigger When_button_pressed:
BEGIN
:file_name := CLIENT_GET_FILE_NAME('c:/', File_Filter =>' Text Files (*.txt) | *.txt | ' );
get_file_contents(file_name);
exception when others then
message(sqlerrm);
END;
I receive an error saying that I have to declare CLIENT_GET_FILE_NAME.
This is the first time I use this Webutil and someone recomended me to use it, but is for 10g and not 6i apparently.This is a WEBUTIL function and cannot be used in 6i. WEBUTIL is for Forms 904 and newer only. You will need to write your own java bean assuming you are running 6i in a web browser.
Edited by: Michael Ferrante on Feb 11, 2010 4:56 PM -
Problem with using CLIENT_GET_FILE_NAME fuction.
Hi,
i am using WebUtil with Oracle Application Server to migrate Forms6i on Forms10g
i have got this problem, when i pressed the button to call the CLIENT_GET_FILE_NAME fuction.
oracle.forms.webutil.file.FileFunctions bean not found
WEBUTIL_FILE.FILE_SELECTION_DIALOG_INT will not work.
all configuration is good ( formsweb.cfg, webutill.pll,webutil.olb,...)
but i have got this probleme
Anyone can help me ?Sounds like you are missing some .jar file.
If I remember correctly you needed to download some jar's with "jasper" in their name and install them in some lib directory. The complete process is described in the webutil install guide. If you did grab these files, then please make sure that they are located at the correct lib-directory / classpath. -
Problem with client_get_file_name
Hi,
v_filename := client_get_file_name(........);
:b_test.test := v_filename;
Above is the simple code that I use.
But my problem is ... sometimes ( I think 1 out of 10 ), when I select
the file in the dialogue and press open button, the dialogue closes but the file path
cannot be assigned to :b_test.test.
Anyone knows the reason ?
IvanHi Gerd Volberg,
Thanks for your reply.
Does it mean that currently we cannot avoid this problem ?
Many users complain about that it is not stable. It seems that what I can do is to ask
them double click the file instead of selecting the file and then pressing the open
button.
does it solve the problem if i use webutil_file.file_open_dialog ?
Thanks.
Ivan -
File Name in Client_Get_File_name
Hello
I'm trying to set the file name in the client_get_file_name package to a default name.
But it doesn't work - what I'm doing wrong?
I wrote following in a button-trigger:
file_name := Client_Get_File_Name(null,'test_'||TO_CHAR(Sysdate,'DD.MM.YY'),'CSV Files(*.csv)|*.csv|','Save as',save_file,TRUE)
I'm using Developer 10g Rel2 and the latest available Webutil-package
Regards
RemoThis is actually a Java Bug and is fixed with Java 1.4
-
How to restrict bytes in client_get_file_name (webutil)
Does someone know how to restrict files in bytes before upload them into the database with webutil? (db10g, forms10g).
l_filename := client_get_file_name(directory_name => :GLOBAL.user_dir
,file_name => null
,file_filter => null
,message => null
,dialog_type => null
,select_file => null
Thanks.
m.Hi, the problem was the function is webutil_file.file_size (not webutil.file_size). Thanks everyone for helping me.
IF webutil_file.file_size(l_filename) > 100000 THEN
file_too_big;
END IF;
m. -
Default file name in Client_Get_File_Name
Hi,
I have a little problem.
When I use 'Client_Get_File_Name', I suggest a name file e.g. fname := Client_Get_File_Name(null,'REP_ARGOMENTO_'||TO_CHAR(Sysdate,'YYYYMMDD'),'File di Testo CSV (*.csv)|*.csv|',null,SAVE_FILE,TRUE)
but when I run the form and I open the Save window, It displaied nothing file's name.
I think that my 'Client_Get_File_Name' is correctly.
What Is the problem??
Regards
GiordanoThis is actually a Java Bug and is fixed with Java 1.4
Maybe you are looking for
-
F110 Automatic payment program for customer.
i want to generate BOE for customer with interest document. i had post invoice and interest document and based on this two document i want to generate one sp. g/l document i.e.BOE. but instead of one document, system generate two document i.e separat
-
I created an HTML signature and imported it into Outlook 2010/2013 by placing the .htm file into my %APPDATA%\Microsoft\Signatures folder. The signature looks and works great, however the signature looks distorted / severely squished in width when at
-
I'm having problems uploading my photos in iTouch. I know I have to use iTunes, but I don't even see any options to do that. Or a PHOTO category. Help?
-
I can not contact itunes store to update alication
hi, i can not contact itunes store with my iphone to update application
-
Hi all, We have systems with different codification to unicode. I know XI uses Unicode, is there any problem conecting XI with no-unicode systems? It shouldn't be...no? Regards, Urtzi.