How do I disable a text field or select list when I change record.

Dear Sir.

I created the form with the report when I insert the new record, then all ground are able to insert the value in the table.

Here I want to when I change any folder, then a field as a TEXTFIELD or select list, which I should be disabled in the case of a CHANGE.



How do I disable a text field or select list when I change record.



Thank you

CORINE

Hello

Edit the element... There is a Readonly tab... Enter the condition for readonly... for example... Suppose you have a hidden field P1_X for the primary key. To add the new record, this field will be null and for editting p1_x will have the primary key value...

So you can make the condition as P1_X readonly IS not null...

Kind regards
Shijesh

Tags: Database

Similar Questions

  • Disable a text field in the OPS

    Hi all

    How to disable a text field while loading the page.

    I did for a messageStyledText and the code written in processRequest.

    OAMessageStyledTextBean = styledTextBean
    (OAMessageStyledTextBean) webBean.findIndexedChildRecursive ("New");
    styledTextBean.setRendered (false);


    Similarly how can I do to a TextField messageTextInput.

    Please advice,
    Roselyne

    Instead of "OAMessageStyledTextBean", use "OAMessageTextInputBean".

    To disable a field use method "setDisabled (true).

    If you do not want to display a field and then use "setRendered (false);"

    -Anand

  • How can we add a text field on the stage, but without the text label?

    How can we add a text field on stage, but without the left text label by default?  I want just the field.

    I thought about it.  Go to the page layout palette and change the options of caption for the text box.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • 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 can I make my text field automatically upper case?

    How can I make my text field in a form automatically uppercase?

    Use the following as custom hits JavaScript text field (select a Format type custom):

    Script from typo to text field

    Event.change = event.change.toUpperCase ();

  • Turn off the text field (always submits page when you press enter)

    I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.

    The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.

    I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.

    My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.

    Any ideas would be very appreciated.

    Andy

    Hello

    First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.

    Otherwise, using the text field type, adds the following to the INPUT tag:

    onkeypress="return submitEnter(this,event)"
    

    which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:

    function doEnter(t, e)
    {
     if ($x('P1_SEARCH_RUNNING').value == 0)
     {
      $x('P1_SEARCH_RUNNING').value = 1;
      return submitEnter(t, e);
     }
     else
     {
      return false;
     }
    }
    

    Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:

    onkeypress="return doEnter(this,event)"
    

    Andy

  • How to wrap the text in the selection list

    Hello

    Is it possible to wrap the text in a select list? If so, how you do this?

    Currently, the field is a width of 30 with a maximum width of 30.

    Thank you
    Mary

    Is it possible to wrap the text in a select list? If so, how you do this?

    Don't think. According to the HTML specification elements < option > with the values in a statement select <>cannot contain text, without other HTML elements can be included to affect the structure.

    Currently, the field is a width of 30 with a maximum width of 30.

    My understanding is that these values have no effect. Using CSS to apply a width can be supported by some browsers, but others will always show the item select the width of the longest < option >.

  • function to call when the specific input text fields are selected

    Hello

    I have a number of text on stage entry field. I want to call some function when the specific input text fields are selected. Help, please

    Thank you

    certainTextField.addEventListener (FocusEvent.FOCUS_IN, handleFocus);

    function handleFocus(e:FocusEvent) {}

    trace (e.Target.Name);

    }

  • Text field (always submits page when you press enter)

    Hello

    I have two elements (username and password) and two buttons (Submit & cancel) when the user enters the correct DB table entry values and strike button SUBMIT with the < /b > < b > mouse it is able to go to the next internal page does not, up to here everything works absolutely perfect.

    But now, instead of clicking the button "SUBMIT" with the mouse, I want the user to use the functionality of the ENTER key on the keyboard and so I apply the two elements (username and password) as < b > text field (always submits page when you press enter) < /b > and < b > password (submits when you press enter) < /b > respectively.

    Also created a conditional branch and an unconditional branch (with the highest sequence number) by the research of the below thread: -.

    Re: Text field Element submits page when you press ENTER

    but still did not find any success, when I run the page with the correct details in the elements and press button nothing works the same page returns back to me with these two elements as empty?

    any help?


    thxs


    Kind regards
    Kumar

    Hello

    OK - two things...

    First of all, your branch to page 9 was conditional on the SUBMIT button

    Second, you had the condition that "request = Expression 1" where it should be "EXISTS.."

    I removed the button state and changed the condition type. Try it now

    Andy

  • How to set the default value in the select list to cascaded

    Hello
    I use Denes Kubicek cascade example list of selection http://htmldb.oracle.com/pls/otn/f?p=31517:119

    And I want to give cascading the selection list with a default value. So, anyway, I use this application process:

    < pre >
    BEGIN
    OWA_UTIL.mime_header ("text/xml", FALSE);
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ("< select >");
    HTP.prn ("< option value ="' | 1 |) "" > ' | '- all employees-' | ' < / option > ");"

    FOR c IN (SELECT ename, empno
    WCP
    WHERE mgr =: cascading_selectlist_item_2)
    LOOP
    HTP.prn ("< option value ="' | c.empno |) '">' || c.Ename | ("< / option >");
    END LOOP;

    HTP.prn ("< / select >");
    END;
    < / pre >

    How can I select for example empno default 1000?
    Thanks in advance.
    Jacob

    Jakob,

    In this case, your default value is

    HTP.prn (')

    However, you can set the default value in the loop as you want. You just say that is your default - first, second, third...

    In the list select ajax there's no submit and no calculation of values then I assuem your default is the punch one you wan to display when a selection list has been changed?

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to disable the text field

    Hello Expert,

    Need your help

    I got 10 points on the shape. One of the elements is the list of selection.
    What I'm trying to do is if the user selects 'Yes' then select point A and point B must be activate.
    And if the user select 'No' select list point A and point B must virgins and turn off.
    I know it can be done in JavaScript. Can someone show me how do it in JavaScript
    Its urgent

    -SAGAR

    Sam:

    Add this piece of JS in the header HTML of your page

    
    

    And then for the HTML attributes for the element select set "onchange = disableStuff (this);"

    CITY

    Published by: City aissaoui on December 10, 2008 05:06

  • How can I disable resizable text areas?

    In the beta, I noticed that you added an option of resizing for multiline text boxes. How can I disable this for all users on my site? Is it something I can write in my CSS to disable?

    See:

    textarea {resize:none}
  • How can I add a text field for the main menu?

    I have a project with a menu.  He has a title.  I wanted to add an additional track on the menu, what I had done in an earlier draft.  I would have thought he would have intuitively obvious, as highlighting the existing title I and do a copy and paste.  However, I learned that nothing is intuitive with Premiere elements 12.  Can someone tell me how to get a 2nd title on my main menu?  I have done it before, but apparently did not write it and I was faced with that I falsely assumed would take me 30 seconds to accomplish.  Thank you.

    Rick

    Do you really need a second title for the page in the main menu and the selection of scene or you page fixed for your Adobe title in more than one line?

    I wonder

    I wanted to add an additional track on the menu, what I had done in an earlier draft.

    Is it possible that as soon as you use a theme which came with 'subtitle', as the trip/Beach Resort, not all do.

    Workaround for the title with more than one line of text can backfire on you. But you can try. Excerpt from my first items 13 on this blog

    0019 first Elements 13 movie Menu title question: multiple lines of text


    A first elements 13/13.1 user reports that, if it creates a 3 lines of title text for the main menu of the fake big screen theme in the customization area of Movie Maker project, these 3 lines of text eventually "encoded" in the project of reopening after that that there had been closed.

    We have confirmed this report and extended it to include this problem appears for 13 of Menus other than the fake Widescreen cinema. This issue is not seen in first items 12/12.1 and earlier versions.

    BEFORE REOPENING THE CLOSE SAVE

    Figure 1. Main menu of Spring Flower home with 3 lines of text, as seen before the closure of the Reopen

    AFTER THE REOPENED NARROW SAVE


    Figure 2. Spring Flower main Menu title initially with 3 lines of text, as seen from the closure of the Reopen



    The only way found so far to get the final product to have 3 lines of title text for menus in the final product is to customize the theme to the movie Menu in the customization of the Menu movie of the project area, do not save, close the project at this time and can do the burn to.


    Many variables were examined to explain this behavior. So far, no answer for why.

    If you are determined to use a particular theme that comes with the title menu and subtitle, look at the text of the Palette layers layers in the editing menu .psd file (.psd Editor could be Photoshop CS or higher).

    Regarding

    on my project last year that was the menu that I liked with 2 text fields, I have also got rid of the "arrow" shortly before the text that was the menu key.  Anyone know how I do that?  I can't figure that out now.

    Could you be more specific. But, for now, consider... If you Play All text, you double-click to open the text of the amendment, the deleted text, click OK. Play All disappeared. Sometimes, in page and removal of text "main menu" scene selection to the navigation button... double click on the button to open the changes to the text, delete text, press ENTER, and then bar spacing, and click OK.

    Please let us know if everything above the target you wanted to know.

    Thank you.

    RTA

  • How do fill you a text field based on the entries in other text fields?

    I would like to be able to have a text field that fills as 'Full' or 'Incomplete' based on the question if all required fields have been filled or not.

    For example, if the "First Name", "Last Name" and "City" text fields are not filled, the text of "the State of completion" field displays 'Incomplete' and once they are filled, the text of "the State of completion" field will turn into "Complete".

    How can I do this using javascript? I searched the web for a tutorial, but most of the results seems to be focused on the menu drop-down.

    Please point me in the right direction!

    Try the script below. I put this on the calculate for Field1 event

    If (FirstName.rawValue == null |) LastName.rawValue == null | City.rawValue == null) {}

    Field1.RawValue = "incomplete."

    }

    on the other

    Field1.RawValue = "complete."

Maybe you are looking for