Setting minimum length of a text field

Forms [32 Bit] Version 10.1.2.3.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning and Data Mining options
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.5.0 (Production)
Oracle Procedure Builder V10.1.2.3.0 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.3.0 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE     10.1.0.5.0     Production
Is there a way to set the minimum length of a text field without using a trigger?
for example. I have a field called journal_no varchar2(7), I want to enforce that at least 4 characters are entered.

In order to set a text item to a minimum value, you need to set the format mask.
In my case it was
AAAA
and i was wrong...!!!!
that just limits the number of characters to 4, i want at least 4, back to the drawing board......
Edited by: DM on Jan 27, 2010 11:39 AM

Similar Messages

  • How to set maxWidth in tabular form Text Field

    Text Fields do not have maxWidth property in tabular forms. Is there any way to set maxWidth using the Element Attributes field? Or at least create a Validation process to let the user know why an error appears if he/she enters more than the allowed characters in a text field.
    Thanks
    Francisco.

    >>
    This information should appear in the user'smanual.
    Francisco.There should be a working MAXLENGTH attribute that
    defaults to the correct length based on the data
    dictionary.Hi,
    been trawling through the forums for the same problem, found this solution which works a treat (thanks! ). But agree that the software should actually allow you to define this anyway, rather than bodge, fool, amend, bridge or circumnagivate (sp?) the software.

  • Issue with length of form text fields in Firefox in OSX

    I've just spotted an issue with this in a page on a site, with two forms next to each other. (the limited space has highlighted it.)
    Basically FF on the Mac is making the text fields longer than any other browser :
    http://www.goodsafariguide.com/trade/loginfail2.php
    If anyone knows a fix for this, that would be great.
    If not, I'll just reduce their length so that at least they're not squashed in any browser (even though they'll be a bit short in every browser other than FF Mac).
    http://www.goodsafariguide.com/trade/loginfail2.php
    Thanks.

    Thanks guys - its just not something I've really noticed before, as most forms I do have enough width compared to this page where I have two side by side.
    Will pop that bit of CSS in.

  • Set background color for conditional text fields by click of button.

    Hi,
    I am new to apex, the scenario is when i click on a button i.e. Save, it shoulld compare 2 fields P1 and P2 which are text fields.
    If the value of P1 is greaterthan P2 then the whole P1 text field background color should change to "Red" otherwise in any other condition the P1 field should be "Green" color.
    In which section the color function should be called on the Save button?
    On the page in the HTML Header section i have added the below code but the background color is not getting set.
    <script type="text/javascript">
    function fncChangeColor()
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
    document.getElementById("P1").style.background = "RED";
    else {
    document.getElementById("P1").style.background = "GREEN";
    </script>
    Can any one help me in moving ahead with this scenario with a detailed information.
    Thanks,
    Priyanka.

    Hi,
    Call function on button URL target
    javascript:fncChangeColor()If button should submit page, then I think you do not need color field to green.
    Just change to run submit function.
    <script type="text/javascript">
    function fncChangeColor(){
    var num1 = $v('P1');
    var num2 = $v('P2');
    if ( num1 > num2 ) {
      $x("P1").style.background = "RED";
      return false;
    apex.submit({request:"YOUR_REQUEST"});
    </script>Regards,
    Jari

  • Forms: How to set a maximum size in Text Fields with automatic size

    ¡Hi!
    When I set a text field on my forms and I use automatic size for te text that the user can write, if the user don't need more space than the field size, when the text appears, Adobe Acrobat Pro always set the text-size to 14 or higher. How can I set a maximum size for that text? For example... 12 or 10...
    Thank you very much,
    Best regards from Spain,
    David.

    Ok. If I use a single line text field, changing the height of the field seems to be a simple way to solve the problem, but... what should I do when the fields are multi-lineal?
    Thanx for your quick answer.

  • Using JavaScript to set value of Spry validated text field

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

    Why can't the value of a text field be set using JavaScript
    when it's validated using the Spry validation widget.
    Example (this works):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <input type="text" name="birthdate" id="birthdate"
    value="">
    Example (this doesnt work):
    <select name="birthdate_month" id="birthdate_month"
    onChange="document.getElementById('birthdate').value = 'test';">
    <option>1</option>
    <option>2</option>
    </select>
    <span id="birthdate">
    <input type="text" name="birthdate" id="birthdate"
    value="">
    <span class="textfieldRequiredMsg">please enter your
    birthday</span>
    </span>
    <script type="text/javascript">
    <!--
    var birthdate = new
    Spry.Widget.ValidationTextField("birthdate", "none");
    //-->
    </script>
    Is there a way to change the value of a Spry validated text
    field using JavaScript?
    Thanks.

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

  • How do you set the format of a text field

    I have a form with a text field that I want to set to either date format or number format depending on the selection of a radio button. Is there a way to do that via javascript?
    var f = getField("txtAgeDOB1");
    var initVal = f.value;
    if (initVal == "Age") {
    f.format = number;
    } else {
    f.format = date;

    One can set the format of the field to "None" and then by checking the value of a check box or some other logical test make a decision as to what format and value to fill the text box with. One can use the util.printf, util.printx, or the util.printd method to format the value.

  • Setting the focus to a text field on a subform in the form initialize event.

    I have a form that checks the rawValue of a text field to determine whether or not the focus should be set on a particular text field. Here is the logic:
    if(txtEmailVisible.rawValue == "visible")
    frmEmailData.presence = "visible";
    xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
    else
    frmEmailData.presence = "hidden";
    For some reason the focus isn't going to that object, instead it is still going to the first field in the tabbing order. Am I calling this in the wrong event, which is causing the tabbing order to over ride my setFocus call?
    Thanks,
    Chad

    Try using setTimeout for this from the DocReady event.
    app.setTimeout("xfa.host.setFocus(xfa.form.NEDA.main.frmEmailData.txtEmailBody);
    ", 250);
    There are several occasions where code must be executed after init/formReady/DocReady, etc. has been completed. This is one of them.

  • Field Length of the text field on the screen

    Hello Experts,,
    I have field with its label on the screen. Now the label text is picked up from data dictionary as defined.
    Data element       J_3ARQDA                       Active
    Short Description:  Requested delivery date
    Length           Field   Label
    Short             10       RqDlv.date
    Medium         16       Req.deliv.date
    Long              20      Requested deliv.date
    Heading         5        Dldat
    Now the text in different laguage say russian is quite bigger in length as compared to english ones. Now on the sales order screen i have the text 'Dldat', but the russian user needs a bigger word than just 'Dldat'.
    Approach :  I changed the heading length to some '25' from '5' to accomedate the russian text in DDIC for data element. But if i have to adjust the same on the screen with new text length i have to extend the screen border as well.
    Is this right approach ? If not how do we actually accomedate the other language texts on the screen with out altering the screen borders ( length and breadth).

    Hi Radhika,
      I tried doing that with a couple of invoices but I dont see the Long text printed on the check after the automatic payment run. Can you please suggest me if I am missing on anything. I inserted a long text and a '*" before this to have it printed on the check which does not seem to work. Can you please suggest me alternative solution.
       Thanks in advance.
    Ramya

  • How to set  a  focus to a text field when  button is clicked

    [b]in sun stdio creator  setting  a focus is not possible is it a bug
    if  we use  java script
    <ui: button  onClick="focuss(form1:text1)"/>
    function focuss(text1){
        var text=text1;
        text.focus();
    the code is executed but  it is not  working  why[/b]

    Sorry, I didn't read carefully your question. My answer refered to client side only. You can set the focus programmatically with Body.setFocus(). In the appropriate action method or action listener call
    this.body1.setFocus("form1:textField1");
    or maybe
    this.body1.setFocus(this.textField1.getClientId());
    to avoid errors due to changing client ID or save the client ID of the TextField in a private member and call Body.setFocus() in prerender().

  • Set cursor(caret) position in text field

    Hello !
    I have a <input type=text...> on a JSP Page with a default value...
    I want this: when the input get focus, it "sends" the cursor to the last position, so the user can continue the default value...
    setCaretPosition didn�t work...
    Any help???
    The better thing I did is to select the entire text, but when the user types something, the default text will be replaced... :(
    Any help?
    Thanks,
    Igor.

    I have a <input type=text...> on a JSP Page with a default value...
    I want this: when the input get focus, it "sends" the cursor to the last position, so the user can
    continue the default value..If this JSP page of yours is being run out of a browser, onFocus, the cursor (or Caret) will be positioned at the top left in NN and at the bottom right in IE. There is no getting around this.
    V.V.

  • Setting a Text field in adobe form non editable

    Hi Experts,
    I have generated a Adobe form using webdynpro java. I have  couple text fields. They are binded with some values which a RFC returns. When I see the output These text fiels values which are populated from backend are editable. Can anyone suggest me how to make these text fields non editable.
    Thanks,
    Raj

    Hi Raj,
    You have to set the properties of these text field as readonly.
    For this you have to select the text field ... Go to the Object Pallete.
    There you will see three Tabs Field, Value and Binding.
    You have to click on Value Tab  and there you have select the Type as Read Only.
    If you do not have Object Pallet open .. go to Menu Bar Window and Click Object
    This will solve your problem.
    Cheers
    Satya

  • How to set max size for a custom field ucm11g

    Hi,
    I need to set maximum length to a custom field created in ucm11g 11.1.1.6
    The field's data type is Text and for example i want to limit the length to 10 characters
    Any example how to do this ??
    Regards
    Carlos

    Hi ,
    If you are looking to limit the number of characters that can be entered to the field from GUI then a global side effect and rule combination will help you achieve it . It would be something like this :
    This is done by leveraging Side Effects under Rules - Rules Activation Conditions. You also need to set the Rule as Global for this to be effective across the system.
    In there the following has to be set:
    <$dDocTitle:maxLength=80$>
    <$dDocName:maxLength =50$>
    Set the above side effect in the rules and corresponding Profile need to refer it for being able to limit the number of characters that can be entered for Title and Content ID.
    Custom metadata too can be controlled in the same way . For example, if metadata "Version" need to limit the number of characters being entered then "Side Effects" to be set is as follows :
    <$xVersion:maxLength=50$>
    NB - the maxLength parameter is not supported for fields of type Memo. It will only take effect on standard text fields.
    Thanks,
    Srinath

Maybe you are looking for

  • Import of Apex Application to another instance takes a long time

    Hi, I have developed an apex application which is of size -24 MB .While importing the appl to another instance it takes a long time (few hours). The imported appl is working fine so far. What should be the ideal time for the import of this size appl

  • How to fetch Excel sheet through File adapter in SAP PI?

    Dear all Can u help me  with this? Regards karan kanotra

  • JDBC Driver errors after installing Security Update 04-2007

    After installing the latest security update for 10.4.9, My JDBC driver is no longer working. I'm running PHP & Mysql as a localhost for dev and I know that both are running but are not speaking to each other. I use SQL4X Manager to manage my DB and t

  • Rowspan in a report?  (APEX 2.2.0)

    Hi all, I have a report that looks roughly like the data below. (Please forgive the boring sample data; my imagination is busy elsewhere.) | COL_A | COL_B | col_c  | col_d  | COL_E | | aye 1 | bee 1 | cee 1a | dee 1a | ee 1a | | aye 1 | bee 1 | cee 1

  • Errors while loading a webservice

    Hi all, When my weblogic server 7.0 starts, and tries to start a webservice, the following error message is generated: javax.servlet.ServletException at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912) at weblogic.ser