Webutil.host and space in filename ....

Hello,
Do someone have found a solution at the problem of space in filename calling whith webutil.host ?
under winxp if I do :
CMD /C start "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE" "C:\travail\COMMENTAIRES DU DOSSIER 5200257".doc
it works well
But do the same in Webutil.host command ... and it fail :<
I see that this was an old problem in post but dunot have found any response ..
tk anyway.

So, i have try all these options and found that webutil seems to cut spaces.
As I have this
LC$Cmd := 'cmd /c start "C:\Program files\Microsoft Office\OFFICE11\WINWORD.EXE" "c:\travail\COMMENTAIRES DU DOSSIER 5200257.doc"'
WEBUTIL_HOST.Nonblocking( LC$Cmd ) ;     
webutil launch :
"C:\Program files\Microsoft Office\OFFICE11\WINWORD.EXE" "c:\travail\COMMENTAIRES DU DOSSIER 5200257.doc"'
and so it dunot found the document
bcs it make all space -> 1 space
strange !!
perlaps some have got same problem ?

Similar Messages

  • Webutil HOST and NO_SCREEN option

    How can I hide the DOS window that open on the client side when I use webutil's HOST command?
    I would like to be able to do the same thing as when using the NO_SCREEN option with forms' HOST command.
    It is not very nice for the user to see little black windows opening and closing....
    MJH

    I know this thread is old, but I figured I would contribute this in case anyone is still looking for an answer:
    http://www.commandline.co.uk/cmdow/
    It is third-party code, but it appears to do just what it claims to.

  • WebUtil:  oracle.forms.webutil.host.Host bean not found

    Hi. This is my first attempt using WebUtil. The following code is in my When-New-Form-Instance trigger:
    client_host('N:\TTMS\ITS\vbasic\compiled\MenuUpdate.exe');
    This is the error I receive:
    oracle.forms.webutil.host.Host bean not found
    I've included my formsweb.cfg below for your reference. Note that the application is using the [ttmsmenu] configuration.
    Thanks in advance for your help with this problem.
    ***FORMSWEB.CFG***
    # $Id: formsweb.cfg 15-apr-2005.13:17:30 pkuhn Exp $
    # formsweb.cfg defines parameter values used by the FormsServlet (frmservlet)
    # This section defines the Default settings. Any of them may be overridden in the
    # following Named Configuration sections. If they are not overridden, then the
    # values here will be used.
    # The default settings comprise two types of parameters: System parameters,
    # which cannot be overridden in the URL, and User Parameters, which can.
    # Parameters which are not marked as System parameters are User parameters.
    # SYSTEM PARAMETERS
    # These have fixed names and give information required by the Forms
    # Servlet in order to function. They cannot be specified in the URL query
    # string. But they can be overridden in a named configuration (see below).
    # Some parameters specify file names: if the full path is not given,
    # they are assumed to be in the same directory as this file. If a path
    # is given, then it should be a physical path, not a URL.
    # USER PARAMETERS
    # These match variables (e.g. %form%) in the baseHTML file. Their values
    # may be overridden by specifying them in the URL query string
    # (e.g. "http://myhost.mydomain.com/forms/frmservlet?form=myform&width=700")
    # or by overriding them in a specific, named configuration (see below)
    [default]
    #WebUtilArchive=frmwebutil.jar,jacob.jar
    #WebUtilLogging=off
    #WebUtilLoggingDetail=normal
    #WebUtilErrorMode=Alert
    #WebUtilDispatchMonitorInterval=5
    #WebUtilTrustInternal=true
    #WebUtilMaxTransferSize=16384
    # System parameter: default base HTML file
    baseHTML=base.htm
    # baseHTML=webutilbase.htm
    # System parameter: base HTML file for use with JInitiator client
    baseHTMLjinitiator=basejini.htm
    # baseHTMLjinitiator=webutiljini.htm
    # System parameter: base HTML file for use with Sun's Java Plug-In
    baseHTMLjpi=basejpi.htm
    # baseHTMLjpi=webutiljpi.htm
    # System parameter: delimiter for parameters in the base HTML files
    HTMLdelimiter=%
    # System parameter: working directory for Forms runtime processes
    # WorkingDirectory defaults to <oracle_home>/forms if unset.
    workingDirectory=
    # System parameter: file setting environment variables for the Forms runtime processes
    envFile=default.env
    # Forms runtime argument: whether to escape certain special characters
    # in values extracted from the URL for other runtime arguments
    escapeparams=true
    # Forms runtime argument: which form module to run
    form=test.fmx
    # Forms runtime argument: database connection details
    userid=
    # Forms runtime argument: whether to run in debug mode
    debug=no
    # Forms runtime argument: host for debugging
    host=
    # Forms runtime argument: port for debugging
    port=
    # Other Forms runtime arguments: grouped together as one parameter.
    # These settings support running and debugging a form from the Builder:
    otherparams=buffer_records=%buffer% debug_messages=%debug_messages% array=%array% obr=%obr% query_only=%query_only% quiet=%quiet% render=%render% record=%record% tracegroup=%tracegroup% log=%log% term=%term%
    # Sub argument for otherparams
    buffer=no
    # Sub argument for otherparams
    debug_messages=no
    # Sub argument for otherparams
    array=no
    # Sub argument for otherparams
    obr=no
    # Sub argument for otherparams
    query_only=no
    # Sub argument for otherparams
    quiet=yes
    # Sub argument for otherparams
    render=no
    # Sub argument for otherparams
    record=
    # Sub argument for otherparams
    tracegroup=
    # Sub argument for otherparams
    log=
    # Sub argument for otherparams
    term=
    # HTML page title
    pageTitle=Oracle Application Server Forms Services
    # HTML attributes for the BODY tag
    HTMLbodyAttrs=
    # HTML to add before the form
    # HTMLbeforeForm=
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    # HTML to add after the form
    HTMLafterForm=
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms/lservlet
    # Forms applet parameter
    codebase=/forms/java
    # Forms applet parameter
    #imageBase=DocumentBase
    imageBase=codeBase
    # Forms applet parameter default 750
    # width=1000
    # width=100%
    width=500
    # Forms applet parameter default 600
    # height=700
    # height=100%
    height=500
    # Forms applet parameter default false
    separateFrame=true
    # Forms applet parameter
    # splashScreen=
    splashScreen=no
    #splashScreen=ttmslogo_new.gif
    # Forms applet parameter
    background=ttmslogo_new.gif
    # Forms applet parameter
    lookAndFeel=Oracle
    # Forms applet parameter
    colorScheme=teal
    # Forms applet parameter
    logo=ttms_banner.gif
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar
    # Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
    archive=frmall.jar
    # Number of times client should retry if a network failure occurs. You should
    # only change this after reading the documentation.
    networkRetries=0
    # Page displayed to Netscape users to allow them to download Oracle JInitiator.
    # Oracle JInitiator is used with Windows clients.
    # If you create your own page, you should set this parameter to point to it.
    jinit_download_page=/forms/jinitiator/us/jinit_download.htm
    # Parameter related to the version of JInitiator
    jinit_classid=clsid:CAFECAFE-0013-0001-0022-ABCDEFABCDEF
    # Parameter related to the version of JInitiator
    jinit_exename=jinit.exe#Version=1,3,1,22
    # Parameter related to the version of JInitiator
    jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    # Page displayed to users to allow them to download Sun's Java Plugin.
    # Sun's Java Plugin is typically used for non-Windows clients.
    # (NOTE: you should check this page and possibly change the settings)
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html
    # Parameter related to the version of the Java Plugin
    jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # Parameter related to the version of the Java Plugin
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # EM config parameter
    # Set this to "1" to enable Enterprise Manager to track Forms processes
    em_mode=0
    # Single Sign-On OID configuration parameter
    oid_formsid=%OID_FORMSID%
    # Single Sign-On OID configuration parameter
    oracle_home=C:\DevSuiteHome_1
    # Single Sign-On OID configuration parameter
    formsid_group_dn=%GROUP_DN%
    # Single Sign-On OID configuration parameter: indicates whether we allow
    # dynamic resource creation if the resource is not yet created in the OID.
    ssoDynamicResourceCreate=true
    # Single Sign-On parameter: URL to redirect to if ssoDynamicResourceCreate=false
    ssoErrorUrl=
    # Single Sign-On parameter: Cancel URL for the dynamic resource creation DAS page.
    ssoCancelUrl=
    # Single Sign-On parameter: indicates whether the url is protected in which
    # case mod_osso will be given control for authentication or continue in
    # the FormsServlet if not. It is false by default. Set it to true in an
    # application-specific section to enable Single Sign-On for that application.
    ssoMode=false
    # The parameter allow_debug determines whether debugging is permitted.
    # Administrators should set allow_debug to "true" if servlet
    # debugging is required, or to provide access to the Forms Trace Xlate utility.
    # Otherwise these activities will not be allowed (for security reasons).
    allow_debug=false
    # Parameter which determines whether new Forms sessions are allowed.
    # This is also read by the Forms EM Overview page to show the
    # current Forms status.
    allowNewConnections=true
    # EndUserMonitoring
    # EndUserMonitoringEnabled parameter
    # Indicates whether EUM/Chronos integration is enabled
    EndUserMonitoringEnabled=
    # EndUserMonitoringURL
    # indicates where to record EUM/Chronos data
    EndUserMonitoringURL=
    # Example Named Configuration Section
    # Example 1: configuration to run forms in a separate browser window with
    # "generic" look and feel (include "config=sepwin" in the URL)
    # You may define your own specific, named configurations (sets of parameters)
    # by adding special sections as illustrated in the following examples.
    # Note that you need only specify the parameters you want to change. The
    # default values (defined above) will be used for all other parameters.
    # Use of a specific configuration can be requested by including the text
    # "config=<your_config_name>" in the query string of the URL used to run
    # a form. For example, to use the sepwin configuration, your could issue
    # a URL like "http://myhost.mydomain.com/forms/frmservlet?config=sepwin".
    [sepwin]
    separateFrame=True
    lookandfeel=Generic
    # Example Named Configuration Section
    # Example 2: configuration forcing use of the Java Plugin in all cases (even if
    # the client browser is on Windows)
    [jpi]
    baseHTMLJInitiator=basejpi.htm
    # Example Named Configuration Section
    # Example 3: configuration running the Forms ListenerServlet in debug mode
    # (debug messages will be written to the servlet engine's log file).
    [debug]
    serverURL=/forms/lservlet/debug
    # Sample configuration for deploying WebUtil. Note that WebUtil is shipped with
    # DS but not AS and is also available for download from OTN.
    [webutil]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    lookAndFeel=oracle
    [ttmsmenu]
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    baseHTML=webutilbase.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar
    lookAndFeel=oracle
    width=500
    height=500
    background=no
    form=ttmsmenu.fmx

    Dumb dumb dumb.
    I was running this form out of Form Builder 10g. At some point I changed the Application Server URL (Edit => Preferences => Runtime menus) from:
    http://ssbuechl2.div16.ibm.com:8889/forms/frmservlet?config=ttmsmenu
    to:
    http://ssbuechl2.div16.ibm.com:8889/forms/frmservlet?
    So my customized configuration with all the WebUtil references was not being referenced and I was getting the error.
    Dumb dumb dumb.

  • Webutil.host.HostBean not found WEBUTIL_HOST.execute will not work

    Hi everyone:
    I've got a form. I've attached webtill.pll and subclassed webutil.olb.
    In the WHEN-NEW-FORM-INSTANCE trigger it does:
    client_host('cmd /c cd > arch.txt');
    When I execute my form I got the errror:
    webutil.host.HostBean not found
    WEBUTIL_HOST.execute will not work
    Could anyone give me some help on it?
    Thanks!
    Carolina

    Hi!
    this is what I got in the Java console
    JInitiator: Versión 1.3.1.22
    Usar versión JRE 1.3.1.22-internal Java HotSpot(TM) Client VM
    Directorio local del usuario = C:\Documents and Settings\Administrador
    Configuración del delegado: sin delegado
    JAR cache enabled
    Location: C:\Documents and Settings\Administrador\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://rx26201:7778/forms/java/frmall_jinit.jar from JAR cache
    Loading http://rx26201:7778/forms/java/frmwebutil.jar from JAR cache
    Loading http://rx26201:7778/forms/java/jacob.jar from JAR cache
    Loading http://rx26201:7778/forms/java/dgrImages.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La versión del applet Forms es: 10.1.2.0
    thanks!

  • Webutil Host bean error

    I'm trying to use the webutil.nonblocking procedure, i followed all the steps in the user guide to install the webutil and i attached the library to the form and subclassed the object group, but when running the form i receive this error
    oracle.forms.webutil.host.Host bean not found.Webutil_host.execute will not work
    can anybody help
    regards
    lilian

    Problem solved ..
    check for the following
    1- make sure the virtual path in the orion-xml file is correctly set.
    2-make sure that the signature of the jacob,jar and frmwebutil.jar is successfully done.
    3- check the WebArchive entry is correctly set
    hope this will help ..
    Regards
    Lilian

  • How to change Host directory location?(Problems with host and ed)

    Hi I'm having a problem with the commands Host and Ed. The problem being that when I run them they send back an error saying
    SQL>host
    /bin/gnome-terminal: No such file or directory
    or
    SQL> ed
    Wrote file /home/joe/Documents/editfile.sql
    /bin/gnome-terminal: No such file or directory
    The problem is that /bin/gnome-terminal is not the correct location for my terminal directory, /usr/bin/gnome-terminal is. Are there any suggestions how I can be able to change it? I'm running SQLPlus 11.2.0.1.0 and I'm using ElementaryOS(made from Ubuntu). Let me know if there is any other information needed to help fix this.

    This is not a SQL or PL/SQL language question  and thus off topic. As it is Linux o/s related, I think it is better suited for the Oracle Linux forum space.
    My guess is, from the little info posted, that your TERM environment variable is not correctly set.

  • [vmware] Best way to share files between host and client

    Good afternoon!
    I have successfully installed VMware server on my machine and set up a virtual machine, powering Windows XP for study issues (emulation via wine does not do the trick for me). The virtual machine runs fast and stable but does not meet my requirements unless I have two issues faced:
    First:
    How to access a USB pendrive monunted by the host system properly within the client?
    Second:
    What is the best way to share file system space between host and client? Should I set up a Samba share which is accessible for both host and client or is it save to grant my VM access to my physical hard disc as a whole (using it as a partition)?
    Thanks for answers in advance, I have still quite a lot to learn, when it comes to VMs.
    Regards,
    ~cg

    Do not setup your VMware to be able to access your physical disk as a whole. This would have you mounting the filesystem twice, corrupting it in the process.
    You /can/ setup VMware with Sharing Folders that lets you share your filesystem (either / or just /home or something else) and that is what I would recommend.
    As for accessing the pen drive from both operating systems at once, I'd say use the same Sharing Folders method. I always share /mnt so that I can access my cdrom/USB/etc from the vmware OS.
    The sharing folders is basically the same as a samba share, but uses vmware's own method (HGFS). Samba is more secure (if you are worried about your VMware OS breaking from it's shell and attacking your real filesystem, which is unlikely). You need the vmware tools installed to make use of it.

  • WEBUTIL (attach and view files from database) --- Vista vs. XP differences

    I have attached the following code. We are using Oracle Application Server 10.1.2.3 patch
    My questions are provided following the code.
    -- Open the local temporary file --
    -- v_COMMAND := 'cmd /c start "" /WAIT "' || v_FULL_FILENAME || '" /w';
    v_COMMAND := 'cmd /c start "" /WAIT "' || v_FULL_FILENAME || '"';
    v_PROCESS_ID := WEBUTIL_HOST.blocking( v_COMMAND );
    v_TEMP := WEBUTIL_HOST.GET_RETURN_CODE( v_PROCESS_ID );
    If v_TEMP <> 0 Then
    r_ERR_MSG := 'Host command error(' || To_Char( v_TEMP ) || ')';
    v_FLAG := WEBUTIL_FILE.DELETE_FILE( v_FULL_FILENAME ) ;
    RAISE PANIC;
    End if ;
    if p_FILE_ACCESS = 'W' then
    -- Re-store the modified file in the database --
    If Not Webutil_File_Transfer.Client_To_DB ( v_FULL_FILENAME, 'mis_mst.FT_SUP_FILES', 'FILE_DATA',
    'FILE_NBR = ' || To_Char( p_FILE_NBR ) ) Then
    r_ERR_MSG := 'Error on storing file';
    Raise PANIC;
    Else
    Clear_Message;
    -- show_message('File re-stored in the database') ;
    End if;
    else
    Clear_Message;
    -- show_message('NOTE: "' || v_FILENAME || '" was not updated in the database' );
    end if;
    -- Remove the temporary local file --
    v_FLAG := WEBUTIL_FILE.DELETE_FILE( v_FULL_FILENAME ) ;
    If v_FLAG = FALSE Then
    Bell ;
    -- show_message( 'Error removing "' || v_FULL_FILENAME || '" from the PC.' );
    End if ;
    For the most part, we are able to open files in both XP and Vista. We are having a couple of problems with certain file types; specifically, (JPG and ZIP).
    We have a workaround, but I would like to know why the problem occurs.
    When the user opens a JPG from our application using the Windows Vista client (JPG are associated with Windows Media Player by default), the system will not open the file. The system states that the file doesn't exist. What I think is happening is that Windows Media Player takes awhile to load and before WMP is fully loaded, the file is deleted (the /WAIT command must not fully wait for the command to complete, causing Forms to continue with its code to delete the file). When WMP tries to open the file, the file has already been deleted from the operating system. I have tried the "/WAIT <filename>" and the "/WAIT <filename> /w" parameters.
    The workaround is to reassociate the file with MS Paint or Microsoft Office Viewer (instead of Windows Media Player).
    Are any of you aware of issues (or differences) in the wait command between Windows XP and Windows Vista?

    Thank you, Thank you, Thank you!!!!
    I believe that will work (adding a sequence number to the end of the filename)!
    We do not allow a user to update the file, only view. If a user wants to make a change, they need to remove the existing file (from the database), create a new file (outside of our application), and attach the file in our application (into the database). All updates occur outside of our application - we are not a document authoring system, just a document storage system.
    Once again, many thanks on the solution!
    Mike

  • Help with the HOST and START, forms 6i

    Hi i like open to image with de Host and Start in Forms 6i.
    For example Host('start '||:path||'', NO_SCREEN ); -> is correct if the path is c:\ ... but if the path is more longer with space in white for example C:\Documents and settings ... i put the quotes "C:\Documents and settings ..." but Doesn't open the image, another window (MSDOS) open... :S

    Hello,
    Try this:
    Host('cmd /c START "" "' || :path || '" ');Francois

  • Oracle9i Host and Text_IO Command Issues

    We are currently attempting to migrate from Forms6i to Oracle9i Forms. I understand that the current Host and Text_IO commands execute on the application server tier and NOT on the client. To counter the Host command issue the migration documentation suggests using the 'Client Host Command PJC' demo which can be incorporated into a form. However, the only Host command that seems to respond is the 'Notepad' command. I need to use other Host commands. Has anyone actually used the aforementioned 'Client Host PJC' in an Oracle9i form?
    Also, I am aware of a utility being developed by Oracle called 'WebUtil' which is suppose to simplify this process. Any idea when this utility will be launched and made available to developers? Thanks in advance for your help.

    Hello:
    Robin Zimmermann, [email protected] g feng and every one:
    I want to integrate a third party report (it is brio's sqr), so i must run sqr from form with host command.
    first i install 9i as on window 2000,sqr .manually run sqr on 2000,then call sqr from form
    with host command ,it is just work well.then i use web.showdocument push the report to end-user,my goal has get
    But when i do the same on aix 5l,host command seems not response .i can only run this command:
    echo hello &gt; /tmp/hello.log.
    other system command ,such as " chmod 777 /tmp/hello.log " can't execute ,who can help me or some other ideas?
    lixz

  • How can i limit the user to enter only A to Z and space in JFormattedText

    dear
    i want to use JFormatedTextField in two manners
    1.Limit the no of charecters.means in a text field only 20 charecters r allowed.
    2.and also check the enterd charecter must be a to z and space not other chareters r allowed.
    3.same for numbers means 0 to 9 and decimal.
    how can i do by using the JFormated TextFilef.

    Probably lacks in some cases but what the hell.
    * Filename:           JSMaskedTextField.java
    * Creation date:      22-mei-2004
    * Author:                Kevin Pors
    package jsupport.swingext;
    import java.awt.event.KeyEvent;
    import java.util.Arrays;
    import javax.swing.JTextField;
    * A masked textfield is a textfield which allows only a specific mask of
    * characters to be typed. If characters typed do not occur in the mask
    * provided, the typed character will not be 'written' at all. The default mask
    * for this <code>JSMaskedTextField</code> is <code>MASK_ALPHA_NUMERIC</code>
    * @author Kevin Pors
    * @version 1.32
    public class JSMaskedTextField extends JTextField {
        /** Masking for alphabetical lowercase characters only. */
        public static final String MASK_ALPHA_LCASE = "abcdefghijklmnopqrstuvwxyz ";
        /** Masking for alpha-numeric characters (lcase/ucase) only. */
        public static final String MASK_ALPHA_NUMERIC = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for alphabetical uppercase characters only. */
        public static final String MASK_ALPHA_UCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
        /** Masking for numbers only. */
        public static final String MASK_NUMERIC = "0123456789";
        /** Masking for hexadecimals. */
        public static final String MASK_HEXADECIMAL = "0123456789ABCDEF";
         * An array of keyevent constants defining which keys are always to be
         * allowed, no matter what.
        private final int[] ALWAYS_ALLOWED = new int[] { KeyEvent.VK_BACK_SPACE,
                KeyEvent.VK_DELETE, KeyEvent.VK_UP, KeyEvent.VK_DOWN,
                KeyEvent.VK_LEFT, KeyEvent.VK_RIGHT, KeyEvent.VK_SHIFT,
                KeyEvent.VK_HOME, KeyEvent.VK_END};
        /** Boolean specifying whether casing should be ignored. */
        private boolean ignoringCase = true;
        /** Specifying whether the maskin is enabled */
        private boolean isMaskingEnabled = true;
        /** The mask for the textfield. */
        private String mask = MASK_ALPHA_NUMERIC;
         * Creates a default number field.
        public JSMaskedTextField() {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a number field, with a specified number of columns.
         * @param columns The columnnumber.
        public JSMaskedTextField(int columns) {
            super(null, null, columns);
            Arrays.sort(ALWAYS_ALLOWED);
         * Creates a JSMaskedTextField with a masking.
         * @param mask The masking to be used.
        public JSMaskedTextField(String mask) {
            super(null, null, 0);
            Arrays.sort(ALWAYS_ALLOWED);
            setMask(mask);
         * Gets the masking for this masked textfield.
         * @return Returns the mask.
        public String getMask() {
            return this.mask;
         * Gets whether this JSMaskedTextField should be ignoring casing.
         * @return Returns if the component should be ignoring casing.
        public boolean isIgnoringCase() {
            return this.ignoringCase;
         * Checks whether masking is enabled. Default should be true.
         * @return Returns true if masking is enabled, false if not.
        public boolean isMaskingEnabled() {
            return this.isMaskingEnabled;
         * Sets whether it should be ignoring casing when checking for alpha-chars.
         * @param ignoringCase The ignoringCase to set.
        public void setIgnoringCase(boolean ignoringCase) {
            this.ignoringCase = ignoringCase;
         * Sets the masking for this textfield. The masking will determine which
         * characters can be typed. If the characters in de <code>mask</code> do
         * not occur in the typed character, it won't be typed.
         * @param mask The mask to set.
        public void setMask(String mask) {
            this.mask = mask;
         * Sets the masking enabled. If <code>false</code> this component will
         * behave just like a normal textfield.
         * @param isMaskingEnabled true if masking should be enabled.
        public void setMaskingEnabled(boolean isMaskingEnabled) {
            this.isMaskingEnabled = isMaskingEnabled;
         * Sets text of this textfield. If the blah blah.
         * @see javax.swing.text.JTextComponent#setText(java.lang.String)
        public void setText(String text) {
            for (int i = 0; i < text.length(); i++) {
                if (getMask().indexOf(text.charAt(i)) < 0) { // does not occur
                    return;
            super.setText(text);
         * @see javax.swing.JComponent#processKeyEvent(java.awt.event.KeyEvent)
        protected void processKeyEvent(KeyEvent e) {
            if (!isMaskingEnabled()) {
                return;
            char typed = e.getKeyChar();
            int code = e.getKeyCode();
            for (int i = 0; i < ALWAYS_ALLOWED.length; i++) {
                if (ALWAYS_ALLOWED[i] == code) {
                    super.processKeyEvent(e);
                    return;
            if (typed == KeyEvent.VK_BACK_SPACE) {
                super.processKeyEvent(e);
            if (isIgnoringCase()) {
                String tString = new String(typed + "");
                String ucase = tString.toUpperCase();
                String lcase = tString.toLowerCase();
                if (getMask().indexOf(ucase) < 0 || getMask().indexOf(lcase) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
                    return;
            } else { // not ignoring casing
                if (getMask().indexOf(typed) < 0) {
                    e.consume();
                } else {
                    super.processKeyEvent(e);
    }

  • Spaces in Filenames

    Has anyone had a problem opening audio files in Audition CS5.5 that have multiple consecutive spaces in the file names?
    I'm working with a client who has hundreds of audio files with multiple consecutive spaces in the filenames who's transitioning from Cool Edit Pro to Audition CS5.5 and is still in the Audition trial period. He claims that he was originally able to open these files for several days with no problem, but suddenly he finds that when he double-clicks on one of these files, Audition will open but the file will not. No error shows up; Audition behaves as if it were opened without specifying a file.
    On the plus side, the files can still be opened from within Audition through the 'open' dialog.
    If, as I suspect, no one has run into this problem due to their not using multiple consecutive spaces in filenames, it would be great if some knowledgeable person could rename a file or two to include such spaces and see if the problem shows up.
    Thanks,
    Dave

    I don't want to put words in Charles' mouth but from his phrasing, I think that might be a safe assumption.
    However, it's wrth noting that, now that CS6 has been announced for imminent delivery, anyone buying CS5.5 in the meantime gets a free upgrade.  From all the posts in here recently, it appears that CS6 is functionally similar to CS5.5 but with FAR more features, some new, some restored from earlier versions.

  • Why should i add a dot and space to execute this oracle provided script?

    When multiple oracle databases are installed in one machine, we need to set the environment variables like ORACLE_HOME, ORACLE_SID before logging into the respective database. For this, oracle provides as script called oraenv.
    If we try to execute oraenv like
    oraenv   #without a dot and space before the filenamethe file seem to get executed but none of the env variables actually get set.
    To execute this script correctly we have to put a dot and a space before the filename like
    . oraenvWhat is difference between these two way of executing scipts?
    The orenv code
    # $Header: oraenv.sh.pp 19-jul-2001.14:02:07 jboyce Exp $ oraenv.sh.pp Copyr (c) 1991 Oracle
    # usage: . oraenv
    # This routine is used to condition a user's environment for access to
    # an ORACLE database. It will prompt for the value of the new SID unless
    # the variable ORAENV_ASK is set to NO, in which case it will use the
    # current value of ORACLE_SID.
    # The character "*" denotes a null SID.
    # NOTE:          Due to constraints of the shell in regard to environment
    # -----          variables, the command MUST be prefaced with ".". If it
    #          is not, then no permanent change in the user's environment
    #          can take place.
    case ${ORACLE_TRACE:-""} in
        T)  set -x ;;
    esac
    # Determine how to suppress newline with echo command.
    N=
    C=
    if echo "\c" | grep c >/dev/null 2>&1; then
        N='-n'
    else
        C='\c'
    fi
    # Set minimum environment variables
    # ensure that OLDHOME is non-null
    if [ ${ORACLE_HOME:-0} = 0 ]; then
        OLDHOME=$PATH
    else
        OLDHOME=$ORACLE_HOME
    fi
    case ${ORAENV_ASK:-""} in                       #ORAENV_ASK suppresses prompt when set
        NO)     NEWSID="$ORACLE_SID" ;;
        *)     case "$ORACLE_SID" in
             "")     ORASID=$LOGNAME ;;
             *)     ORASID=$ORACLE_SID ;;
         esac
         echo $N "ORACLE_SID = [$ORASID] ? $C"
         read NEWSID
         case "$NEWSID" in
             "")          ORACLE_SID="$ORASID" ;;
             *)             ORACLE_SID="$NEWSID" ;;          
         esac ;;
    esac
    export ORACLE_SID
    ORAHOME=`dbhome "$ORACLE_SID"`
    case $? in
        0)     ORACLE_HOME=$ORAHOME ;;
        *)     echo $N "ORACLE_HOME = [$ORAHOME] ? $C"
         read NEWHOME
         case "$NEWHOME" in
             "")     ORACLE_HOME=$ORAHOME ;;
             *)     ORACLE_HOME=$NEWHOME ;;
         esac ;;
    esac
    export ORACLE_HOME
    # Put new ORACLE_HOME in path and remove old one
    case "$OLDHOME" in
        "")     OLDHOME=$PATH ;;     #This makes it so that null OLDHOME can't match
    esac                    #anything in next case statement
    case "$PATH" in
        *$OLDHOME/bin*)     PATH=`echo $PATH | \
                       sed "s;$OLDHOME/bin;$ORACLE_HOME/bin;g"` ;;
        *$ORACLE_HOME/bin*)     ;;
        *:)               PATH=${PATH}$ORACLE_HOME/bin: ;;
        "")               PATH=$ORACLE_HOME/bin ;;
        *)               PATH=$PATH:$ORACLE_HOME/bin ;;
    esac
    export PATH
    # Install any "custom" code here
    # Locate "osh" and exec it if found
    ULIMIT=`LANG=C ulimit 2>/dev/null`
    if [ $? = 0 -a "$ULIMIT" != "unlimited" ] ; then
      if [ "$ULIMIT" -lt 2113674 ] ; then
        if [ -f $ORACLE_HOME/bin/osh ] ; then
         exec $ORACLE_HOME/bin/osh
        else
         for D in `echo $PATH | tr : " "`
         do
             if [ -f $D/osh ] ; then
              exec $D/osh
             fi
         done
        fi
      fi
    fi

    The dot is used to "source" a file. It is commonly used to change your environment variables without forcing you to log out and back in again for the changes to take effect. Check out "source command for Solaris 10" or something similiar for more info.

  • How do I correct version conflicts between host and RT engine?

    I was running LabVIEW RT7.0 on a host PC (WinXP) and PXI-8145 system. I installed LV7.1 and LVRT7.1 on the host. However, the software versions in MAX still report as 7.0
    I would like to upgrade to 7.1 on my 8145-RT. I cannot run 7.1 on the host and target the 7.0 RT engine (results in version conflict). Version 7.0 is installed on C:, but 7.1 is installed on D: due to space.
    How can I get MAX to recognize my latest version (which should allow my to download it to the PXI)?
    Thanks.
    Laine

    Thank you for the response.
    C:\RT Images contains only a single folder for NI-PAL
    However, I backed it up and copied the RT Images folder from D:, but still the same effect (MAX thinks 7.0 is the latest LabVIEW version).
    D:\RT Images\LabVIEW\7.0 contains subfolders and install scripts (e.g., 7002.rts)
    D:\RT Images\LabVIEW\7.1 contains subfolders but no install scripts. Also, there are many fewer files in these subfolders than in the 7.0 folder. I'm worried about trying to manually install from the 7.1 folder.
    Any other suggestions? Thanks.
    Laine

  • Capital Letters and spaces when naming files or images

    When I first started creating a web page, I was under the impression that I should only use lower case and use an underscore instead of a space. Is this still the case or have things moved on since then.
    If not, could somebody please let me know when I should use Capital Letters and spaces.
    Does it affect google ratings or any search engine ratings in any way.
    Thanks to all who have answered my previous posts. I do not know what I would have done without this forum.
    All the best to all and thanks again.
    Michael

    No change.
    Stick to A-Z, a-z, 0-9, hyphen and underscore. Avoid spaces and special characters such as ?, ! and #.
    It's a matter of differences in server operating systems. Spaces in filenames can be read differently by different servers and may lead to broken links.
    Javascript and some operating systems (e.g. Linux) are case sensitive.
    On Linux: MyPic.jpg is a different file to mypic.jpg
    In addition, Uppercase/lowercase is partly a question of consistency to avoid user error.
    Some users here have inexplicable (to them) errors because Images/image.jpg and images/image.jpg are two different paths.
    Choose a simple, logical (and legal) file naming convention (e.g. all lowercase) which you find most comfortable and stick to it at all times.

Maybe you are looking for

  • Unable to use wi-fi or bluetooth on my iphone 4s

    unable to use wi-fi or bluetooth on my iphone 4s

  • Error bars in illustrator

    help!! I need to insert the standard deviation in a column graph created in illustrator...how can i do this?

  • Compatibility with Office for Mac

    I'll ask this in the Pages section, though it also applies to Numbers. I currently use MS Office for Mac 2011, but would like to uninstall it and use iWork 09.  I do have to interactively work on basic text documents and basic spreadsheets with other

  • Linking Azure website with Remote mysql database in Cpanel

    I am creating an azure website eg calvynlee.azurewebsites.net In my hosting cpanel account, I create a mysql db & user, in order to link the azure website with this mysql db, I had place a "%" in the remote mysql section. It works, but when I remove

  • SetMnemonic doesn't show underscore until Alt pressed

    My "Overview" button doesn't show the underscore under the letter "O" until the user presses the Alt key once. How can I get it to show the underscore ahead of time? Here's some code: OverviewButton.setMnemonic(KeyEvent.VK_O); OverviewButton.setText(