Make a list of selection read only based on a condition

Hello

I have a selection list that I don't want the user to click in change the value stored in a certain condition
in my case based on the result of a SQL query.

How to implement this in the APEX? I want the selection to be displayed, but not clickable, list according to a condition.


Thank you

Leckraj

Create a hidden element and store the result of a SQL query for status of selection list. Create the dynamic action based on brand value hidden item select it list as disable, use the following code to disable the list of selection based on the value of the hidden item,.

if ( $v('Px_HIDDEN') == 'value_of_item' ) {

$('#Px_SELECT').attr("disabled","true");
}

Thank you
Lacombe

Tags: Database

Similar Questions

  • Why not make a text box read only based on drop-down of work?

    Hello experts.

    I received help on this a few hours ago, and it has worked very well so I closed the discussion and form.  However, now it no longer works and I don't know what I did.

    I have a form with a dropdown list and two text boxes.  The first text box is populated according to the value selected in the drop-down list, I used a simple table of the to do and it works as expected.  I had to bring textbox2 read only based on some selections in the drop-down field.  It worked very well at the beginning, but now it no longer works.  I did not any changes to the form except that I closed and since.

    I try to get the following to work:

    If (this.rawValue is "Junk" again)

    {textbox2.access = "readOnly" ;}

    If (this.rawValue is "More Junk")

    {textbox2.access = "readOnly" ;}

    I put this in the change event using javascript.  I use ARE 8.2 on Windows Vista 32 bit.

    Any help would be greatly appreciated.

    Thank you

    Jerald

    In the case of change you can't get the rawValue... So, use xfa.event.newText to get the modified text...

    Also, you have a space at the end of the value while comparing. In the code below I removed it.

    If (xfa.event.newText is "Junk Again")

    {textbox2.access = "readOnly" ;}

    If (xfa.event.newText == more "junk")

    {textbox2.access = "readOnly" ;}

    Thank you

    Srini

  • How could put editable report column as read only based on the other domain

    Hello world

    I'm new to APEX. I have a modifiable tabular report (SQL query). When I choose the column (which is a selection list) of a certain value, I want column B to be read-only (depending on the result of an another SQL described below). It doesn't seem to be a READ ONLY section in the type of tabular report where I could put my SQL condition.

    In other words, "column B" must be read only based on SQL returning following true or Exists:
    Thus, to determine if column B is ready only, I need the following logic:

    SELECT 'x '.
    of tab1
    where key = (value of column A)
    and the flag = "Y".

    Any help would be greatly appreciated!
    Thank you
    François

    You can only do so if your tabular presentation is a manually created. In this example, it shows how to set this property:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:170

    You can use a case statement to set this property for specific lines.

    SELECT empno,
           CASE
              WHEN ename LIKE 'A%'
                 THEN apex_item.text
                                  (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px" readonly="readonly"',
                                   'f34_' || '#ROWNUM#'
                                  )
              ELSE apex_item.text (34,
                                   job,
                                   80,
                                   100,
                                   'style="width:170px"',
                                   'f34_' || '#ROWNUM#'
                                  )
           END job
      FROM emp
    

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

  • Make a seeded FDF segment read only dynamically... Urgent!

    Hi all

    Is is possible to make only 2 segments on 7, of a FDF read only based on a context value in R12? The page is a page OFA sown under the responsibility of "Oracle installed Base User Agent".

    I've browsed the forum and discovered that "you donot handle the FDF segments individually on the Page. but it wasn't with regard to what makes some required and other segments.

    Help, please

    Thank you and best regards,
    Dean

    Its really simple, you don't have even to extend the controller. The Flex element exposes the property called list of Segment. Just the value as shown above for this property.

    for example: Let's say context is C1 and the segments are S1 to S7, then the list would be something like

    Global data items. global segment1 | global segment2 | ...|| C2 | S1 | S2 | S3($RO$) | S4($RO$) | S5 | S6 | S7 | ...|| C2 |...

    You may notice that all Segment 3 and 4 are marked read only.

    Kind regards
    Guru.

  • Field read only based on the authorization form

    Hello

    I have a field in a tabular presentation read only based on a permission scheme, as you can for a field in the region with the help of a condition of PL/SQL. Is it possible to do this?

    See you soon,.
    Andrew.

    Hi André,.

    Caught this idea,

    Please create a plus column within the report using as "alaisecolumnname" then

    column with editable text for authorization schema [ISADMIN] box
    draw sheet column with displayonlytext for authorization shcema [NOTISadmin]

    I hope that it will match your expected results, I tested it in my workspace works very well for me

    Thank you
    Select this option.

  • How to make any attribute to select one option to read only based on different att

    I have two select a choice .one attribute is to create without binding and another is based on the control of data .i don't want to write code in backing bean to make read-only attribute.

    Example:
    < af:form id = "f1" >
    < af:selectOneChoice label = "Label 1" id = "soc1.
    autoSubmit = "true" >
    < af:selectItem label = 'Y' value = 'Y' id = "si3" / >
    < af:selectItem label = "N" value = "N" id = "si1" / >
    < / af:selectOneChoice >
    < af:selectOneChoice value = "#{bindings." ViewObj.inputValue}.
    label = "#{bindings." ViewObj.label}.
    required = "#{bindings." ViewObj.hints.mandatory}.
    shortDesc = "#{bindings." ViewObj.hints.tooltip}.
    ID = "soc2" partialTriggers = "soc1" >
    < f: selectItems value = "#{bindings." ViewObj.items}"id ="si2"/ >
    < / af:selectOneChoice >
    < / af:form >

    on the basis of the choice of a second selection select choice should be disable.



    I know I need to link select all first choice of backing bean also make self submit true and add partialTriggers in second select only one option.


    Please give me advice


    Thank you

    Prateek

    is there a any error

    Yes, Af.l1 in your case is the component itself not the value returned by the list.

    Change it like this:

    
         
         
              
              
         
         
              
              
         
    
    
    package a;
    public class A {
         private String l1;
    
         public A() {
         }
    
         public void setL1(String l1) {
              this.l1 = l1;
         }
    
         public String getL1() {
              return l1;
         }
    }
    

    Jean Lou

  • Select read-only list / or show only

    Hello
    I have list items of selection based on lookup tables. When the form in edit mode, I want to prevent the user from changing the value of the select list items. How can I accomplish this?
    * If I change the type of the element to display only, then it will display the value returned from the selection list.

    Kind regards
    Water

    Good morning, water,

    Amend section-> read-only-> read-only Condition

    Here, you can set the condition to display the item read-only. It works for select list point in the well.

    Kind regards
    Hari

  • How to fill a field read-only based on selections from 2 DDlists?

    Follow-up question:

    http://forums.Adobe.com/message/2417876#2417876

    I have 2 drop-down lists.  'Department' and 'unit '.

    The selection in DDlist 'Department' creates a single list in DDlist 'unit '.

    I select the appropriate of these two DDlists elements.

    When I do this, I want the text read-only 'NameOnIDBadge' field is filled with a predefined entry.

    Example:

    In DDlist "Department", select the item «Finance & Administration»

    In DDlist 'Unit', select the 'Food Service' item in the list that appears

    THEN:

    In the text field read-only 'NameOnIDBadge' of the following built-in read-only text appears: "contract food serv.»

    (Thanks to Paul, I already know how to do selection in DDlist 'Department' affect the selection list in DDlist 'Unit')

    "but I don't know how to make the choice of these two DDlists to create a new entry in a text field).

    I have attached a mock-up of the file that I work with...

    If ((firstDDList.rawValue="Whatever") & (secondDDList.rawValue = 'Whatever'))

    yourTextBox.rawValue = "the text on the right"

    This code would go under the second output of DDList event, replace the code I put in there to add the control to the first DDList

  • How can I make an external USB drive read-only?

    I'm trying to find a solution to take a USB HD in a spacing classified environment / air.  If I can make the drive read-only (like I gave him that I need to copy on these machines), then the Agency will probably approve the device.  I can't use DVDs that data are 30 + GB in size.

    Hey there, capsfanva!

    Welcome to the communities of Apple Support! It seems you need to set permissions on an external USB drive or hard drive. These permissions setting is a great way to improve the security and privacy of these elements. You've come to the right place and you will find the answer below. You must connect the device to your computer and follow these steps:

    Set permissions for the items on your Mac OS X El Capitan:

    See you soon!

  • All records have selected read-only option, and I am unable to remove it.

    I have recently reinstalled Windows 7, without touching the drive was in my data. All data is intact, but for all delete them and move the action, it seems to be asking permission from the Admin. In addition, another major problem, that I have been facing is that all records are in read-only mode, and no matter how many times I change, they simply revert to the original read-only mode. I have attached a few screenshots showing the process. Is it possible to fix this? I also copied the content into new folders I created recently, but they still have the same read only selected option. (http://imgur.com/a/r3VOB#0)

    The read-only check box is always blue filled.

    The explanation lies in http://support.microsoft.com/kb/326549

  • jQuery ' setting everything in read ONLY based on a page element "not working

    I'm trying to use jQuery to set fields of seizure any "read-only" If the question is 'locked' status (i.e., if the P2_QUESTION_LOCKED page is set to Yes ('Y')). Here is the code that I placed in page attributes (in the javascript section):
    if ($x('P2_QUESTION_LOCKED') )
       {
       if ($x('P2_QUESTION_LOCKED') == 'Y') 
          {
           $(document).ready(
           function() {    $('input').attr('readonly','readonly'); });
          }
       }
    It does not work. All the fields are available for input. I used Firefox 1.6 and Firebug, and I have no errors. What Miss me?

    An example is implemented at the APEX. ORACLE.COM:
    Workspace: RGWORK
    Application: Disclosure of financial information (Application 45806)
    Username: TESTER
    Password: test123
    Run the application and click on "Update of the current year" in the list.

    Robert
    http://apexjscss.blogspot.com


    Robert

    Hello

    And you know that this readonly attribute is only for text and password elements?
    http://www.w3schools.com/tags/att_input_readonly.asp

    Kind regards
    Jari

    Published by: jarola December 14, 2010 17:28

    I made the change to javascript

     $('input[type="text"]').attr('readonly','readonly');
     $('input:not([type="text"])').attr('disabled',true);
    

    Published by: jarola December 14, 2010 17:38

    And of course, you do not disable if hidden items

     $('input:not([type="text"],[type="hidden"])').attr('disabled',true);
    
  • How to make MessageTextInput as a field read-only.

    Hello

    I want to MessageTextInput as a read only field.

    OAMessageTextInputBean textBoxName = (OAMessageTextInputBean) webBean.findChildRecursive ("MytextField");
    textBoxName.setReadOnly (true);

    When I use the above code it won't page field.

    Same thing is happening as he tried to use readonly = True property at design time.

    could anyone help on this?

    Thanks in advance
    Yohanna Pachanekar

    Hello

    When you make a text input read only it will be hidden, so you can set as disabled using setdisabled (true).

    Thank you
    Gaurav Sharma

  • How to do a table read only based on a button click event

    I have two tables: table of an insert and a single table reading and calculate the button between the two.
    When the user has entered the values of the first array and push the button calculate, the second table is supposed to show the result.
    I want to calculate the first table to read only when the user clicks the button.

    JDev 11.1.1.5.0
    ADF BC

    You will need to write an EL to the readOnly attributes property in the table representing a Boolean parameter and put a PPR on the table during the click on the button calculate

    readOnly=#{pageFlowScope.isCalculateButtonClicked}
    
  • Within the last week, that all the folders and files on my hard drive were selected 'read only '.

    I unflagged all the folders and files that I share on my home network, however, I am not able to rename them or save them on my PC from my laptop on my wireless network. This has happened since May 12 and I suspect an auto update changed or recover from something.

    Running Vista Home Premium SP2 on PC

    Laptop is Windows 7

    Thanks for getting back to me Mick!

    I did a restore to 5/10 when I had no problem, but the problem persisted.

    I'll have to try Norton support. This may be something they did.

    In the meantime, I managed to change the names of files by connecting to the PC with the account of my wife who as co-owner had equal rights and the sign of the laptop is its ID as well so it worked, but it isn't always fair.

    Once again, thank you...

  • Requiring to make a region read-only

    Hello


    I have an area on my main page. I need to make this region as read only based on certain conditions.

    Please let me know how?


    Thank you
    Bharat

    Bharat,

    Yes, you must attach the same FATE with any article under paragraph MessageComponent.

    because u dnt has Read-only for any region. Its level of the item.

    Kind regards
    GYAN

Maybe you are looking for

  • Mac Pro early 2008 OS 10.6.8 at 10.11 on a new SSD upgrade

    Hi all! I want to spend my Mac Pro hard drive to an SSD with a new installation of El Capitan, but I also want to continue to use Adobe CS3 (I can't afford a new version... > _ <).  I read that some people have a lot of problems after upgrading their

  • How display you continuous data in real-time without sacrificing the functionality of control of users?

    Hello I created a vi (see table) that displays a signal when the user selects the start/stop button. The user can interrupt the signal by selecting the same button. "Gathering" and "stop collect" buttons each screen a message when selected, and the b

  • KB951847 failed with 80010108

    Trying to solve these problems with the Windows Update program hanging, I tried to do the update KB951847.  In my history of update, it says that the update failed.  The error code is 80010108.  It is possible that the operation has failed because I

  • Deployment problem

    When I build my project, the jad file seems to have an entry for a folder of additional catches of cod. When I unzip the cod file Cap product, it contains two files: blah.cod and bla - 1.cod. The jad file is a reference to these two and a third one,

  • 5.4 OpenManage cannot initialize new disks PowerEdge 840

    I'm bored of Array Manager. I think Openmanage is a poor substitute. I have a new Dell PowerEdge 840 Server with two disks SAS and SAS 5i/R controller of berries in a mirror Raid-1 (made in hardware) I have installed OpenManage 5.4 WITH the storage o