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}

Tags: Java

Similar Questions

  • 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 to avoid refresh table on commandLink/pop-up window button click

    Hello

    I use JDeveloper 11.1.1.6 with webcenter extension.

    I have table of records. When I opened the window with view detailed and I click commandLink or button inside the pop-up window, I can see update on table in the background (behind the window).

    I remove all the code and there is not any partialTriggers.

    Is this normal? How to avoid this behavior?

    Thanks in advance

    You can try by setting partialsubmit = true for the link within the popup?

    Is the popup and the underlying table even VO-based table?

    Thank you

    Alisson

  • 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
    -------------------------------------------------------------------

  • 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

  • Advanced table read-only elements

    Hi all

    How elements Message choice and Message check box in Advanced Table read-only via code?

    OATableBean oatablebean = (OATableBean) oawebbean.findIndexedChildRecursive ("ItemsTable");
    oatablebean.findIndexedChildRecursive("Type").setDisabled (true);

    cause compilation error.

    setRendered works. How to define the need, read only properties through code?

    Thank you
    Kumar

    Hello

    Try like this

                        OATableBean oatablebean = (OATableBean)tab.findIndexedChildRecursive("ItemsTable");
    
                        OAMessageChoiceBean messageChoiceBean=(OAMessageChoiceBean)oatablebean.findChildRecursive("Type");
                        messageChoiceBean.setReadOnly(true);
    

    Ajay

  • 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

  • Advanced table read only fields

    Hello

    I have a table advanced based on VO.

    I want to do some column read-only fields.

    I did like that.

    OAApplicationModule am = oapagecontext.getRootApplicationModule ();

    OAViewObject vo = (OAViewObject) am.findViewObject ("SearchHeaderVO1");

    Line SearchHeaderVORowImpl = null;

    int fetchedRowCount = vo.getFetchedRowCount ();

    Rank [] rows = vo.getAllRowsInRange ();

    for (int i = 0; i < fetchedRowCount; i ++) {}

    If (rows [i]! = null) {}

    System.out.println ("In makeReadOnly");

    Rows [i] .setAttribute ("EntityCode", Boolean.true);

    }

    }

    What is the right way to go?
    Thanks again
    Varun

    Varun,

    1. create an additional attribute in your VO of Boolean type. ex:-name: customReadOnlyAttr

    2. set this attribute value as the property readonly for each field in the page. as a ${oa. SearchHeaderVO1.customReadOnlyAttr}

    Now in your code, set the value of this attribute programmatically, based on any desired conditions.

    What is the State you want to make these fields readonly?

    See you soon

    AJ

  • How to activate a field read-only for data entry.

    Dear all,

    In fact, I'm bring a form simply queries the table of database data and shows it. It presents the data in readonly textfields.

    There is a button that can create a new line. The problem is when the system is to create the line he is creating the messagefield readoly.

    In order to overcome the situation that I wrote the code below

    mainVO.last () .setAttribute ("IsTextReadable", Boolean.TRUE); To make the last row entrable for the user.

    But the system gives the error when the user is pressing the button create

    Details of the exception.

    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: Houston-25058:

    IsTextReadable of the type definition of that attribute is not found in XxphccamsfdbmstdtlrVO1

    Could you please suggest me how to make the textfield readonly can be changed dynamically.

    Concerning

    Rajat

    Dear Stephanie,

    Thanks for your reply. I solved the problem and it was pretty simple.

    I created a transient in the VO and attached attribute the transitional attribute to the property read-only from the field using SPEL (${oa.) XxamsfdbdtlrVO1.Viewenb}).

    Select the line that you want to update and run it.

    row.setAttribute ("Viewenb", Boolean.TRUE);

    Concerning

    Rajat

  • Can I change some partitions of the partitioned table read-only?

    I have a table partitioned by range (partitioned hourly).

    I want to keep history in line of the query data (historical data are rarely accessd). But in this way, the table is too large. The performance can be a big problem. Thus, certain problems may arise:
    How can I change the years partition read-only?
    How to decrease the workload on this table and improve performance?

    Oracle 10g (10.2.0.3) + Solaris 10

    How can I change the years partition read-only?

    10.2.x.x I think only tablespaces can be made read-only.

    In 11g you can place tables in read-only mode, but I don't know for specific partitions.

  • How can I change from read-only smart media card?

    Card must be reformatted but says that it cannot format because it is read-only.

    The instructions say that I cannot change the read-only but doesn't mean me how.

    Any help in this matter will be greatly appreciated.

    Skip a Pat

    Hello

    1. which card Media do you use?

    2. you receive an error during formatting?

    3. What is the brand of the Media card?

    4. were there any changes made to your computer before this problem?

    I suggest you try the methods mentioned below and check if it helps:

    Management of disk access by

    By clicking Start (orb)> Control Panel> Administrative Tools> computer management>disk management. Disk management should list drives/cards connected to the system and also to show what type of file system they are and whether they are healthy or not. I would just reformat the card, do not change the type (example: FAT, FAT32, or NTFS) file format for doing so, your camera or device may not recognize.

    Hope this information is useful.

  • How to create a table of adf based on javascript

    How can we create a table based on a javascript script. ??

    I think you do not understand the text correctly - that he says basically is that your ADF table can use JavaScript to send and receive messages to the OSB.

    If you want your table to be based on data from the OSB through Javascript - you will need to write a bean to support dealing with javascript and created a collection of Java, which is the basis of the data given in the table of the ADF.

  • How to receive: the screen read-only recipes

    I did ' Reception > recipes ' train 'Read only' for certain responsibilities using forms of customization, available in Oracle Forms.
    I removed the access of Delete/Update/Insert on BLOCK = RCV_TRANSACTION as header for these responsibilities.

    However, now when I go to this feature of these specific responsibilities, after executing a default search of the 'find should Receipts", I get the repeated warnings.

    I get "FRM-41050: you can't update this record ' warnings as each column in every row of result is filled in the background in the form of 'Recipes' ('RCV_RCVRCERC')

    Any suggestions would be really useful, because I am really struggling with this quite some time.

    Kind regards
    Prateek

    Hi David,
    Please check the below notes of MOS

    How to make the column of receipt by receipt Header split form view only? [1315940.1 ID]
    * Show only expected revenue form displays error for each line: FRM-41050 [ID 308265.1] *.

    Thank you
    -Arif.

  • How to edit a file read-only?

    PDF files that I used to be able to change to are now read only all of a sudden.  In the top bar, it is said "you opened the file conforms to the PDF/A standard and was opened in read-only to prevent the change.» How to change that so I can make changes? Under security properties, it says signing and filling out forms is permitted. I have Adobe Reader X.

    In the Adobe Reader preferences, turn off PDF/A mode.

Maybe you are looking for