How to control the length of the field... ?

Hi all


All by providing payment details in the payment.jsp... If we use a credit card which has 16 digits then, how to control the ground to allow the entry of 16 digits only... ?


Thank you
Vishnu

Write javascript to enter only numbers and set the "16" size = attribute to limit the size to 16 digits.

JavaScript can be like that of google.

function isNumberKey (evt) {}
charCode var = (evt.which)? evt.which: event.keyCode
If (charCode > 31 & (character code < 48="" ||="" charcode=""> 57))
Returns false;

Returns true;
}

-Kiss

Tags: Oracle Applications

Similar Questions

  • How to control the length of field, select items list to 4.2 page

    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    help much appreciated
    see you soon
    Wim

    WimDeGroot wrote:
    I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:

    I would like to know how to control the length of the elements of the type selection list page 4.2
    (as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)

    Normally the browser automatically resizes the selection list based on the content.

    What version of the browser / do you use?

    What theme?

    What model page/region?

    What form/article layout?

    What content does not match?

    (Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)

  • How to control the selected area in the field

    I'm trying to find how to control him are selected a field so when the field is selected only a part of the field is highlighted. I can't find a way to do this other then stir in a small field within a field not selectable largr.

    Any suggestions on how to do it?

    Thank you!

    Hi crispoyz,

    You can override the drawfocus fields for this method.

    Try with this code. This is an example of code just to understand.

    class CustomField extends Field
        {
            int width = 100;
            int height = 100;
            String _text;
    
            public CustomField(String text)
            {
                super(Field.FOCUSABLE);
                _text = text;
            }
    
            protected void layout(int width, int height) {
                setExtent(getPreferredWidth(), getPreferredHeight());
    
            }
    
            protected void drawFocus(Graphics graphics, boolean on)
            {
                if(on)
                {
                    graphics.setColor(Color.GREEN);
                    graphics.fillRect(20, 10, getPreferredWidth()-50, getPreferredHeight()-30);
                    graphics.setColor(Color.RED);
                    graphics.drawText(_text, (width - getFont().getAdvance(_text))/2,(height - getFont().getHeight())/2);
                }
            }
            protected void paint(Graphics graphics) {
                graphics.setColor(Color.RED);
                graphics.drawRoundRect(0, 0, getPreferredWidth(), getPreferredHeight(), 20, 20);
                graphics.drawText(_text, (width - getFont().getAdvance(_text))/2,(height - getFont().getHeight())/2);
    
            }
    
            public int getPreferredWidth() {
                // TODO Auto-generated method stub
                return width;
            }
            public int getPreferredHeight() {
                // TODO Auto-generated method stub
                return height;
            }
        }
    

    Thank you.

  • How to control the number of fields in the Advanced mode in &lt; af:query &gt;

    Hello

    How to control the number of fields in the Advanced mode in < af:query >?

    Say I have 20 fields in my table, and I created a view of criteria with 2 fields. This would work perfectly in basic mode. But in Advanced mode , the choice of fields is possible by clicking on the Add fields button. I didn't have the customer to search with all 20 fields. Only 10 fields must be listed in the Advanced Mode, even if there are 20 fields in my table.

    How can I control the list of fields in ADDFields button?

    Any ideas?



    KR

    You can uncheck the contestable ownership of attributes that you must not appear in the Advanced Mode (but they will not appear in the other modes too!) or by programming the value the same as those mentioned here.

    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.html

    Also, you can hide the button AddFields as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

  • How to validate the field "Reason for change" in the commercial indications using JavaScript?

    How to validate the field "reason for change" in the commercial directions Summary tab using JavaScript?

    Current version of PLM4P: v6.1.1.5.2

    Please help me to validate the fields using JavaScript.

    Thank you

    Nefertari

    Developed using some of the Javascript predefined functions that we offer, it's just JavaScript and jQuery.

    But here is an example.

    (Use Internet Explorer F12 developer tools to find the IDS of the fields to work with.)

    $(document).ready(function() { 
    
        if (UI_Ext_isSpecInEditMode && UI_Ext_HasWorkflowBehavior('1005'))
        {
           //normally, we can use jquery to retrieve elements ($('#ifOfInput).val()), but it seems to fail when the id and the name attributes are the same. so we just use javascript document.getElementById instead.
           var reasonForChange = document.getElementById('ctl01$SpecSummaryctl1$ctlCollapsibleContentContainer$ctl00$txtChangeReason')
    
           if (reasonForChange != null) { 
    
                if (reasonForChange.value == null || reasonForChange.value.length == 0) {
                     UI_Ext_MarkFieldAsRequired('ctl01_SpecSummaryctl1_ctlCollapsibleContentContainer_ctl00_lblSpecSummaryReasonforChange');
                     alert('Reason For Change is required');
                }
           }
        }
    }); 
    

    However, not the user registration or workflow specification. If you were to do this, you must remove record them and workflow buttons and links, and this probably isn't the best practice. On the contrary, you would write validation server that would give you this error message if they try to save/workflow. (So most customers do not use Extensions of the user interface for this type of validation).

    Kind regards

    Ron

  • How to control the number of lines of text below the image in the slideshow module?

    Lightroom 3.3

    How to control the number of lines of text below the image in the slideshow module?  I have an image with 36 words in the caption field which exports like two lines GOOD.!  I have another image with 57 words in the field of legend who runs the page and shows only a VERY BAD line.  With 57 words I can't do the single-line text box small enough to keep the text does not spread out of the page.

    Ideas?

    On the Mac platform and I expect similar under Windows, just hit enter or return key will not help. Instead, you will have to hit the keys Ctrl + Enter or Ctrl + return. This forces a new line. Windows may use a different modifier key. The screenshot below shows that it is possible. Unfortunately, you need to add the text via the caption or Description field in the library module.

  • Satellite M100 with Debian - how to control the power and the cooling fan on

    Hey,.

    I M100 and I installed debian, works very well, but there is a problem.
    Cooling fan turns on the top speed of all time. I m not shy on unix.
    How can I control cooling fan?
    How to control the power to the laptop?

    Hi mate,

    have you ever heard of the toshutils? I highly recommend trying these tools. Just google for toshutils and you'll find a few nice applications. Should usually be included in the distribution you have, also, I would check with 'apt - get search toshutils.

    See you soon

  • How to control the speed of the fan on Satellite A660 - 11 M?

    Please any body know how to control the fan speed its always of 69% and making bad noise and the cpu use is 3% no to treatment high I try avancΘs power but still runing high speed

    Advanced power settings go to Toshiba power Saver saver > cooling method. There are minimum level. Change back to your power management for a second power plan, and the fan must be much quieter.

    I did it on my Satellite A660.
    Before changing PC Toshiba, health monitor showed CPU temperature 41% and the speed of the fan was 67%. After changing the method of cooling fan speed is 0%.

  • How to control the output voltage?

    Good time after some time can get the output voltage, but this value is alwayscontinuous. How to control the voltage output through a Boolean? In

    in order to get this tension when I want to.

    Greetings.
    Hugo Santos

    Hi Hugo,.

    If you use a LabVIEW project, you must set the time of sampling in the properties of the node (see SamplingInterval.png). But this time to refresh the data should be high enough. If you take into account this update of time trying to control your way out.

    Kind regards

  • How to control the ws appeal period

    Hi Experts,

    I use bpm12.1.3, when the process web service using the service task, how to control the delay?

    Best regards

    Hi user,

    There is a nice blog on wait times. It's about 11g, but it also applies to 12 c.

    https://technology.AMIS.nl/2011/11/18/timeouts-in-Oracle-SOA-Suite-11g/

    Antonis

  • How to control the movement of the oam in muse &amp; just play once the proposal?

    How to control the movement of the oam in muse & just play once the proposal?

    This must be configured during the creation of the oam, no Muse, but the animated application you use.

    Thank you

    Sanjit

  • How to control the service console in ESX?

    How to control the service console in ESX?

    http://www.Petri.co.il/5-critical-VMware-ESX-CLI-network-commands.htm

    http://download3.VMware.com/VMworld/2006/mdc9694.PDF

    http://download3.VMware.com/VMworld/2006/mdc9807.PDF

    http://download3.VMware.com/VMworld/2006/tac0028.PDF

    http://download3.VMware.com/VMworld/2006/tac9689-b.PDF

    http://download3.VMware.com/VMworld/2006/labs2006/VMworld.06.Lab04-performance-manual.PDF

    http://www.RTFM-ed.co.UK/

    PS: If you have found useful messages then please leave a few points

    André

  • How to control the sort during the download or export

    can't figure out how to control the sort order when you export on hard drive or upload to smugmug.  have photos arranged in the way I want to do in LR and then when I export to hard drive they are ordered by file name.

    When it comes to your hard drive, your operating system determines the file order.  No matter what you do in Lightroom, the OS will be based on your choice determin how files will be ordered. If you want them to be in order, you should probably adopt a convention of name change in your export that names the exported files similarly followed by a sequence number.  File01, folder 02, etc. Then set your viewer (Finder/Explorer) to sort by file name in ascending order.

  • How to reorganize the field that was dynamically created by the controller

    Hello

    We have created a field (of 'Style' = > 'MessageChoice') in the page using the declaratively controller and also where we dynamically attach a View object to the field based on certain conditions.

    The hard part, that we are facing here is that we couldn't a replenishment of the field through customization because the field is created via controller because we don't see not any which column.

    Can someone help me please how to reorganize the field by the controller or any other way to do this?


    Your suggestions are very appreciated.


    With our thanks,
    Trehout

    Depreciated, the method will not be supported or will be obsolete in the future provided.
    don't worry about the depreciation methods. His will not touch you in the near future...
    Because the whole ofa technology is amortized now... ;)

    Yes, if the item is part of a specific region use as a handle.

    Prasanna-

  • How to set the field "default" of a quick dashboard to yesterday?

    Hello world

    I have a dashboard the guest on a date (full name Date.Date and type Date).
    I also have a simple report with two columns: Date.Date and a measure (whatever the name).

    I've managed to filter the day before the current date in the report by adding an advanced SQL filter:
    Date.Date = Cast (TimestampAdd(SQL_TSI_DAY,-1,@{system.currentTime}) as Date)

    Now, I would like to invite him to select the day before the current date by default.
    The filter on Date.Date would be "invited" or more.

    How to set the field "Default" from the command prompt?

    Thanks in advance

    Hello

    go to the command prompt...
    Select SQL results of as default: drop-down list.
    here... you have to write your SQL logic...
    who uses by default the previous date
    something like that...

    * Select case when 1 = 0 then anydate column of another timestampadd (sql_tsi_day-1, CURRENT_DATE) of the end SubjectArea name*.

    write like this... and report back...

    Thank you & best regards
    Kishore Guggilla

Maybe you are looking for