How to restrict the user to enter not same value in a table

Greetings!

I m asking a second time the upfront because I did not answer preivously, so please don't mind if it's a double.

It was: I have created a table, as shown in the example.

I want to validate the user name that you see in my example to restrict the user to enter the same value in the user name field before submitting page.

for example when the user enters data as u see test in user name in the first row, when it goes to the second row and type same username as test "message will appear or restrict the user who has already typed or in use"...

http://Apex.Oracle.com/pls/Apex/f?p=45296:1:22797340776918:

It's all done on typing submit prior to registration.

Please drivers

Hello

I m asking a second time the upfront because I did not answer preivously, so please don't mind if it's a double.

It was: I have created a table, as shown in the example.

I want to validate the user name that you see in my example to restrict the user to enter the same value in the user name field before submitting page.

for example when the user enters data as u see test in user name in the first row, when it goes to the second row and type same username as test "message will appear or restrict the user who has already typed or in use"...

http://Apex.Oracle.com/pls/Apex/f?p=45296:1:22797340776918:

It's all done on typing submit prior to registration. >

Stick the code below into the Page header > Javascript > run when loading the Page field.

$('[input[name="f03"]').blur(function(){
  if ($('input[name="f03"][id!="'+$(this).attr('id')+'"]').val() == $(this).val()) {
     alert('Duplicate Entry.');
     var x = $(this).attr('id');
     setTimeout("(function(p){$('#'+p).focus();})('"+x+"')",100);
  }
})

Note:
a.F03 is the 'name' of your column of username in the form of tables.
b. This only valid values. If your tabular presentation has multiple pages then all of the rows are not currently displayed will be ignored.

See you soon,.

Tags: Database

Similar Questions

  • How to restrict the user to enter data into the PLUGS DO

    Hello

    I textinput in my page, I have to restrict the user to enter the data covers only.

    can someone help me on this.

    Knockaert

    Please go through this site.

    http://oracleanil.blogspot.com/2010/10/restrict-user-to-enter-data-in-caps.html

    Concerning
    Meher Irk

  • Restrict the user to enter only specified value in DB

    Hello
    I use Oracle Database 10 g Express Edition. I created a table named "employee" which contains the column 'Pavilion '. How can I limit the values in this column either 'yes' or 'no '?


    Thank you
    -Siva Balan V

    Hello

    Use a cponstraint CONTROL.
    You can specify a constraint when creating the table:

    CREATE TABLE     table_x
    (     x_id     NUMBER (10)     PRIMARY KEY
    ,     flag     VARCHAR2 (3)     CONSTRAINT x_flag_chk
                        CHECK (flag IN ('yes', 'no'))
    )
    ;
    

    or, once the table is created, using ALTER TABLE.

    The above constraint allows NULL values. If you do not have NULL values, you could include in the CONTROL of constraint, but it is better to add an another NOT NULL constraint.

  • How to allow the user to enter only alpha numeric characters in the text field?

    Hello

    Is it possible to restrict the user to enter only alpha numeric characters in the textfiled?

    Thank you

    Starting from the version 4.7, I don't see any how useful filter adapted to your needs.  Then why don't you override keyChar() like this:

    EditField eField = new EditField("Enter letters and digits only: ", "") {
        protected boolean keyChar(char ch, int status, int time) {
            if (CharacterUtilities.isLetter(ch) || CharacterUtilities.isDigit(ch) || (ch == Characters.BACKSPACE)) {
                return super.keyChar(ch, status, time);
            }
            return true;
        }
    };
    

    I have not tested this code, but you can give it a shot...

    You can add a manipulation (or super.keyChar...) for Characters.ENTER and Characters.ESCAPE, as well as anything else you be useful, such as the comma and the period.

    Hope this helps,

    Arkady.

    Edit: added Characters.BACKSPACE - you want to change, not you?

  • Restrict the user behavior does not

    I have a folder with several subfolders inside admin. Access to the administration area requires a user name and password stored in the Access database. Login on the min page works very well; However, when I add a behavior to restrict access to an inside page in the admin section, it does not seem to work, I can type the URL of the page and still get the information without restriction. Am I doing this wrong?

    Thank you.

    "Make sure you use restrict based on: username, password and access level when you use the ' restrict access to the behavior of the page" you may need to make another column in your db to store the name of the access level (set in the "restrict access to the behavior of the page'") you name anything make sure you just you misspell not them identical (to define and db). Also change your login user behavior to get the value of the appropriate column, you can create as many levels as you need. Admin, Director, employee, asked some.

  • How can I allow the user to enter the 5 digits in an inputText and who must be a number.

    Hi Experts,

    JDev 12.1.3.0.

    How to allow the user to enter only 5 digits for an inputText and there should also be a number?

    Thank you

    AR

    Try with:pattern="[0-9]{1,5}"

    Dario

  • I want to restrict a user to enter in the same interval of time or with in the same interval

    Hi all

    I am pleased to wish you a happy and prosperous new year.

    Q: in my application I need to provide a validation the user to not enter the same interval of time or in the same interval of time

    To make a unique combination of the user and the time interval that I can use a Unique Index and then I can get the unique combination of the intervals of this user. But I want to restrict the user even not to enter with in the same time interval.

    Scenario: Let's assume we have 10 records of 10 different users with different time intervals, one of them

    syam user with time interval entry 10:00 to 12:30, then the following entry syam user of time intervals should not be 10:00 to 12:30 and should not be in the same interval from 10:00 to 11:30 or 11:00 to 12: 10.

    How can I do this, I need to provide a validation.

    Thanks in advance

    -I borrowed the table of Bruno

    INSERT INTO MaTable VALUES ('tom', TO_DATE ('0701151330', 'DDMMYYHH24MI'), TO_DATE ('0701151740', 'DDMMYYHH24MI'));
    COMMIT;

    CREATE MATERIALIZED VIEW LOG ON mytable WITH SEQUENCE, ROWID, PRIMARY KEY including the NEW VALUES;

    Create materialized view mv_overlap_chk
    cool off quickly on commit WITH ROWID
    as
    Select t1.rowid rid1, t2.rowid rid2
    FROM MaTable t1
    mytable t2
    where t1.usr = t2.usr
    AND t1.rowid<>t2.rowid
    AND (t1.from_dte BETWEEN t2.from_dte AND t2.to_dte
    OR t2.from_dte BETWEEN t1.from_dte AND t1.to_dte
    )
    /

    ALTER TABLE mv_overlap_chk add CONSTRAINT CHK_OVERLAP CHECK(1=0);

    -trial:

    INSERT INTO MaTable VALUES ('tom', TO_DATE ('070120151630', 'DDMMYYYYHH24MI'), TO_DATE ('070120151840', 'DDMMYYYYHH24MI'));

    1 line of creation.

    SQL > commit;
    Commit
    *
    ERROR on line 1:
    ORA-12008: error path refresh materialized view
    ORA-02290: check constraint (JSU. CHK_OVERLAP) violated

    Therefore, constraint will be checked on commit.

  • Do not allow the user to enter characters undetermined

    Hello

    For some reason some have used it the FIELD of TEXT object for the field of digital data entry.

    In fact, the user must always enter numeric data.

    No decimals, no comma, no alphabetical characters allowed except numbers.

    (Syststem should not allow the user to enter data not allowed at all... I mean, when to reach us using digital / object field... or if user trying to enter data not allowed I HT to raise an error and CLEAR the field immediately)

    Pls I want to know how to get my requirement? Do I need to use JavaScript or model or Validation Object palette model or all 3?

    I am newbie, pls give me the code (such as JavaScript)

    Thank you

    You can use a small script with a regular expression in the event of change of textfield yout, to check the input current and delete everyting that is not a digit.

    If (! xfa.event.change.match(/\d/)) {}

    XFA. Event.change = "";

    }

  • How to restrict the use of the CPU not exceeding 10% in particular schema...

    Hi all

    Use the Oracle 11 g R2 database.

    My question is that I have a user of scheme called 'msndp '. I want to restrict the user from this diagram of the CPU usage not use more than 10% in my database. Since this is a production database.

    any information post regarding this issue's

    Thanks in advance...

    You must assign the user profile

    ALTER USER user_name PROFILE PROFILE_NAME

    You cannot accomplish % 10 use of the processor by PROFILE

    CPU_PER_SESSION specify the time limit processor for a session, expressed in hundredths of seconds.

    you use the resource for this Manager

    Concerning

  • How do you use BER if the value that you want the user to enter is 0?

    I have several TEB on a slide, but the value of input from the user to one of the ETB must be 0.  If the user clicks on the button submit without entering any value in the TEB, which is equal to zero, it will mark it as correct. I tried to set the value of the variable of the ETB 1 and then in the conditional action that I when the variable of the ETB is 0 perform different actions, but I get the same result.  I use 8 Captivate.  Any help would be appreciated!

    Well, I thought that out, but just in case someone already has this problem I'll explain what I did.  I did a tip for the slide action on enter and set the variables TEB 1 requiring the user to enter 0.  So if the user clicks on submit without entering values, the TEBs equal 0 would be marked wrong.

  • In javascript, how can I open a dialog so that the user can enter the value of a variable?

    I'm working on a script that will be used for many images, all of them using the same format (size of the image, layout layer, etc.).

    All of these images will have a text layer, and what I want is to have the script modifies the horizontal length of the text layer (horizontal percentage scale), it decreases so that all the text appears on the screen, where there is too much of it.

    But the text may vary from image to image, and what I want is for the script to display a dialog box have been that the user can enter text that will be on the text layer and scaled down.

    Is this possible?

    If you want the user to enter then adjust the text while your script is running, here's a way to do it.

    var typeLayer = activeDocument.activeLayer;
    var type = typeLayer.textItem;
    var t = prompt ("Enter text" , "new text");
    type.contents= t;
    transformLayer();
    
    function transformLayer() {
         try{
         var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
        desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
            var desc1 = new ActionDescriptor();
            desc1.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Rlt'), 0.000000 );
            desc1.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Rlt'), 0.000000 );
        desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc1 );
        desc.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Prc'), 100 );
        desc.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Prc'), 100 );
        desc.putBoolean( charIDToTypeID('Lnkd'), true );
        executeAction( charIDToTypeID('Trnf'), desc, DialogModes.ALL );
         }catch(e){}
    };
    
  • Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Than k you

    The user has clicked on Vista, the little lock at the bottom of the START window.

    Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Thank you

    Hello

    Click the account icon that was locked and enter the password IF you know and otherwise:

    Try Safe Mode - several times, press F8 that you start. The Admin account there is no default password
    so unless someone has changed, you should have access there. Then Control Panel - accounts - users
    Manage another account - use this down your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    If no joy Mode without failure:

    Try this - use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    Make another Admin account with your password and use it to fix the others if necessary. (just for
    repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.

    DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (do not forget to always
    not that an Admin account that is not used except for testing and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    ---------------------------------------------------------

    If necessary:

    Ophcrack is a free Windows password cracker based on rainbow tables.
    http://Ophcrack.sourceforge.NET/

    How to reset a Windows Vista - Trinity Rescue Kit method - password password reset disc - burn the ISO
    http://www.WikiHow.com/reset-a-Windows-Vista-password
    YouTube video on the use of the Trinity rescue Kit
    http://www.YouTube.com/results?search_query=Trinity+rescue+Kit&search_type=&AQ=f

    Reset your forgotten password the easy way using the Ultimate Boot CD for Windows
    http://www.howtogeek.com/HOWTO/Windows-Vista/reset-your-forgotten-password-the-easy-way-using-the-ultimate-boot-CD-for-Windows/

    Offline NT Password & Reset Editor
    http://home.eunet.no/~pnordahl/ntpasswd/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to prevent the user to create the 'analysis' and 'dashboard '?

    We have a requirement that is to restrict the user create new 'analysis' and 'dashboard '. As we know when the connection ' host: port / analytical, in the top of the page there is a drop down list of 'New' where users can create new 'analysis' and 'Dashboard', how to set up the privilege to disable the option 'Analysis' and 'dashboard '?

    OBIEE version: Oracle Business Intelligence 11.1.1.7.0

    Thank you
    Jinbo

    Summary:

    1 set the "New Menu" permission in the 'home page and Header' refusal, then the 'New' menu will disappear from the top right of the page, which prevents the user to create dashboards and new anlysis

    2. in order to not allow the user to modify the catalog, set the permission of "access user interface of the catalogue"in the ' welcome and header' to refuse."

    3. even made 1 and 2, we have always have a path that the user can create new report, it's "House"menu." To avoid this, our method is to set the explicit right to catalog for the application role.

    Thank you
    Jinbo

  • How to fix the user accounts in windows 8

    How to correct the user account in windows 8 on new g7 2246nr, I put to your laptop using the Microsoft account then switched to a local account.  I found myself with i admin working the rest of my files are broken up between 3 other user accounts.  I spoke with Microsoft to try to consolidate the accounts and they used a command line in the command, but he has not done. I always work with the system, but it has problems. I reloaded the software so for 3 times. All know how to correct the problem without reload all the software again?  also, after configuring sharepoint in Office Pro Plus, he created another administrator account.  I do not think this would happen?

    Hi BJ2124,

    Although I regret the inconvenience that you had with your experience of Microsoft Windows 8, you can better receive the technical expertise you need by contacting Microsoft about the issue of multiple account creation.

    You can call Microsoft Customer Service at 1-800-642-7676
    Mon - Fri: 05:00 - 21:00; Sat - Sun: 06:00-15:00 (PST)

    As a reference, I included the link to the technical support of Microsoft Windows 8 page:

    http://support.Microsoft.com/contactus/?ws=support

    Also, here is a reference link to change logins to Microsoft for local accounts:

    Microsoft how to switch from one account to a Local account in Windows 8

    And finally, here is a quick reference to solve the problem that you encounter while using an account download troubleshooting tool from Microsoft:

    The problems of account Microsoft Windows 8 with convenience store "Microsoft accounts"

    In this forum support is available for support hardware/software HP. I will provide better supported with your hardware/software of HP. If you need help with a software which is another provider, so I can re - direct you to reference appropriate at this time.

    I hope that you can mark these messages as solved, so that you can inspire others to follow your example with success. You never know who you can inspire.

    -How can I give Kudos? | How to mark a post as solved? --------------------------------------------------------

  • How to know the user is the call

    Hi all

    I development push a service Application in which the following requirement is that the push message should not be displayed when the user is in the call. How to detect the user wheather so busy on appeal?

    Please suggest me how to proceed.

    looking forward to responses CIHI to you guys.

    Thank you

    I thought you wanted to know if the user is on a call.  The code I gave you the will and sets the appropriate Boolean value.  Where and how you use it is up to you isn't it?

    I would have thought that the logic in your code to push would be simply

    If (! onCall) {}

    view

    }

Maybe you are looking for

  • Satellite A65: Mouse freezes after the coming of sleep mode

    Hello! I'm having a problem with my laptop. I have the A65 with windows XP. The mouse works perfectly every time I close the lid of the computer goes into sleep mode that is ok, but when I open the cover from my session to resume the mouse is frozen.

  • Transfer photos from iPod to iTunes

    Can how I transfer photos from my iPod touch to iTunes?

  • That means the closing blue screen problem down in WinXP? DMP attached.

    Received the blue screen error and need help to interpret .dmp file. Having read the advice here and don't understand the error. DMP link here. Can someone please help? https://SkyDrive.live.com/redir.aspx?CID=5de3dc24cafcbc7c&RESID=5DE3DC24CAFCBC7C!

  • 309 has no copy of the scanner only the ADF

    By making a copy from the control panel of the IOA. If you place a document on the scanner, it does not analyze. Instead the ADF begins to run looking for something in the charger. The scanner only works if you use a copy of the photo. But then, he u

  • Frozen lock screen Windows 7

    My computer freezes with the exception of my mouse on the lock screen, once I turn on my computer and it goes to the screen lock, everything is working well until I have click on or type help ASAP