How to make a SELECT LIST READONLY

Hi,
I have a form to update the existing values in a table. Primary column is based on a Select List.
So when user goto update screen they SHOULD NOT BE ABLE TO CHANGE the primary filed(means the value display in the Select List).
SO to make this one I have make that select list read only. But not like other items even when we make select list read only it still allow user to change the value. So basically read only property not working for select text.
There are many post in this regading same issue. Some of them recomended to make it disabled. But when we make a item disabled then when user POST that form, Apex not POST any disabled item values. Basically disabled items values not passing next form. So making item dissable also not a solution.
I have read almost 20 post in here regarrding this and didnt get any solution for this. So please let me know if anyone knows how to make a select list read only (which is working same as read only text boxes, means that value pass when user POST the form).
Thanks in advance...
mc

You define a function(this is based aorund jQuery selectors) in the page header like
<script>
  var makereadonly = function(selector, makeReadonly) {
      $(selector).filter("select").each(function(i){
          var select = $(this);
          //remove any existing readonly handler
          if(this.readonlyFn) select.unbind("change", this.readonlyFn);
          if(this.readonlyIndex) this.readonlyIndex = null;
          if(makeReadonly) {
              this.readonlyIndex = this.selectedIndex;
              $(this).css('background-color','#CDCDCD'); //Adds a background colour to readonly item
              this.readonlyFn = function(){
                  this.selectedIndex = this.readonlyIndex;
              select.bind("change", this.readonlyFn);
      //For input items
      $(selector).filter("input,textarea").attr('readOnly','readOnly');
      $(selector).filter("input,textarea").css('background-color','#CDCDCD');
</script>and apply it using a jQuery selector (call it in the "execute on page load" or any other JS code)
  makereadonly('#ITEMNAME1,#ITEMNAME2,#ITEMNAME3',true);Not that all of these methods(that act at the client side) will only prevent the user from modifying it 'normally', they could manipulate these readonly items using Javascript(or using firebug or any tool like that). So its better to make sure that your don't use the item value(from the page) for processing.

Similar Messages

  • How to make a select list editable or searchable like the combobox

    Does anybody know, How to make a select list editable or searchable like the combobox? Do we need a plugin here, where I can get it.

    Hi Nilesh,
    If this is what you are looking for http://apex.oracle.com/pls/apex/f?p=32395:3:1202144397644679
    get the combobox plug-in
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/searchable-combobox.html
    I have not tried this though. Found it while searching for some other plug-ins.
    Regards,
    -Senthil

  • How to make multi select list as dropdown??

    Hi friends,
    using apex 4.0
    i want to make multi select list as dropdown,how can i do this??
    thanks in advance.. :)

    mn123 wrote:
    using apex 4.0You MUST include the following information with every question:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    This cuts down on the need for a lot of follow-up questions or second-guessing. Appropriate solutions may differ according to any of these variables.
    i want to make multi select list as dropdown,how can i do this??Please define exactly what you mean by "multi select list" and "dropdown".
    Do you mean displaying a multi-select enabled select list as a drop-down list rather than as a list box? If so, this is not possible using standard APEX/web browser controls.

  • How to make a select list to return value to numeric column?

    I do have a select list with static values (STATIC:01;0,02;1,03;2,04;3,05;4,06;5,07;6,08;7,09;8,10;9). The problem is that I am returning a value to a numeric column. Therefore I have set 'Post Calculation Computation' as "to_number(:P73_MRGRATING, 9);" however I am getting ORA-01722: invalid number. How, (or when and where) to properly convert a character from a select list representing a numeric value into column of NUMBER data type?
    Thank you for your time.
    DanieD

    Sergio,
    It is because I am not able convert a value in a page item (:P73_ID) to number. On a page before, I have assigned a value to an application item (APPL_ID). On page 73, I want to assign the value in APPL_ID to the page item P73_ID . The value assigned to APP_ID is numeric. On a page 73 I also have a computation in Page processing section. It is an 'After Submit' processing of a static assignment of application item APPL_ID to page item P73_ID. Unfortunately it does not work. (ORA-01722: invalid number). I have tested this also with a 'Post Calculation Computation' on page item P73_ID (to_number(:P73_ID, 9999999999);) and I am still getting ORA... error. Only way I can make it work is to create a page item P73_ID as a text field, then when I run page 73 and enter a value into P73_ID manually - then it works and I can save the values from the form into database...
    The strange thing is that I am using application item APPL_ID on a couple of pages, in where clauses and it always works, even when I am comparing APPL_ID against a numeric value like select * from a_table where some_number = :APPL_ID, this works. But when I would like to create an entry form and assign application item APPL_ID to the page item P73_ID that is referencing a numeric table column – then I am getting ORA-01722…
    Is there any application (sample application) that is doing this and it works so I can check it and learn how to create this process appropriately?
    Thank you for your time.
    DanielD

  • How to make dynamic select list with time interval of 15 minutes

    Dear all,
    I've a question. I need a select list that contains time with intervals of 15 minutes from 08:00 till 16:00.
    example 8:00
    8:15
    8:30
    8:45
    9:00
    9:15
    and so on till 16:00
    The values or stored in a varchar column.
    Can someone please help me with this one?
    Best regards,
    Caroline

    I think the easiest way would be to create a table "INTERVALS" with one row and column "INT_PERIOD"? per 15 minute period description
    8:00
    8:15
    16:00
    Then create your select list item based on a Dynamic List, or Query as
    SELECT int_period d, int_period r
    FROM INTERVALS
    ORDER BY INT_PERIODYou could write something to load the table, but that might take about as long to just edit in the values.
    Making it a Dynamic LOV, you then have it available anywhere else you might need it.
    Edited by: Bob37 on May 4, 2012 8:57 AM

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • How to make row selection by checkbox in ADF table

    hello,
    using jdev11g TP4 , fusion web application
    when i drag my view object as ADF table into jsf page,
    i want to know how to make row selection by checkbox
    thanks
    greenApple
    Edited by: greenApple on Nov 10, 2008 11:33 AM

    Hi,
    the tree component has changed compared to 10.1.3. You no longer have a tableSelectmany component that renders as checkboxes. Instead you use the ctrl key and select the table rows
    Frank

  • How to get Saved Selection list in javascript?

    Hello!
    Recently I met a little problem about save selection. I want to get saved selection list so that I can used in javascript. Now I have no ideals. Hope you tell me some useful information about how to get Saved Selection list in javascript!

    Mark is right, it's not possible.
    But do you know you can assign selection to a variable, and get back to it simply like this?
    var sel = app.selection;
    app.selection = null;
    /* your codes here
    app.selection = sel;

  • HT4759 How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    How can make the events listed in my chalenda become automatically a reminder in the reminder?:

    Welcome to the Apple community.
    Calendar and reminders are two different and separate apps, you cannot transfer information between the two of them.

  • How to make it selected when clicked and open popup

    Hi,
    I 've a form in the parent page with many form elements.
    I've 2 radio buttons with values "Yes" and "No". I am opening a modal popup when clicked on "Yes" radio button. The modal popup is opening fine.
    But when I click "Yes", it' s not selected. After modal popup is closed, when I return to parent page, the option "Yes" is still not selected.
    How to make it selected when clicked and open popup?

    Perhaps try moving the application to your preferred desktop and then right-click it's dock icon > options > Assign to This Desktop.

  • How to make software select on UI

    May I know how to make software select. just click down the mouse and drag, then there will be a dot line square. After release the mouse,
    the things selected will change color to red.
    When move mouse over one object on UI, the mouse icon with change to the one with 4 arrow to 4 direction. If click down, the object will change to red color, other red
    color object will back to normal color.
    Any suggestion, thanks.

    As the attached vi, when in runtime, the selected 4 object need to change color. Or the click one need to change color. Thanks.
    Attachments:
    ss.JPG ‏67 KB

  • How to make a SharePoint list column ReadOnly using Sharepoint designer

    Hi,
             I am new to sharepoint. Need to make a few columns readonly in a sharepoint list.  Not sure how. Any help is appreciated.
    Thanks

    Here is one more Simple and Best practice to be fallowed using powershell
    http://soreddymanjunath.blogspot.in/2014/04/readonly-field-using-powershell.html
    Cls
    Add-PSSnapin "Microsoft.Sharepoint.Powershell"
    $web= Get-SPWeb -Identity "http://test.dev/sites/Wftest"
    $ls=$web.Lists.TryGetList("test");
    $flds=$ls.Fields["CustID"]
    $flds.ReadOnlyField=$true
    $flds.Update();
    Note:  If
    ReadOnlyField =TRUE,
    the field is not displayed in New or Edit forms 
    ReadOnly to TRUE hides
    the field from Site Settings pages for managing site columns and content types. Setting the Hidden attribute
    to TRUE completely
    hides the field from the UI. 
    Default  ReadOnlyField value
    is set to false.
    Best Practice is to Use 
    $flds.ShowInDisplayForm=$false;
    $flds.ShowInEditForm=$false;

  • How to make a selected item in woodstock Basic's drop down list highlighted

    I am trying to create a JSF web page and populate Woodstock Basic drop down with options from a MySql database and highlight some options that a user had selected from previous session. How do I make the selected items appear highlighted?
    I would appreciate a response soon.
    Thanks,
    ITTSwengr79

    More specific? It can´t be more specific. Maybe you want me to be less specific.
    At any way, this coding example should say more than enough.
    <sometaglib:someInputComponent value="#{someBean.someProperty}" />
    public class SomeBean {
        private String someProperty; // +getter +setter
        public SomeBean() {
            this.someProperty = "some default value";
    }

  • How to position a select list in the create region

    Hello,
    I would like to position a select list item in the create region, I think we can do that somehow using javascript but I don't have an idea how to make it.
    Thanks in advance!

    In this example you can see how to position the elements:
    http://apex.oracle.com/pls/apex/f?p=31517:242
    You don't need javascript for that. The element attributes are enough for that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • How to make hidden Drop Lists functional in RBList Subforms?

    I have created a form that contains 3 isolated Radio Button lists, each with hidden subforms that are unique per each button.
    Two of my RBLists and subforms work perfectly, showing hidden Drop Down List options and other fields as they should when a button is selected.
    However, RBList3 presents the Drop Down lists as user entry fields only. Each hidden subform in RBList3 contains one drop down menu and one text box for instructions.
    I've used the same javascript to hide/show hidden fields when buttons are selected. All settings seem to match up. Here is a sample of my code:
    if(RBList3.F.rawValue != 2) 
        this.presence = "hidden";
        newsubform.presence = "hidden";
    else if(RBList3.F.rawValue == 2)
        this.presence = "visible";
        newsubform.presence = "hidden";
    Does anyone have any suggestions for how to make my Drop Down Lists in RBList3 show as functional Drop lists?
    I have attached the form for reference.

    See example #62 on my blog for a 10.1.3 example:
    http://tinyurl.com/smuench-adf-examples
    For a tutorial on how to create them using the new features we enable in 11g, see my Oracle Magazine article:
    Defining Cascading List of Values

Maybe you are looking for

  • NCOMP Giving Errors

    I am trying to use ncomp to load a simple java class to oracle 8.1.7.4.0 on AIX 5.1 Java 1.3 platform However I got the following error, what am I missing here? What kind of permissions are needed? And, how to grant these permissions? HelloWorld.java

  • Help with iFolder3 and OS X 10.9.2

    I have just upgraded the OS on my imac to 10.9.2 and this has brought my ifolder3 function to a halt - tried to reinstall but it will not run and I have no access to my iFOLDERS - any help much appreciated

  • Home dir quotas not showing up in Server Admin

    We have 8 AFP servers here and for some reason 2 of them are not displaying the quota information in Server Admin. Nothing has been changed to these machines so I'm puzzled as to why this is happening all of a sudden. Any ideas? Thanks.

  • ITunes network connection lost

    I have for the last couple of days, after updating to the new itunes in countered a problem. Every time I check for available downloads I get an error message. "Unable to check for available downloads. The network connection was lost". I have tested

  • Upgrading Itunes 7 ver

    Hi, I have an old version of Itunes 6. but when I wanted to install the latest version of Itunes 7. The Itunes 7's setup cannot be open. The downloading of the setup is fine and ok but doesn't know why cannot open it once I double click it? Is there