AF:table restore copy the current line in all other lines

I used Jdeveloper to creeate a table to a data control. Then I added a Cancel button. When I choose the restoration, entity objects are cancelled, but the content of the current line is copied to all other lines. Why is this happening?

Check [url http://adfbugs.blogspot.com/2011/05/jdeveloper-11115-serius-bug.html] Jdeveloper 11.1.1.5 severe bug (fixed in 11.1.2)

Tags: Java

Similar Questions

  • making line for the current line on the expansion table

    Hello

    I use JDeveloper 11.1.1.5.0

    I have a table with facet detailstamp enabled. Each line is to have an arrow icon to expand this line.

    My problem is that line expand action seem to work independently with the selection of rows in the table. When I develop a line, it does not only rank as current. I tried with the code below to make the line of the current table, but could not do.
        public void makeCurrentRow(RowDisclosureEvent rowDisclosureEvent) {
            usersTable = (RichTable)(rowDisclosureEvent.getSource());        //usersTable is the binding of the table on the page
            RowKeySet discloseRowKeySet = usersTable.getDisclosedRowKeys();
            usersTable.setSelectedRowKeys(discloseRowKeySet);
    
            AdfFacesContext.getCurrentInstance().addPartialTarget(usersTable);
        }
    Please let me how can know I do the table row under the current name on the expansion of this line.

    Kind regards
    Fox

    I implemented a sample here http://tompeez.wordpress.com/2013/04/12/make-disclosed-row-the-current-row-when-using-a-detail-facet-of-a-table/

    Timo

  • Get the current line in an iterator

    Hello

    Using jdeveloper 11.1.2.4.0.

    I used af:iterator to browse the lines in my af:form. Here's the source of my jspx page.

    < af:iterator id = "i1" value = "#{bindings." Var MdBhItpProblemView1.collectionModel}"="row ".

    varStatus = 'vs' >

    < af:panelLabelAndMessage label = "Problem statement" id = "plam1" >

    < af:inputText id = "it15" value = "#{rank." ProblemStatement} "/ >"

    < / af:panelLabelAndMessage >

    < af:panelLabelAndMessage label = "Goal" id = "plam2" >

    < af:inputText id = "tirer16" value = "#{rank." Goal} "/ >"

    < / af:panelLabelAndMessage >

    < af:panelLabelAndMessage label = 'Indicators' id = 'plam3' >

    < af:inputText id = "sortent17" value = "#{rank." OutcomeMeasure} "/ >"

    < / af:panelLabelAndMessage >

    < af:panelLabelAndMessage label = 'Objective' id = 'plam4' >

    < af:inputText id = "it18" value = "#{rank." Goal} "/ >"

    < / af:panelLabelAndMessage >

    < af:panelLabelAndMessage label = 'Intervention' id = 'plam5' >

    < af:inputText id = "it19" value = "#{rank." Intervention} "/ >"

    < / af:panelLabelAndMessage >

    < af:panelGroupLayout layout = "horizontal" id = "pgl1" >

    < af:panelLabelAndMessage label = "Date deadline" id = "plam6" >

    < af:inputDate value = "#{rank." Date_cible}"id ="id_1"/ >

    < / af:panelLabelAndMessage >

    < af:panelLabelAndMessage label = 'Date of the resolution' id = 'plam7' >

    < af:inputDate value = "#{rank." ResolutionDate}"id ="id_5"/ >

    < / af:panelLabelAndMessage >

    < af:commandButton actionListener = "#{bindings." Delete.Execute text}"="remove. "

    Disabled = "#{!}" bindings. Delete.Enabled}"id ="cb2"/ >

    < / af:panelGroupLayout >

    < / af:iterator >

    I added 2 buttons create insert and delete. So am clicking the button always delete the first row is deleted. I need to remove exactly same line of an iterator.

    If you use an iterator, you will need to provide the current line yourself. If you use an af:table the table handles it for you.

    You can use an af:setPropertyListener on the buttons push the PK line to a variable binding, or a bean as

    in this case, row.id is the pharmacokinetics of the current line and bean.currentRowId the bean property save you the row id when the button is clicked.

    In the removal and the method use then the currentRowId to search for the line and delete it.

    Timo

  • Delete in af:table always remove the first line when using ExecuteWithParams

    Hello world

    I got a page with master form and af:table two details related to the master. When I'm trying to remove a line in an af:table of detail, it always removes the first line, any line, I selected before. The table has a single = rowSelection and the line is properly visually selected. I remove the line using a "delete hyperlink" on each line, but I first have to select the line. Delete called a bond (or a method at the bean by removing the current line of the iterator, I tried both, none of them work)

    Links page has an ExecuteWithParams defining the correct ID to edit on the master of iterator and an InvokeExecuteWithParams the renderModel value. If I put the refresh condition zero and I hard-code an ID in the binding variable in the model, I am able to delete the selected line.

    In addition, I don't know if this information is useful, but if I set the iterator to PPR ChangeEventPolicy, when I select a line, there always select the first line.

    Any ideas what I could do wrong? Is this a bug?

    I use JDev 11.1.1.7

    Thank you

    Guillaume

    You can try creating a method in ApplicationModule for filter master records instead of executeWithParams?

    Ashish

  • Highlight the current line


    Apex 4.2

    Theme 21

    I am able to highlight current form fields using get focus and lose focus of dynamic actions.

    How to highlight the current line in the form of an updated report.

    I tried to use DA with

    Picker JQuery tr [headers = 'TAX'] (column in my report)

    Run Javascript

    $x_RowHighlight (this.triggeringElement, 'yellow');

    Any help appreciated

    Gus

    Gusford Hello!

    Try to update your JQuery selector to what follows, with a trigger event in the DA 'click ':

    table. Report-standard tr

    JR.

  • How selectBooleanCheckbox can set the current line?

    Hello

    Using ADF Faces 10 g, I have an af:table component that is read-only, but the last column contains an af:selectBooleanCheckbox. This checkbox is used to 'activate' and 'disable' to each line. When I click on the box, I need the valueChangeListener be aware which line has been activated (so that I can then make some changes on this line to toggle). By clicking on the box to check must call setCurrentRow, or at least pass on values I can use later to set the current line manually.

    My first thought was setActionListener, but it seems that it may not be combined with af:selectBooleanCheckbox. I searched and found the following post:
    HOW to set an ID for the component from variable
    and after reading this I tried setPropertyListener, once again, I found that this is not a valid child of af: selectBooleanCheckbox. The post dry with nuansantio mentioning several times that setActionListener and setPropertyListener cannot be used, but there is no other comments on a solution.

    Any thoughts on how I can get this to work?

    Hello

    Could you elaborate more about

    I need to make a number of manual steps (invoking request Module) when the user selects / disables the check box

    You can pretty much add a method in your Impl VO (who did all the steps you want to do) and call the method in an expression for the value of groovy / call it in valueChangedListener of the box?

    Arun-

  • How to mark the current line in the grid forms

    How to mark the current line in the grid of forms in forms

    There is no grid in use in forms
    However, you were using the ORACLE spreadsheet in the OCX element before 10g in forms5.
    You can use the property of coloring of the ORACLE worksheet if you use older forms.

    If you speak the text displayed in the instances multile means with more display records. then you can use the Visual Attirbute
    and may affect the block attribute in current folder to the Visual attribute you make now.

  • Background color of the current line in the interactive report

    Hello
    Sobebody could tell me if there is anyway simple changing of style in IR to set up the background color of the current line. In the Standard report, it is easy. Just click for the shared components > models > modify a report model
    and in the section line pointing out it is an attribute to change a color.

    Can someone tell me how to do in interactive report?

    I want to just split one row of the other using a line color.

    Thanks :)

    Published by: rafix 2009-11-23 09:42

    Cool. Where is my correct score then: P

    Mike

  • Can I save Firefox by copying the Mozilla folder and all its contents?

    I'm currently back up Thunderbird by copying its folder in appdata/roaming. I can do the same thing to back up Firefox by copying the Mozilla folder and all its subfolders?

    Yes.

    See also:

  • I have created a complete either form, with fields to interrogate.  When a test the form and enter the date in a field - it automatically inserts the SAME date in all other areas. How do fix you this?

    I created a form to fill in professional, with several fields.  When I try the form and enter data in a field - it fills the SAME data in all other fields.

    Give a unique name to each field.

  • script to insert the new master on all other pages

    I have an indesign document with 131 pages (front of postcards). I should add the back of the postcard (master) for all other pages. I don't want to do it manually because of the time and that I will need to do this again. Someone at - it a script that will allow insertion of still blank pages on pages of numbered and then I can apply the master page to all pages?  Something will help you. Thank you!!

    Just found out that the script on this forum http://forums.adobe.com/message/3223771#3223771#3223771 does it perfectly.

  • Jdev 11 g, adf table to obtain the current data line

    Hello

    I'm sure it's an easy thing, but I was look a little for example clear and not can't find a.

    I did slip and fall a table ADF of my data on my jspx page control. I just need to know what I need to change in the table (that is to say, I think I need to add an id?), then what I have in my bean managed to get the values of the current row of data.

    Thank you

    Including a version modified the table on page
    <af:table value="#{bindings.AsItmRtlStr.collectionModel}"
                            var="row" rows="#{bindings.AsItmRtlStr.rangeSize}"
                            emptyText="#{bindings.AsItmRtlStr.viewable ? 'No rows found.' : 'Access Denied.'}"
                            fetchSize="#{bindings.AsItmRtlStr.rangeSize}"
                            inlineStyle="height:70px; width:600px;" id="current">
                    <af:column sortProperty="idItm" sortable="false"
                               headerText="Item">
                      <af:outputText value="#{row.idItm}"/>
                    </af:column>
                    <af:column sortProperty="idStrRt" sortable="false"
                               headerText="Store">
                      <af:outputText value="#{row.idStrRt}"/>
                    </af:column>
                    <af:column sortProperty="rpSlsCrt" sortable="false"
                               headerText="Retail Price">
                      <af:outputText value="#{row.rpSlsCrt}"/>
                    </af:column>
                  </af:table> 

    in my example, the values are not directly retrieved from component of af: table but the underlying model!

    for example, instead of DCControlBinding cb = (DCControlBinding) this.bindings.get("*futurePriceTable*"); should be
    DCControlBinding cb = (DCControlBinding) this.bindings.get("*RkPriceChange*"); or in your case should also be DCControlBinding cb = (DCControlBinding) getBindings ().get("*RkPriceChange*");

    and

    instead of the id of the string = (String) currentRow.getAttribute("#{row.priceChangeId}"); You should have the id of the string = (String) currentRow.getAttribute ("" ** "");

    Kind regards

    Branislav

  • Commit loses the current line

    I use Jdeveloper 11.1.2.2.0
    Have a FacilityBigQuery (which queries a view of facilities table and other tables), the results are displayed in a table. Each line contains a column "FacilityId" I setCurrentRowWithKeyValue to bind with the view of the installation using FacilityId.

    The link seems to work, aka, select installation 12 on-screen query will take me to the 12 edition installation page.
    However, when I click on the button to validate (#{bindings.Commit.execute}) to save the changes, it will reload the Edit with another institution (facilityId = 123) page every time, regardless of how easy I chose actually. The changes made in the database.

    I want to reload the page with the current installation. What I am doing wrong?

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/OCT2010-OTN-harvest-183714.PDF page 8 (it's for restoration, but use the same technique)

  • How to manage the current line with radio button selection?

    Hello world

    I have an ADF page with a table and a search"" button.
    I created a new attribute with VARCHAR2 (1) in the VO and dragged this attribute as the first column of the table. And changed this first column of the option button to select only a single line at a time.
    By clicking on the "Search" button, I need to get the current selected row values.

    How can I get the values of selected line?
    What code should I write to get the values of the selected line in the method of binding the button 'search '?

    All suggestions will be really useful.

    Thank you.

    Hello Kumar,
    I have a few comments on your case.
    >
    I created a new attribute with VARCHAR2 (1) in the t
    >
    1. you should create this attribute in the object of the entity, and then add it to the view object.
    2-do you need this radio that a button is defined for all lines? If yes then you need handle the case where the user set several lines and clear the value of the attribute for all other lines.

    >
    How can I get all the values of the current row in backing bean, binding of the Find method (method)?
    can u please give me the code for this?
    >
    If you mean by the current row is the row for which the value of the selected attribute is defined (the radio button is set to the rank), then you can write a method in the viewObjectImpl class and expose it to the customer interface and call it from your bean.
    Here is a sample Department table in the HR schema.

    //This method is written in DepartmentsViewImpl
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());
                     }
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;
            }
    
  • How to check the existence of a value in a table before copying the data?

    Experts,

    I have a requirement in which I need to copy data (4 columns) table A to table B (4 columns)

    Table A (entry)

    PART_ID PART_NAME PART_OPT_CD ENGG_OPT_CD

    1 "AAA" 10 100
    2 'BBB' 20 200
    3 'CCC' 30 300
    4 'DDD' 40 400
    5 'EEE' 50 500


    I have a table named OPTIONS with a single column. This is a table of reference of business which has the master list of option codes.

    OPT_CD
    10
    20
    30
    50
    60
    100
    200
    400
    500


    I need to copy Table A to Table B, but in doing so, I need to check the values of columns 3 and 4 in the OPTIONS array.
    If there is copy the folder B. Otherwise error in the log in a file/table and continue with the next copy

    TABLE B (exit)

    PART_ID PART_NAME PART_OPT_CD ENGG_OPT_CD

    1 "AAA" 10 100
    2 'BBB' 20 200
    5 'EEE' 50 500

    WARNING file or a table should have the details below.

    300 ENGG_OPT_CD does not exist in the table OPTIONS, so part_id 3 have not migrated
    40 PART_OPT_CD does not exist in the table OPTIONS, then part_id 4 have not migrated

    Company don't bother about the format of error, we need this information to correct the OPT_CD in the OPTIONS table.

    Can anyone suggest a better way to do this. Thank you for your help in advance

    Hello

    Its very similar to your previous post.
    Re: PL/SQL help
    The only difference being that you have to outer join to your superimposed master table, since your search in two columns values occur only in a single column on your Master table.

    Something like that;

    create table a (part_id number, part_name varchar2(10),part_opt_cd number,engg_opt_cd number);
    
    insert into a
    (select 1 Part_ID, 'AAA' Part_Name, 10 Part_Opt_CD, 100 ENGG_Opt_CD from dual union all
    select 2, 'BBB', 20, 200 from dual union all
    select 3, 'CCC', 30, 300 from dual union all
    select 4, 'DDD', 40, 400 from dual union all
    select 5, 'EEE', 50, 500 from dual union all
    select 6, 'FFF', 60, 500 from dual
    )
    /
    
    create table b (part_id number, part_name varchar2(10),part_opt_cd number,engg_opt_cd number);
    
    insert into b
    (select 1 Part_ID, 'AAA' Part_Name, 10 Part_Opt_CD, 100 ENGG_Opt_CD from dual union all
    select 2, 'BBB', 20, 200 from dual union all
    select 5, 'EEE', 50, 500 from dual
    )
    /
    
    Create table master (OPT_CD number);
    
    insert into master (
    select 10 opt_cd from dual union all
    select 20 from dual union all
    select 30 from dual union all
    select 50 from dual union all
    select 60 from dual union all
    select 100 from dual union all
    select 200 from dual union all
    select 400 from dual union all
    select 500 from dual
    )
    /
    
    create table log_msg
    (msg varchar2(100)
    ,t timestamp default current_timestamp)
    / 
    
    SQL> insert all
      2    when Master1_ID is not null and
      3         Master2_ID is not null then
      4      into b (Part_ID, Part_Name, Part_Opt_CD, ENGG_Opt_CD)
      5      values (Part_ID, Part_Name, Part_Opt_CD, ENGG_Opt_CD)
      6    when Master1_ID is null or
      7         Master2_ID is null then
      8      into log_msg (msg) values (Part_Opt_CD || ' ' || ENGG_Opt_CD || ' does not exist on the Master table')
      9  select m1.Opt_CD      as Master1_ID
     10        ,m2.Opt_CD      as master2_ID
     11        ,a.Part_ID      as Part_ID
     12        ,a.Part_Name    as Part_Name
     13        ,a.Part_Opt_CD  as Part_Opt_CD
     14        ,a.ENGG_Opt_CD  as ENGG_Opt_CD
     15  from (
     16        select a.Part_ID, a.Part_Name, a.Part_Opt_CD, a.ENGG_Opt_CD
     17        from a
     18        left outer join b on  a.Part_ID = b.Part_ID
     19        where b.Part_ID is null
     20      ) a
     21  left outer join master m1 on   a.Part_Opt_CD = m1.Opt_CD
     22  left outer join master m2 on   a.ENGG_Opt_CD = m2.Opt_CD
     23  /
    
    3 rows created.
    
    SQL> select * from log_msg;
    
    MSG                                         T
    ------------------------------------------- -------------------------
    40 400 does not exist on the Master table   05-OCT-11 09.44.17.621000
    30 300 does not exist on the Master table   05-OCT-11 09.44.17.621000
    
    SQL> select * from b;
    
       PART_ID PART_NAME  PART_OPT_CD ENGG_OPT_CD
    ---------- ---------- ----------- -----------
             1 AAA                 10         100
             2 BBB                 20         200
             5 EEE                 50         500
             6 FFF                 60         500
    

    Note, I have included an additional line in table A in order to prove that the INSERTION will occur in table B. Errors, as you can see have been inserted in the table LOG_MSG.

    Published by: bluefrog October 5, 2011 09:48

Maybe you are looking for

  • Qosmio F10 and dual channel

    Hello I have a Qosmio F10 with 512 MB, and I want to upgrade to 1024. I don't know if my qosmio supports Dual Channel. Can I add a sodimm pc2700 512 MB module and two-channel will work or I need exactly the same model of my laptop. TNX!Rood

  • Pavilion dm4: failure of Pavilion dm4 'recovery has failed.

    Laptop gave me the following Message: the recovery attempt failed. Select one of the following buttons. Save the log details Retry. Recorded the log and try again (twice) with the same question: is the log, please help -------------------------------

  • no pre installed games

    games like spider and other

  • PC portable Compaq 610: recovery/reset password BIOS of PC portable Compaq 610

    Hello I bought a Compaq610, and I want to update its bios. I downloaded the update, but it took the bios password and I don't have it. Can I ask you if there is a way to recover/reset or clear the passoword? Thank you very much. Best regards Ryan

  • Recovery not authorized by HP software

    Recovery not authorized by HP software after WD 640 GB 5400 RPM hard drive has failed and replaced with a 500 GB drive at 7200 RPM. While using the computer before the end of the 1 year warranty, crashed my dv6 2114tx. To restart the computer, the co