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).

Similar Messages

  • 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.

  • Implemetaion of Java Class in Forms10g [ Francois Degrelle's Techniques]

    Hi,
    I have found one java class on web, which can be more suitable for my application than what I am using now i.e., Client_Get_file_name [webutil].
    I feel myself to replace Client_Get_file_name [webutil] with the following class.. but unfortunately I am not well versed with Java to customize this class so that it run in forms. [ [b]This java file executing good at Command prompt ]
    ================= FileChooser12.java ===============
    import java.io.File;
    import javax.swing.*;
    public class FileChooser12 {
    public static void main(String args[]) {
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    JFileChooser fileChooser =
    new JFileChooser(".");
    int status = fileChooser.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION) {
    File selectedFile =
    fileChooser.getSelectedFile();
    System.out.println("Selected: "
    + selectedFile.getParent()
    + " --- "
    + selectedFile.getName());
    System.exit(0);
    ========================= =======================
    Could anybody plz help me out to implement this class in forms10g with Java beans
    I suceeded in implementing demo given in Francois Degrelle's Techniques link
    http://fdegrelle.over-blog.com/50-categorie-265996.html , but User wants to choose file with key press .. for exaple If user press letter 'S' in file list area , it should take to the file where its starts with 'S' , just like windows nativity. This is giving by the above class.
    Hi Francois Degrelle..
    I would like say thanks to you , as I am implementing java beans in my application by the help of article in your home site.
    Please post some solution to my problem if Possible , I am in the Hope that Everything is Possible.
    Thanks
    DJ
    Thanks

    Hi Francois,
    Thanks for your quick response ,
    I would like to ask you that can we do some modifications in your GetImageFileName.java such that we can able to get the required feature.[File selection thru key press in Files List ]
    Thanks.
    DJ

  • 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.2

    Hi 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:
    wajatimur

    I 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 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

  • WUO-709: Unable to get Property: Open == Forms application using Webutil

    Hi everyone,
    I have configured Webutil and tested a demo application for loading excel data into a forms application. The application works just fine. Here is the code:
    DECLARE
    application Client_OLE2.Obj_Type;
    workbooks Client_OLE2.Obj_Type;
    workbook Client_OLE2.Obj_Type;
    worksheets Client_OLE2.Obj_Type;
    worksheet Client_OLE2.Obj_Type;
    filename                varchar2(2000);
    cell Client_OLE2.OBJ_TYPE;
    args Client_OLE2.OBJ_TYPE;
    cell_value varchar2(100);
    eod boolean:=false;
    j integer:=1;
    BEGIN
         -- The following set up communication with the excel spreadsheet
    application := Client_OLE2.create_obj('Excel.Application');
    Client_OLE2.set_property(application,'Visible','false');
    workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
    args := Client_OLE2.CREATE_ARGLIST;
    Client_OLE2.add_arg(args, 'c:\test\test.xls');
    workbook := Client_OLE2.GET_OBJ_PROPERTY(workbooks,'Open',args);
    Client_OLE2.destroy_arglist(args);
    worksheets := Client_OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
    worksheet := Client_OLE2.GET_OBJ_PROPERTY(application,'activesheet');
    --Go to the first record
    go_block('planets');
    first_record;
    loop
              If :system.record_status <> 'NEW' then
    create_record;
              end if;
    exit when eod;
         for k in 1..3 loop --3 fields per record
         args:= Client_OLE2.create_arglist;
    Client_OLE2.add_arg(args, j);
    Client_OLE2.add_arg(args, k);
    cell:= Client_OLE2.get_obj_property(worksheet, 'Cells', args);
    Client_OLE2.destroy_arglist(args);
    cell_value :=Client_OLE2.get_char_property(cell, 'Value');
    if upper(cell_value) = 'EOD' then
         eod:=true;
         Message('End of Data');
         exit;
    end if;
    --Could be done this way also ->
    /*if k =1 then
         :dept.deptno:=cell_value;
    end if;
    if k =2 then
         :dept.dname:=cell_value;
    end if;
    if k =3 then
         :dept.loc:=cell_value;
    end if;
    --Less code this way ->
    copy(cell_value,name_in('system.cursor_item'));
    next_item;
         end loop; --for
         j:=j+1;
    end loop;--main loop
    -- Release the Client_OLE2 object handles
    Client_OLE2.release_obj(cell);
    Client_OLE2.release_obj(worksheet);
    Client_OLE2.release_obj(worksheets);
    Client_OLE2.release_obj(workbook);
    Client_OLE2.release_obj(workbooks);
    Client_OLE2.invoke(application,'Quit');
    Client_OLE2.release_obj(application);
    END;
    -- cell_value :=Client_OLE2.get_num_property(cell, 'Value');
    The issue comes when I try to supply filename and path (here, c:\test\test.xls) through a file open dialog. I tried each of these:
    1.
    filename := client_get_file_name
    (directory_name => 'C:\'
    ,file_name => 'test'|| '.xls'
    ,file_filter => 'Excel (*.xls)|*.xls|'
    ,message => 'Select client side filename where App Server file will be saved'
    ,dialog_type => OPEN_FILE
    ,select_file => TRUE
    2.
    filename := Client_Get_File_Name(directory_name => 'C:\'
    ,file_name => null
    ,file_filter => null
    ,message => null
    ,dialog_type => null
    ,select_file => null
    3.
    filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
    On using the above, I DO get a file open box. However, after browsing and selecting a file, I am getting the error message:
    WUO-709 [OleFunctions.get_obj_property_args()] Unable to get Property: Open; Exception com.jacob.com.ComFailException: Can't map name to dispid: Open
    I have checked the documentation on 'WUO-709' but cannot seem to figure out why it's not working.
    Sorry for the lengthy description. Would greatly appreciate help on this.
    - Amit

    I forgot to mention that in the modified code, I am supplying 'filename' as:
    filename := client_get_file_name ('','','','Select a file to Upload ',null,TRUE);
    args := Client_OLE2.CREATE_ARGLIST;
    Client_OLE2.add_arg(args, filename);
    Thanks,
    Amit

  • 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?
    Thanks

    I 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

    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.

  • 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

  • WEBUTIL - file extensions

    I am using WEBUTIL to download files to my harddrive. We previously used Forms 6i, but is in the process of upgrading to 10g. I have replaced get_file_name with client_get_file_name.
    The problem I am having is that when I use the save dialog to save, I have to put the filename . extension, it does not pick the extension up automatically. Previously with D2KWUTIL, I could put TEST and it would save it as TEST.bmp. Now I have to type in TEST.bmp otherwise it saves it as TEST.
    Does anyone know how to get around this.

    This is due to a slight difference of behaviour between the Java Files dialog and the Windows Native one. The best thing to do here would be to put in a tar with support so that they can log a bug on the difference in behaviour between GET_FILE_NAME and CLIENT_GET_FILE_NAME
    In the short term though I guess you'd be best to check the returned filename to see if it has an extension and in code add the "best guess" extension automatically.

  • WebUtil & Client_OLE2 - Urgent!

    Hi!
    I use Oracle9iASR2, Forms9i (Patch 9.2.0.3) and JInitiator 1.3.1.13!
    I was following all webutil_manual.pdf and readme.html steps!
    I have no problem with client_get_file_name or client_host calls, but I have a tedious problem when I'm trying to call Client_OLE2.create_obj('Excel.Application'), for instance.
    Java Console shows:
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError
         at oracle.forms.webutil.ole.OleFunctions.create_obj(OleFunctions.java:513)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(OleFunctions.java:218)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    This is my classpath parameter in default.env file:
    CLASSPATH=d:\Oracle9iAS2\jlib\importer.jar;d:\Oracle9iAS2\forms90\java;D:\Oracle9iAS2\jlib\debugger.jar;D:\Oracle9iAS2\jlib\ewt3.jar;D:\Oracle9iAS2\jlib\share.jar;D:\Oracle9iAS2\jlib\utj90.jar;d:\webutil\lib\webutil.jar;D:\Oracle9iAS2\jdk\jre\lib\rt.jar
    Could someone help me, please?
    Dejan

    A machine of Oracle9iAS must be powerful, I guess! I have 512MB RAM, only, and a recommendation is 1GB at least. It works slowly, but that's only a test environment. I have strong servers in my company, so the most significant thing at the moment is that webutil concept works. That is the basic reason for migration from 6i, but not the only one. Now I need a library of properties for the word and excel invoking, for a complete settings of any document or worksheet. If someone has something similar, please send me! My address is [email protected] . Thank you in advance!

Maybe you are looking for