Input string must be no space in the text field - validation of the need.

Hello

I need validation on the text field, like I should be able to single string entered in the text field. for examples - if I entered 'new test', it must raise the error. I should be able to enter only 'test '. (single channel)

Can someone help me to give better suggestion.

Kind regards
Harish Sharma

1002384 wrote:

Thanks for the reply, but I'm still confused, I put this "not regexp_like (: Px_ITEM, ' [[: space :]]')]])" in PL/SQL Expression validation in the Expression of Validation 1, but I have to put in exp2.

You seem to be an existing posting of editing rather than creating a new. 2 validation expression is not used with PL/SQL Expression validations: all the necessary code is contained in 1 Expression of Validation. Review validation options Type: those who use the Validation Expression 1 and 2 Expression of validation explicitly state what values will each. Other types of validation use only 1 Expression of Validation or not.

Tags: Database

Similar Questions

  • Cut out white space from a text field (I give the points of response as candy!)

    Hello

    I need to cut all the white space characters that occur before and after all no white space in a text field.
    By white space, I mean:
    -space chr (32)
    -chr (9) horizontal tab
    -line break Chr (10)
    -return Chr (13)

    So, using this example:
    CREATE TABLE test (
    id NUMBER,
    value VARCHAR2(100));
    
    INSERT INTO test (id, value) values (1, chr(32)||chr(9)||chr(13)||chr(10)||'a'
    ||' '||'b'||chr(10)||'c'||chr(13)||chr(10)||chr(32)||chr(9)||chr(32));
    I need to end up with:
    a space b linefeed c
    So I want to get rid of the white space beginning and end, but keep the white space inside the string.

    I can't do it with the TRIM function alone. I could do many iterations of replace the spaces with something bind ' # ' and then cut it, but the characters of white space can be in any order.

    I tried
    REGEXP_REPLACE(value, '[^:space:]')
    but that does not give a correct result.

    Use the trim (regexp_replace ("(\S+) \s* \s*','\1", value)):

    select  id,
            '[' || value || ']' val,
            '[' || trim(regexp_replace(value,'\s*(\S+)\s*','\1 ')) || ']' new_val
      from  test
    /
    
            ID VAL                            NEW_VAL
    ---------- ------------------------------ ------------------------------
             1 [                                [a b c]
               a b
               c
                     ]
    
    SQL> 
    

    SY.

  • Running out of disk space and the need to remove the old clichés

    I recently joined a company owning an ESXi 4.1.0 (build 260247) server with 4 500GB data warehouses.  One of our servers main database (Ubuntu/Postgres), which uses only one of the data warehouses (4 datastore) has 21GB 465 GB free.  It is currently configured to store all settings, storage and snapshots on this unique data store.  The hard disk is configured as thin.

    The virtual machine has crashed a few days ago, when it ran out of disk space.  We removed a small second partition (which was in the same data store) and cleared space, but we receive extremely weak with only 5% of the data left store.

    I have read many posts and wanted to get the opinion of this community before I move forward.   Because we do not use the 4.1 last I heard some issues using the option "Remove all" that it may require more disk space and others recommended to manually delete snapshots from the closest to the base, but it seems that in this case it can merge the snapshot with the original without freeing all the space.

    We are not all of the snapshots and I'm fine with delete them, but I assure you we will not run out of disk space in the process and complicate things further.

    It is best to manually remove these snapshots starting with the one closest to the base or by using the "Delete All" (or something else)?  In addition, if we go with the manual option, is it possible with the virtual machine upward or do we need to close first?

    Current snapshots:

    snapshot1.jpg

    Current data warehouses associated with VM (really unique using the 4 data store)

    snapshot2.jpg

    Actual files on the data store 4

    snapshot3.jpg

    Thank you

    Brandon

    Welcome to the community,

    After the screenshot, your virtual disk 'arrow_db1.vmdk' stocked thickness!

    With the thick disc service and ESXi 4.1 (the problem with "Delete All" is related to version 4.0), you can run safely "Delete All". However, due to low disk space, I recommend that do you with the virtual machine off. If turned on, a new temporary snapshot will be created, which - according to the workload of the virtual machine - can grow and fill in the data store.

    Due to the size of snapshot and depending on the speed of your storage space, you need to plan a few hours well downtime.

    André

  • date format picture ends before converting all of the input string

    In the following query, I get the error: ORA-01830: date format picture ends before converting all of the input string

    Select sum (e.gl_fig) in the rm_gl e where e.as_on_dt < = trunc (to_date('31-Nov-2011'), 'Q')-1

    Hello

    Moreover, how many days are there in November? It IS 30 or 31?

    Please change from 31-Nov-2011 to November 30, 2011, then it works.

    select sum(e.gl_fig) from rm_gl e where e.as_on_dt <= trunc(to_date('30-Nov-2011', 'DD-MON-YYYY'),'Q')- 1
    
  • How can I activate a check box if the data have been entered in a different text field?

    Hello. I would use four check boxes on a form, each of which will enable (check) if the data have been entered in four text fields of form on a different page in the same form.

    Example:

    Page 1 will have a question like... How many apples did you eat last month? "Text1" = 3

    So, given that the user has responded to 3 in the field 'text1', "checkbox1" must now be verified on page 2.

    ... and so on for the other three.

    Note: The answers to the questions will be like a number. If the user enters 0 (zero), then I don't want the boxes to activate it. So, any greater than zero response will check the checkbox.

    Follow-up to question...

    Is it possible for a text field quite different form whether visible or not visible (default read-only text) based on the status of each check box mentioned above?

    Example:

    "checkbox1" will have a field of text next to it named "date1" with a date hidden. If "checkbox1" is checked (because of the above), then the date will be visible.

    ... and so on for the other three.

    Thank you very much!

    -You can use something like this as the custom of your text field validation script:

    if (event.value=="3") this.getField("checkbox1").checkThisBox(0, true);
    

    -Yes, but you shouldn't make it dependent on the box to check, but integrate it in the script above, like this:

    if (event.value=="3") {
        this.getField("checkbox1").checkThisBox(0, true);
        this.getField("date1").display = display.visible;
    } else {
        this.getField("date1").display = display.hidden;
    }
    

    If you also want to uncheck the checkbox where the value of the text field is not 3 then double online #2 but with the false instead of true value in the else block.

  • Narrowing of the text fields

    Hello everyone.  So I figured out how to develop simultaneous text fields, now I would at the same time reduce them.  Here's the scenario: a customer receives the form, between the 5 lines (or other) in a text field and the text game, expand fields.  Realizing that they entered too, they delete a line or two.  Unfortunately, the text fields do not contract.  Worse: someone enters a lot of information, removes a bunch of it and is stuck with a huge set of text fields when they just need a little space.  I would like it if all of the text fields would be collectively assume the size of the largest entry and not the following dimensions.  I enclose an example, and if someone want it to happen to unqueued, I'll be happy to email it to them.

    Bonus question: I have all my scripts in JavaScript.  Unfortunately, I can't figure out how to get the reference to subsequent subform instances to work in JavaScript.  If you look in the "Delete" button, you will see that it is film script in FormCalc.  The only reason I do it is to get this

    If (_Description_Value_Comments_and_Office_Comments.count == (this.parent.index + 1)) & (_Description_Value_Comments_and_Office_Comments.count <>, 1) & (choice == 4)) then

    Description_Value_Comments_and_Office_Comments [this.parent.index - 1]. Any_other_property_of_ this_type.rawValue = "2"

    endif

    to work properly.  When I try to do something similar in JavaScript, it doesn't seem to be able to handle this:

    Description_Value_Comments_and_Office_Comments [this.parent.index - 1]. Any_other_property_of_ this_type.rawValue = "2"

    I think it has something to do with the ILO [this.parent.index - 1], but I don't know how to fix it.

    Thank you all for your help.

    Post edited by: AJP256 Reason: changed "text boxes" to "text fields" because that's what I really wanted to

    Hello

    With respect to the height of the textfields, it would be easier if all the textfields were in a row. This way you can do away with the entire script, which tries to maintain height.

    It also makes it easier to add additional lines.

    I am downloading a sample (note should store).

    Good luck

    Niall

    PS, the file size seems v. large given the fact that there is no graphics?

  • Assign the XML content to dynamic text fields

    Hey there,

    After the search in the forums, I found that I can load files XML and content to animate CC using the XMLHttpRequest, but how do I load content in a specific dynamic text field?

    I found a few answers that confirm that we should use XMLHttpRequest and some users who made it work, but not how. Any help would be much appreciated.

    Below is how I added the request and how the dynamic field has been implemented.

    This.frame_0 = function() {}

    var xhttp = new XMLHttpRequest();

    xhttp.onreadystatechange = function() {}

    If (xhttp.readyState == 4 & & xhttp.status == 200) {}

    myFunction (xhttp);

    }

    };

    xhttp. Open ("GET","profil.xml", true);

    xhttp. Send();

    Function myFunction (xml) {}

    var xmlDoc = xml.responseXML;

    document.getElementsByTagName("nameTextField").innerHTML = / * this part is not correct, but so far I have found no better solution * /.

    xmlDoc.getElementsByTagName ("title") [0] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue;

    }

    }

    And for the text field (created by animate CC):

    this.nameTextField is new syc. Text ("", "53px 'Arial'");
    this.nameTextField.name = "nameTextField";
    this.nameTextField.textAlign = 'center ';
    this.nameTextField.lineHeight = 61;
    this.nameTextField.lineWidth = 388;
    this.nameTextField.setTransform (265,124.4);

    this.timeline.addTween (syc. Tween.get (this.nameTextField). Wait (2));

    I really hope someone can help, I spent hours looking and trying solutions.

    See you soon,.

    Luke

    As already said:

    this.mydynamictextfield.text = "hello I am text in a dynamic text field";
    

    If you need really, really specific, it would be in this case:

    this.mydynamictextfield.text = animals[0];
    
  • How can I validate a form if at least one of the three text fields is selected

    Hi all

    My form has many fields but 3 text fields here that I need to have the Viewer to enter text in a text field before hitting the submit button.

    Don't know how to do in this regard.

    Thank you

    Courier says:

    I can't understand how to ensure at least a field is selected by the Viewer on the three text fields, any thoughts?

    Yes, I played a bit with this idea earlier today, but got distracted by other things.

    What follows is based on the following:

    • There is only one form on the page
    • No validation is involved
    • Each of these fields in the group that needs at least a field has "data-req1" (without the quotes) in its opening tag

    For example, if you have a form like this:

    Add the following just before the closing on the page tag:

    If you try to send the form without find out the name or the email field, you will get an alert dialog box and will refuse to submit the form. But if one or the other or both fields have values, the form will appear.

    In other words, it will work with any number of fields that have "data-req1" in the opening tag. So much that one of these fields has value, submits the form.

  • How do i: fill automatically the area other sections of the text field form?

    Hello. Need help please!

    I need a script, I guess that for a field text entered by the user automatically fill the area in the headers in the form of entry.  The header is identified by all that will enter the name of the user on the cover page.

    ID be very grateful.

    Stephanie.

    If you name the field in the header exactly as the text field, then you just need to set the binding at the global level and no script is needed. You can set the binding in the object palette in the binding tab. Then in the drop-down default choose global binding.

    Paul

  • How to connect the value of the input string to numeric values

    Hello

    I'm trying to figure out how to connect the value of unique user input string to numeric values. Basically I want the user to enter the name of a gas that I have a list for (I think I put the list of gases in a table >). Then I want to match numeric values 2 'a' and 'b', according to which gas, name of the user has set. These 'a' and 'b' values will be automatically matched with the name of the gas in a list that I put. For example, hydrogen gas has the value 3 for "a" and 4 for "b. when the user puts the ' hydrogen' name in a string constant, automatically 'a' and 'b' must be issued.» I have connect a and b to a formula

    Thanks for any help

    Hello

    It is perhaps not exactly what you are looking for, but perhaps you could use the enumerated data type and the array of clusters of points (a, b).

    Look at the VI I enclose.

  • regular expression to exclude spaces in the string

    Now that I'm that sleazy, I need help with a regular expression.

    They must pass (or permutations it):

    [00123]

    [R012]

    [r083]

    These should fail (or permutations it):

    [test]

    [I was here]

    [098 876]

    Ooh [29873 eifvuh]]

    I have most of it (the ' [' must be first; the '] "must be the last;) There must be some middle numbers, but I can't write an expression that will fail if there are 1 or more spaces in the string.

    Thank you!

    Tay

    Several possibilities: try this regular expression.

    ^\[[a-za-Z]*[0-9]+[a-zA-Z0-9]*\]$

  • remove the odd spaces of the hexadecimal string

    Hello

    I would like to remove the odd spaces to a hexadecimal string, and the output result.  That's what the input string will look like:

    01 00 04 0F FF 36 3B CC...

    I want the output to be:

    0100 040F FF36 3BCC...

    I got the attached forum labview code earlier, but it does not work with the text.

    Any help is greately appreciated.

    Thank you

    hiNi.

    Try this version 8.2.

  • Display the name of the tag as the column name and the value in the tag as a row of data from the input string.

    Hi Forum members,

    I am looking for a query display the name of the tag as the column name and the value in the tag as a row of data.

    I have to print the values within the tag to a file by choosing the value of the flags. the sequence of the tags will vary each time, as the tag name will change dynamically.

    So here is the example of input data and the expected output. The string in the text column must be separated as the column names and values.

    Input data
    Select 1 as seqno,' < > 0210A 50 4f < / 4f > < 5f20 > TEST CARD 16 < / 5f20 > < 5f2a > < / 5f2a > < 82 > 1 c 00 < / 82 > ' double text


    Output:

    Seqno 4f 5f20 5f2a 82
    0210A 50 16 1 00 TEST CARD 1

    Please help me by providing your entries on this.

    We use the version of Oracle 11.2.

    Note: This is not the XML string

    Thank you

    Shree

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    )

    Select d.seqno, x.*

    d the data,

    XMLTable ('/ root')

    by the way xmltransform (xmltype ('': replace (replace (text,'<><>'),)))

    XmlType (q'~http://www.w3.org/1999/XSL/Transform "version ="1.0"> ")

                                                     

                                                       

                                                         

                                                       

                                                     

                                                     

                                                       

                                                         

                                                       

                                                     

    ~'

    )

    )

    path of columns '4f' varchar2 (10) "tag4f."

    path of "5f20' varchar2 (30)"tag5f20. "

    path of '5f2a' varchar2 (10) "tag5f2a."

    path of varchar2 (10) "82" "tag82.

    ) x


    SEQNO 4f 5f20 5f2a 82
    1 0210A 50 16 TEST CARD - 1 00
    2 0210A 50 16 TEST CARD - 1 00
    3 0210A 50 16 TEST CARD - 1 00
    4 0210A 50 16 TEST CARD - 1 00

    with

    data in the form of

    (select 1 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2a><82>00 1' text of all the double union)

    Select 2 as seqno,'XYZ<4F>0210 A 50<5f20>TEST CARD 16<5f2a><82>00 1' text of all the double union

    Select 3 as seqno,'<4f>0210 A 50<5f20>TEST CARD 16<5F2A><82>1 00XYZ ' text of all the double union

    Select option 4 as seqno,'<4F>0210 A 50<5F20>TEST CARD 16<5f2A><82>1 00XYZ' double text

    ),

    Chopper (seqno, Key, value, String) as

    (select seqno,

    regexp_substr (text,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (Text,'>(.*?))

    regexp_substr (text,'<.+?>. *? ) (.*) $', 1, 1, null, 1). » <>'

    from the data

    Union of all the

    Select seqno,

    regexp_substr (String,'<(.+?)>', 1, 1, null, 1),

    regexp_substr (String,'>(.*?))

    regexp_substr (String,'<.+?>. *? ) (.*) $', 1, 1, null, 1)

    Chopper

    where regexp_substr (string,'<(.*?)>', 1, 1, null, 1) is not null

    )

    Select '4f', seqno, '5f2a', '82', '5f20.

    of (seqno, lower (key) select key, value)

    Chopper

    )

    Pivot (max (value) for key in ('4f' as '4f', '5f20' as '5f20', '5f2a' as '5f2a', "82" as "82"))

    Concerning

    Etbin

  • Insert a space in the string

    Hello

    I'm trying to put spaces in the string after each 4 characters (2 bytes).

    Any help will be greatly appreciated.

    Thank you

    hiNi.

    Several ways to do so.  My favorite is the regular expressions...

  • Prohibit the 'paste' to an input string

    Hello

    How can I disable the function 'paste' in an input string?

    I'm using Labview 8.5.1.

    Thank you.

    Example of conversion here:http://forums.ni.com/t5/Version-Conversion/Version-9-to-8-5-1/m-p/2267914#U2267914.

    In this thread, I also gave an example without using the keyboard reference.

Maybe you are looking for