Field validation for the number of characters and integers for NRIC

Hi all
I have a requirement for field validation NRIC number, I put the validation in the field as first digit is followed by a character of 7 integer digits and last digit as the character. The format is S7975363G. The user is not leave the key in full for 1 and the last digit. Please let know us if this is possible.
Thanks in advance.

Try the following domain validation:

Len ([]) = 9 AND FindOneOf (Mid ([], 1, 1), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') + FindOneOf (Mid ([], 9, 1), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') = 2 AND Len (1 * Mid ([], 2.7)) = Len (Mid ([], 2.7))

Replace the NRIC wearing the correct domain name

Tags: Oracle

Similar Questions

  • Validate the form by the number of characters field

    Have you ever had to validate a form by the number of characters field? For example, limited to a field of comments to 500 characters and returns the error message if they will.

    So, to implement, you will need jquery on your page - I just pull it from the Google cdn:

    The countdown script, you must:

    And you add the maxlength attribute to any field that you want to use. The field below has a maxlenght of 100:

  • I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy. How do I calculate that in the script?

    How do I calculate that in the script? I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy.

    You searched for ' add days?

    You must write a custom for this JavaScript calculation because you cannot add a number any date. Also the date strings are not just a number, even if we can convert a given date in a number for that date that represents the time form a date date (Epoch). Witn this value, we can achieve them all kinds of date calculations and collect a little information about the date. JavaScirpt uses midnight on January 1, 1970 UTC for starting point or the date of the time. Its value is zero, and every millisecond increases the value of 1. When a date string is converted to the date object JavaScirpt we have access to many properties of the date and can use several methods to extract information or adjust the date object.

    Field 1 is in the format "Date" with a format of "mm/dd/yy".

    Field 2 is in «Number» format with 0 decimal.

    Zone 3 is in the format 'None '. The custom calculation script applies to the formatting.

    The custom for JavaScript calculation area 3:

    var cField1 = this.getField("Field_1").valueAsString;

    var cField2 = this.getField("Field_2").valueAsString;

    Event.Value = "";

    If (cField1! = "" & cField2!) = "") {}

    Console.println (cField1 + "" + cField2);

    calculate that if we as no null data;

    var cDateFormat = "mm/dd/yy";

    convert start date date object.

    Kai var = util.scand (cDateFormat, cField1);

    get the date of the month;

    David var = oDate.getDate ();

    Add field 2 number of days;

    David = Number (nDate) + Number (cField2);

    of being updated for the new date.

    oDate.setDate (nDate);

    Set the field to update formatting;

    Event.Value = util.printd (cDateFormat, letter);

    } / / end of data not null;

  • Does anyone know if you are limited in the number of characters in the text field?

    I have the scrolling text of the distant rear side right up to the edge on the left front. I only get to halfway through the message of full text and letters are mixed at the any end. is there a limit on the number of characters I can use? Is there a setting a limitation I can increase?

    It seems to be. I figured it at approximately 16000 characters more or less (or even lower). (Estimated from the original character TextEdit limit as it seems to be this type of core service text text handling in movement and FCPX.)  I drew this conclusion during the development of a method to create a movement subtitles. It finally turned out that I had to cut the scripts into pieces 'chapter of size' to keep the character countdown. I never got to finish this tutorial and it has been quite some time now (and I can't not find my notes on the subject). It could be that the number of characters estimated is actually lower.

    There is no way to reset the limit.

  • Need to change the properties of the Clipboard or increase the number of characters that can move from one program to another

    Original title: Clipboard

    Hello

    I use a software and I have the problem with the paper, I need to change the properties of the Clipboard or to increase the number of characters that can pass from one program to another

    where can find Clipboard in windows 7 and how can I change properties?

    There is no user-oriented Clipboard option.

    For 32-bit applications, the Clipboard can allocate blocks up to 2 GB in size or to a maximum of the amount of virtual memory in the PC has, is the least. The Windows Clipboard does not impose any other size limits.

  • Coding - returns the number of characters in a text box.

    I am trying to create an animation/simulation of cellular phone on board animate CC for use in a course of Captivate. In fact, when a user clicks on the number keys on the virtual keyboard, it displays the numbers in a text box, just as a real cell phone will display the phone number on the screen as a caller to connect. Thus, the user must click seven buttons and a seven-digit phone number is displayed on the screen of the virtual phone.  This part of my animation works fine and all seven digits appear, but I want to change the code so that a hyphen appears after that the third button clicked. In this way, the output looks like better a phone number instead of just a string of seven digits.

    Here is an example of the code that I currently assigned to the #2 in the virtual keyboard button:

    var text = sym.$("PhoneNum").html ();

    text = text + 2;

    SYM.$("PhoneNum").html (Text);

    PhoneNum is the name of my text box on the stage where the numbers appear as a click is performed on every key on the keyboard.

    To incorporate the hyphen after the third button clicked, I need to return the number of characters in the text PhoneNum sort box, then create an if/else scenario that applies the hyphen after the third button clicked.

    Anyone know how I can use JavaScript or jQuery to return the number of characters currently in the text box PhoneNum ?

    SYM. $("PhoneNum") .text () .length;

  • Programmatically set the size of a table control (not the number of col and lines)

    Hi all

    I am trying to create a little VI, in which the user selects the number of columns and rows in a table, and after clicking on a button 'OK', the table control is displayed in the control panel (to be filled in by the user). To do this, I use the nodes property to the number of columns and lines. I have no problem with that.

    However, I want to "limit" the size of the control table (control of himself, not the dimensions of the table) and make use of vertical and horizontal table, the scroll bars. I want to avoid it is that passes type 100 user and 100 lines and appears a huge table control.

    I could tho this by using an array instead of an array, via the node property "size", but I would use an insead table a table.

    Thank you very much

    Daniel

    With a table control, you cannot set the display size to be anything other than a multiple of a complete cell.

    If you are limited to a number of lines and columns.  If you want to resize with more control you also need to resize the control within the Bay, accessible via the property 'picture Element '.

    Another option (but seems huge exaggerated) is to place your table in a secondary and set the size of the secondary to the size you need and enable scrollbars for her.  It is not an option that I would choose but if it helps...

    Have it, your description of your user interface sounds not very intuitive.  How the user knows at any time exactly what cell they access if they have to scroll backwards?

  • How to determine the number of characters in a PDF file?

    Acrobat.com, how to determine the number of characters or words in a PDF file?

    Hi unk2,

    There is no feature in Acrobat.com online services to a number of characters. But, you could use ExportPDF to convert your PDF files to Word format and then create your character count in Word.

    Please let us know if you need help.

    Best,

    Sara

  • Change the number of VCPUs and memory

    How to change the number of VCPUs and the amount of memory to a computer the PowerCLI virtual?

    Steve is of course correct, you can use the Set-VM cmdlet to do this. But I suspect that entry PowerCLI reference online is a little more readable.

    An example

    Get-VM MyVM | Set-VM -MemoryMB 4096 -NumCpu 2
    

    See the xtrvirt VMware hot-add memory/CPU support for what is supported on what guest operating system.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • What gets the relationship between the number of blocks and coherent?

    SQL> CREATE TABLE TEST(ID INT ,NAME VARCHAR2(10));
    
    SQL> CREATE INDEX IND_IDN ON TEST(ID);
    
    SQL> BEGIN
      2  FOR I IN 1 .. 1000
      3  LOOP
      4  EXECUTE IMMEDIATE 'INSERT INTO TEST VALUES('||I||',''LONION'')';
      5  END LOOP;
      6  COMMIT;
      7  END;
      8  /
    
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS(USER,'TEST',CASCADE=>TRUE);
    
    SQL> SELECT DISTINCT DBMS_ROWID.rowid_block_number(ROWID) BLOCKS FROM TEST;
    BLOCKS
    -----------
    61762
    61764
    61763         
    
               >> above , there have 3 blocks in table TEST .
    
    SQL> SET AUTOTRACE TRACEONLY;                                     
    
    SQL> SELECT * FROM TEST;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1357081020                                                     
                                                                                    
    --------------------------------------------------------------------------      
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |      
    --------------------------------------------------------------------------      
    |   0 | SELECT STATEMENT  |      |  1000 | 10000 |     2   (0)| 00:00:01 |      
    |   1 |  TABLE ACCESS FULL| TEST |  1000 | 10000 |     2   (0)| 00:00:01 |      
    --------------------------------------------------------------------------      
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
             72  consistent gets                                    >>  there have 72  consistent gets                  
              0  physical reads                                                     
              0  redo size                                                          
          24957  bytes sent via SQL*Net to client                                   
           1111  bytes received via SQL*Net from client                             
             68  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
           1000  rows processed                                                     
    
    SQL> SELECT /*+ INDEX_FFS(TEST IND_IDN)*/ * FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1357081020                                                     
                                                                                    
    --------------------------------------------------------------------------      
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |      
    --------------------------------------------------------------------------      
    |   0 | SELECT STATEMENT  |      |  1000 | 10000 |     2   (0)| 00:00:01 |      
    |*  1 |  TABLE ACCESS FULL| TEST |  1000 | 10000 |     2   (0)| 00:00:01 |      
    --------------------------------------------------------------------------      
                                                                                    
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       1 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              1  recursive calls                                                    
              0  db block gets                                                      
             72  consistent gets                                   >>  there have 72  consistent gets                  
              0  physical reads                                                     
              0  redo size                                                          
          17759  bytes sent via SQL*Net to client                                   
           1111  bytes received via SQL*Net from client                             
             68  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
           1000  rows processed                                                     
    
                                             
    
    SQL> SELECT COUNT(*) FROM TEST;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 1950795681                                                     
                                                                                    
    -------------------------------------------------------------------             
    | Id  | Operation          | Name | Rows  | Cost (%CPU)| Time     |             
    -------------------------------------------------------------------             
    |   0 | SELECT STATEMENT   |      |     1 |     2   (0)| 00:00:01 |             
    |   1 |  SORT AGGREGATE    |      |     1 |            |          |             
    |   2 |   TABLE ACCESS FULL| TEST |  1000 |     2   (0)| 00:00:01 |             
    -------------------------------------------------------------------             
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                      >>  there have 5  consistent gets               
              0  physical reads                                                     
              0  redo size                                                          
            408  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    
                                                  
    
    SQL> SELECT COUNT(*) FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 735384656                                                      
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    | Id  | Operation             | Name    | Rows  | Bytes | Cost (%CPU)| Time     
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    |   0 | SELECT STATEMENT      |         |     1 |     4 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    |   1 |  SORT AGGREGATE       |         |     1 |     4 |            |          
    |                                                                               
                                                                                    
    |*  2 |   INDEX FAST FULL SCAN| IND_IDN |  1000 |  4000 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                                                                                                
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       2 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                                >>  there have 5 consistent gets     
              0  physical reads                                                     
              0  redo size                                                          
            408  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    
                                              
    
    SQL> SELECT COUNT(ID) FROM TEST WHERE ID IS NOT NULL;
    
    Execution Plan
    ----------------------------------------------------------                      
    Plan hash value: 735384656                                                      
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    | Id  | Operation             | Name    | Rows  | Bytes | Cost (%CPU)| Time     
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                    
    |   0 | SELECT STATEMENT      |         |     1 |     4 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    |   1 |  SORT AGGREGATE       |         |     1 |     4 |            |          
    |                                                                               
                                                                                    
    |*  2 |   INDEX FAST FULL SCAN| IND_IDN |  1000 |  4000 |     2   (0)| 00:00:01 
    |                                                                               
                                                                                    
    --------------------------------------------------------------------------------
    -                                                                               
                                                                                                                                                              
    Predicate Information (identified by operation id):                             
    ---------------------------------------------------                             
                                                                                    
       2 - filter("ID" IS NOT NULL)                                                 
    
    
    Statistics information
    ----------------------------------------------------------                      
              0  recursive calls                                                    
              0  db block gets                                                      
              5  consistent gets                                        >>  there have 5  consistent gets             
              0  physical reads                                                     
              0  redo size                                                          
            409  bytes sent via SQL*Net to client                                   
            385  bytes received via SQL*Net from client                             
              2  SQL*Net roundtrips to/from client                                  
              0  sorts (memory)                                                     
              0  sorts (disk)                                                       
              1  rows processed                                                     
    QUESTION:

    What gets the relationship between the number of blocks and coherent? How to calculate become consistent?

    You can see that your uniform is getting down to 6 to 12, is it not? Reading of the below thread Asktom.
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:880343948514

    Aman...

  • How to validate the number of characters in the text entry box?

    Hello

    I have inserted a text box entry and assigned a variable (UserName). Now, I need to limit the entry of a number, maxinum of 20 characters. In other words, how can I validate the number of characters in the text entry area and provide feedback if it is more than 20 characters?

    I think that you should study the Jim Leichliter widget that allows you to use regular Expressions to validate text input.

  • How to remove the jump line, characters and past of a table column?

    HII,

    I m using 4 Apex.
    I m find the problem by removing the line break, characters and captures existing data in the column of the table.


    thnx in advance

    for example

    replace(replace(l_string_var, chr(10)),chr(13))
    

    Best regards
    Marko

    Published by: Marko Goricki, January 17, 2011 10:52

  • Limit the number of characters on the Master Page?

    language: php

    Question: In regard to the master page, does anyone know how to limit the number of characters to display only 250 in Dreamweaver CS4?

    That is easily fixed. Use this custom instead of the function:

    function extractChars($text, $chars = 250) {
         if (strlen($text) < $chars) {
              return $text;
         } else {
              $pos = strpos($text, ' ', $chars);
              return substr($text, 0, $pos) . '...';
         }
    }
    

    Put this function definition in your page and use it like this:

    echo extractChars($row_recordsetName['fieldName']);
    

    If the text is less than 250 characters, you will have just the full text. If it is more than 250, you get the shortcut text.

    The function has an optional second argument, which determines the number of characters you want to use as a boundary. So, if you want only the first hundred, follow these steps:

    echo extractChars($row_recordsetName['fieldName'], 100);
    
  • How to display the number of dynamics and the progress bar graphic on the title of the region

    Hello

    I have several show/hide parts of a report on a dashboard page. When the user comes to this dashboard page, it see areas collapsed and a status appropriate for each region and click on the region concerned the status listed in the title bar of region-based. Each region show different reports as "Exits", "Tasks", "Communiqué of progress" etc., for example, the user want to see the number of questions and tasks as a number displayed on the side right of the 'from', 'Tasks' area, in the same line as the title of the region. In addition, the user wants to see a progress bar graphic of liitle for the region 'Progress of the liberation' displayed on the right side of the area, in the same line as the title of the report. I have the return function to get these numbers and the graphic progress bar, but do not know how to post them on the right side of the area in the same line as the title of the region. all the ideas are really appreciated.

    Thanks for your time,
    Surya

    Seems interesting. Could create an example on apex.oracle.com experiment?

    Try this approach:

    Create an item hidden in each region to receive these values of synthesis (e.g. P1_DASH_TASK_COUNT) and calculate them the or some functions in regions before calculations.

    These values using the notation of substitution in the region of reference titles:

    Tasks &P1_DASH_TASK_COUNT.
    

    This can then be styled with CSS to get the look required, starting with:

    .dash-summary {
      float: right;
    }
    

    Exactly what is required in the CSS will depend on the theme/template used, why it would be a good idea to see on apex.oracle.com.

  • How can I know the number of columns and lines on excel file

    How reading the number of columns and rows on an excel file after you open the file in excel with ActiveX.

    Using the example of excel200dem, I read that the file data is excellent.

    However, in this example, I just give the number of lines and columns.

    I want to know the number of lines and columns not giving those in C code automatically.

    Who knows this things? -?

    Help me please.

    Hello

    (1) this forum provides a search option, you must use in doing so, you will find this post

    (2) don't solve you your earlier questions? If so, you must mark responses that have helped you find a solution.

Maybe you are looking for

  • Untrusted connection for all sites

    I'm getting "this connection is Untrusted" for each external site/link outside my msn home page. I copied the text of the troubleshooting of a word doc page, but I can't send it because I can't have my office e-mail! What I'm doing!

  • Why is updated to the WORST update today, most excruciating history of Firefox?

    Auto update this morning Since then, I feel the worst, slow, excruciating experience ever I use Firefox since the beginning - how many years is it? This is my favorite - browser err, was... I'm about to switch to Chrome, if I have to wait about 30 se

  • Need drivers of Windows XP Home for Satellite L30

    Hello I was wondering if someone could help me. I bought a Toshiba Satellite L30 - 10V recently which came with Vista installed and ran incredibly slow. I installed a version of XP on it. Could someone provide me with the XP drivers for this laptop o

  • laptop guard turn off through a play

    My laptop keeps switching off and is really hot really frustrating. [Moved from comments]

  • upgrade windows xp to windows 10

    We have a windows xp with an offline program, we need to use. How can I buy an upgrade to windows 10?