ADF JSF - Multiple Rows Update

Does anybody if there is a new component in ADF JSF that allows update of multiple rows? Se example...
ID     | Name | Number
1     | textbox | textbox
2     | textbox | textbox
3     | textbox | textbox
|Create- button| | Save - button|

Sure, the ADF Faces <af:table> supports updating multiple rows: just put an <af:inputText> inside one of the columns.

Similar Messages

  • Multiple Rows Update / Refresh Toplink Query when database trigger involved

    Hi everybody!
    I have two easy troubles for you; the platform is the same as the SRDemo Toplink version.
    1.     Multiple Rows Update: I want to update with mergeEntity method, multiple rows for an isolated table; that method receives a parameter that I try to bind with the iterator "dataProvider" but it only merges the first row, not all, any other combination returns an error.
    What I want to do is to have a form (like tabular forms in Apex) that lets me update multiple rows in a single page. ¿May anyone tell me how to do it?
    2.     Refresh Toplink Named Query: I have a list on a page with two columns. From another page, a button does an action that fires a database trigger that updates one of the columns on the list´s page. When I go back to the list, it is not updated; however, the CacheResults´s property is set to false on the iterator.
    Thanks in advance,
    Alejandro T

    I didn't use it (yet), but - you might take a look. You'll find a [url http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-plug-ins-182042.html]Timer plug-in on this page. It is a dynamic action which allows you to periodically fire other dynamic actions in the browser. For example use the timer to refresh a region every five minutes. You can perform any dynamic action you want using this infrastructure.So I was thinking: you might use it to run a dynamic action which would check whether something changed in that table (I suppose you'll know the way) (for example, a database trigger might set a flag in some table, timestamp or similar), and - if you find that something really changed - refresh the page.
    As I said, I never used it so that's pure theory. Someone else might know better, though.

  • Multiple row update of a table from another one

    Im trying to make a multiple row update with date from a different table, but it's giving me an error.
    update inv.mtl_system_items_b
    set attribute1 = t2.description,
        last_update_date = SYSDATE,
        last_updated_by = 3606
    from inv.mtl_system_items_b t2
         inner join TMP.TMP_INACTIVAR_PRODUCTOS t1
         on t2.segment2 = t1.inventory_item_id;Edited by: user8986013 on 21-may-2010 14:15

    Hi,
    Whenever you have a question involving an error message, post the complete error message, including line number. Don't you think that might help people solve your problem?
    Whneve you have any question, post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. (In the case of a DM<L statement, like UPDATE, the INSERT statements show the tables before the change, and the results are the contents of the changed table after it.)
    Review the syntax of the UPDATE statement in the SQL Language manual:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10008.htm#sthref9598
    MERGE may be more efficient and easier to use than UPDATE.

  • Multiple row update; CEV business rule parameters are not refreshed

    During a multiple row update, a business rule is fired for each row.
    This change event business rule must update the value of another column in the same table (and same row).
    Unfortunately, the parameters of the BR are keeping the values of the first row that has been checked. Since my parameter p_id always keeps the same value, I always update the same row.
    Does somebody have a hint on how to solve this problem ?
    I'm using Headstart R6i and Forms6i with Oracle9i DB.
    Thanks in advance for your help,
    Denis.

    I think that's how it works. I tried that with a variable where type is Members.
    It is not showing me a prompt when i select multiple rows. However works only for first row. (even if the menu is initiated from second row).
    Multiple rows selected, variable type is members. works only for first row in selection. (in 11.1.2.2) You can try log an SR and see what Oracle has to say.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Multiple Rows Update

    Hi,
    I am creating a form which will display the multiple rows from the table. Is there any way to make multiple rows update at the same time.
    If it is report generated by the query, can we do multiple rows update.
    Regards,
    Munish

    Munish,
    Sounds like what you’re looking for is a tabular form. Click on create page, then choose form, then tabular form and follow the steps of the wizard. This will create a tabular form for you that lets you update multiple rows, add new rows and delete multiple rows.
    Regards,
    Marc

  • Multiple Row Update in a Table

    Hi,
    How do I do a multiple row update in a single table in Oracle? I was thinking of something that is similar to the insert example below:
    Insert into SOME_TABLE (COL1, COL2) (select COL1, COL2 from ANOTHER_TABLE);
    ...wherein I don't have to write multiple lines of update statement.
    Thanks.

    Hi Mike,
    Thanks for replying. I was actually looking for a multiple row update using a single update statement. The only reason I provided an Insert statement example is to show the idea. I did some test and I was able to figure it out. I thought it was something complicated but I just had to retrieve the new values from another table and equate the primary key and foreign keys of the two tables.

  • JDBC Receiver - Multiple rows Update

    I have an interface the incoming message contain multiple columns and it has to be updated using a JDBC Receiver Adapter with its key values.
    Can we send multiple rows in a single JDBC Update Statement.
    Please advise.

    Sebin,
    No ,it's not possible to have multiple rows in single update statement. Rather you can duplicate the segment at Statement level and do the update.
    Please refer http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    raj.

  • URGENT!!! Can't implement a Multiple Row Update Process

    Hi All,
    I'm a total newbie to APEX and wondered if anyone could help.
    I've created an Application using the "Report and Form" template. My Table, call it tab1, has a pk called pk1 and four fields, f1, f2, f3 and f4. The Application has 3 pages, p1 is the login page, p2 is the Report and p3 the Form. The Report is fine and I've added a search on the Report based on the pk. The Below is an example of the output of a Report filtered on the value pk=3:
    PK F1 F2 F3 F4
    3 21 A C A
    3 21 B B C
    3 21 C A A
    3 21 B D A
    Each of the 4 rows above then links into a Form on P3 for updating, so if I clicked on the link for the first row the Form would like something like this:
    PK 3
    F1 21
    F2 A
    F3 C
    F4 A
    Now here's what I'm trying to achieve. I've created an "Update" button on p3 and when I press this I would simple like the below statement to be executed:
    Update Tab1
    set F4 = :P_4,
    F3 = :P_3
    where F1 = :P_F1
    where :P_1, :P_3 and :P_4 are the values inserted by the user. So basically I want to do a multi-row update based on a non-primary key. In this case I would want 4 rows updated after pressing the Update button.
    Any help would be most appreciated.
    Mits

    have you tried to download and install hp's drivers from this place?
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=3382185&lc=en&cc=us& dlc=

  • Multiple Row Update From Similar Table

    I am attempting to update a table based on similar table if the Entry_Type is D and they have the same log_numbers. I have created queries to show me the results I want but am having some difficulities getting the update to happen. I am getting a single-row subquery returns more than one row error, but I would like to update all necessary rows.
    Here is my sql...
    UPDATE V.MASTER
    SET (MODIFIED_BY, ENTRY_TYPE) = (
         SELECT MODIFIED_BY, ENTRY_TYPE
         FROM J.BACK)
         WHERE LOG_NUMBER IN
         (SELECT LOG_NUMBER FROM V.MASTER
         WHERE ENTRY_TYPE <> 'D' AND LOG_NUMBER = ANY
                   (SELECT LOG_NUMBER FROM J.BACK
                   WHERE ENTRY_TYPE = 'D'))
    I would appreciate any assistance! Thanks!

    You can also use correlated update. This one is from AskTom (http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1197999096334)
    if you have the proper primary keys to assure uniqueness on S and C, this does it (i have the keys
    noted in the creates)
    ops$tkyte@ORA920> create table pgp_person
    2 ( date_of_birth date,
    3 update_by varchar2(10),
    4 update_date date,
    5 load_timestamp date,
    6 person_num int );
    Table created.
    ops$tkyte@ORA920>
    ops$tkyte@ORA920> create table ship_passenger
    2 ( date_of_birth date,
    3 person_num int,
    4 voy_num int,
    5 book_num int,
    6 seq_num int,
    7 primary key (person_num) );
    Table created.
    ops$tkyte@ORA920>
    ops$tkyte@ORA920> create table pgp_cruise_history
    2 ( voy_num int,
    3 book_num int,
    4 seq_num int,
    5 matched_ind int,
    6 primary key(voy_num,book_num,seq_num) );
    Table created.
    ops$tkyte@ORA920>
    ops$tkyte@ORA920> update ( select p.date_of_birth dob1, s.date_of_birth dob2,
    2 p.update_by, p.update_date, p.load_timestamp
    3 from pgp_person p, pgp_cruise_history c, ship_passenger s
    4 where p.person_num = s.person_num
    5 and s.voy_num = c.voy_num
    6 and s.book_num = c.book_num
    7 and s.seq_num = c.seq_num
    8 and c.matched_ind is not null
    9 and s.date_of_birth <> p.date_of_birth )
    10 set dob1 = dob2,
    11 update_by = 'sdm18649',
    12 update_date = trunc(sysdate),
    13 load_timestamp = sysdate;
    0 rows updated.

  • ADF - Merge multiple row

    Hi,
    I would like to know if i can update (merge) multiple line at once.
    typical situation : i have a master(form)-detail(table) page, i can modify one field in the detail table for each row
    i've made a "merge" button which update one row in db ( using mergeStudent(Student) databinding command
    i use the binding data of selected row to do this and it work very well. ( currentRow.dataprovider )
    now what the best ( and easier) solution to update ( merge ) every row of this table
    i've thought that i can create a "mergeStudents(list<Students>" function in my Ejb but i don't know if there s a binding object which send the full list
    Thanks and sorry for my english.

    Select C1,C2, C3,C4,C5 FROM
    (SELECT C1,C2,Max(C3) Over() as C3,C4,C5 FROM yourtable) t
    WHERE C4<>'0'

  • Multiple row selection in ADF Table using addition column with checkbox

    I am using ADF table(Jdeveloper11g) and i want to selecte multiple rows it may be more than one OR all rows.
    For that i added one Column to the table with Header Delete and checkbox
    <af:table....
    <af:column sortProperty="Delete" headerText="Delete" width="100"
    sortable="false">
    <af:selectBooleanCheckbox label="#{row.favoriteId}"
    valueChangeListener="#{Mybean.onCheck}"
    id="checkbox" autoSubmit="true">
    </af:selectBooleanCheckbox>
    </af:column>
    </af:table>
    backing bean:Here i added code to get Value of one column with id favoriteId and use an arrayList(listForDelete) to monitor the state of the checkboxes
    public void onCheck(ValueChangeEvent valueChangeEvent) {
    BindingContainer bindings = getBindings();
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)bindings.get("getUserFavoritesByUserIDIterator");
    if (iterBind != null && iterBind.getCurrentRow() != null) {
    RichSelectBooleanCheckbox ch = (RichSelectBooleanCheckbox)valueChangeEvent.getSource();
    if (!ch.isSelected()) {
    Long issueId = (Long)iterBind.getCurrentRow().getAttribute("favoriteId");
    listForDelete.add(issueId);
    else
    Long issueId = (Long)iterBind.getCurrentRow().getAttribute("favoriteId");
    listForDelete.remove(issueId);
    Problem is that when i select single row checkBox, onCheck() method of backing bean gets called multiple times(equals to the number of rows)
    I think this is beacuse of <af:selectBooleanCheckbox id is same that is "checkbox" but i am not sure.Even i tried to assign some unique id but no any success in assigning Id with value Expression.
    I also find related post
    Re: ADF Table Multiple row selection by Managed Bean
    but that is related to Select All rows or Deselect all rows from table.
    From the simillar post i follow the steps given by Frank.but problem with below step
    ->have an af:clientAttribute assigned to the checkbox with the following EL #{row.key} ,here I added <af:clientAttribute name="#{row.key}"></af:clientAttribute> and i am getting error
    Error(64,37):  Static attribute must be a String literal, its illegal to specify an expression.
    Please let me know if any one had already implemented same test case.
    Thanks for all help
    Jaydeep
    Edited by: JaydeepJ on Aug 7, 2009 4:42 AM

    just to update after the rollback is called in the cancel button i wrote following code which does not change the row focus to the first row
    DCBindingContainer bc =
    (DCBindingContainer)BindingUtils.getBindingContext().getCurrentBindingsEntry();
    DCIteratorBinding profItr =
    bc.findIteratorBinding("ProfileSearchInstIterator");
    Row cRow = profItr.getRowAtRangeIndex(0);
    if(cRow != null){
    System.out.println("Current row is not null so fixed ");
    profItr.setCurrentRowIndexInRange(0);
    RowKeySetImpl rks = new RowKeySetImpl();
    ArrayList keyList = new ArrayList();
    keyList.add(cRow.getKey());
    rks.add(keyList);
    profileTable.setSelectedRowKeys(rks);
    AdfFacesContext.getCurrentInstance().addPartialTarget(profileTable);
    }

  • ADF multiple row selection using checkbox

    One of the basic feature missing in ADF 11g is multiple row selection using checkbox (ADF supports multiple row selection by CTRL+CLICK) and business users doesn't like the idea of CTRL+CLICK especially when the volume of click is more. Our requirement is to show the records as selected, on click of checkbox. We implemented multiple row selection by giving a checkbox and on submission, iterate all the rows and filter only selected rows for further processing. The approach works fine,but it is very slow when the volume of data is more, say 10 thousand rows. For 4 thousand records, iterating everything takes more than 200 secs !
    Had the multiple row selection been the ADF standard way using CTRL+CLICK, and retrieving the selected rows using method theTable.getSelectedRowKeys() works much faster (completes in millisecs for 4 thousand records). Somehow ADF fetches the selected records much faster this way. Our requirement is on click of the checkbox, the ADF should select the records ( the same way it is doing CTRL+CLICK) and all such selected rows should be retrievable using the ADF method theTable.getSelectedRowKeys()
    Is there any way it can be done?
    Regards,
    Antony.

    Hi All,
    We have implemented the select and select all using check-box and it is working fine. Issue here is the performance is too slow
    Assume SelectValue is the VO coulmn for the checkbox to select the values. To filter out the selected rows, we use the following line
    Row[] pidRows = pidView.getFilteredRows("SelectValue", Boolean.TRUE);
    it is very taking more than 2 minutes if the total number of rows are *4 thousands* and only if 2 rows are selected.
    Whereas with the CTRL+CLICK standard approach, ADF has a built in API theTable.getSelectedRowKeys(); to get only the selected rows, and the built in API takes only few milliseconds to get the selected rows. Users are not agreeing to the CTRL+CLICK approach as it is not user friendly. Suggest if there is a way to make the select box to make it work the same way as CTRL+CLICK.
    code snippet to do the standard way :
    RowKeySet sk = theTable.getSelectedRowKeys();
    _logger.info("row count of select "+sk.getSize());;+
    Iterator selection =sk.iterator();
    EmpVORowImpl empRow = null;
    +while (selection.hasNext()) {+
    Object rowKey = selection.next();
    theTable.setRowKey(rowKey);
    rowdata = (JUCtrlHierNodeBinding)theTable.getRowData();
    empRow  = (EmpVORowImpl)rowdata.getRow();
    _logger.info("Emp # "+empRow.getEmpno() +" Emp Name : "+empRow.getEname() +" Is selected ? "+empRow.getisChecked());+
    +}+

  • How to update multiple rows in ADF Tble

    Hi,
    I have created a search form and ADF table. This ADF table is having column of Select Boolean check box along with actual table columns.
    When I click on Search button it should show the result in ADF table. I will be able to select the check box in multiple rows.
    Finally when I click on Submit button status column should be updated against the rows for which Boolean check box is selected.
    Here the thing that I would like to know is how to identify the rows whichever are selected when I click on Submit button.
    Could you please help.
    Regards
    Vinod.

    http://sameh-nassar.blogspot.de/2009/12/use-checkbox-for-selecting-multiple.html shows how to use a checkbox via a transient attribute on the EO. To get the selected row you check the transient attribute of each row.
    Timo

  • Updating multiple rows in a table in ADF

    Hi
    How do we update multiple rows in a table.
    Onclicking a update button the changed rows must be updated.

    Hi Prince,
    currently I am selecting one row from the table and rendering a region at the top of the table and capturing the user entered data with the following code:
    ViewObjectVOImpl vo = getViewObjectVO1();
    Row CurrentRow = vo.getCurrentRow();
    //After this I perform the checks like user entered value is not null or check input as per business logic.
    if(CurrentRow.getAttribute("attributeName") ==null){
    //Add what message you want to display
    //Add other business logic.
    After making all the checks, i commit it.
    getOADBTransaction().commit();
    Now in my new page I am capturing the user input in the table itself like an excel sheet. Suppose there are ten rows in my advanced table on my page, and each row has one editable field. I have one save button at the bottom of the table.
    Now on clicking the save button I have to capture the user input, check whether there is any null value and if all the entered data is correct then only I should commit it.
    Can you please let me know how we can accomplish that.
    Regards
    Hawker

  • Updating Multiple Rows in a DTO

    I am trying the edit multiple rows. I followed the instruction in the below link.
    http://www.oracle.com/technology/products/jdev/tips/mills/JSP_Multi_Row_Edits.html
    But Instead of using view object i used CMP-DTO-SessionBean for my application.
    I am thro till the form update. but i am not able to update the table .. Could somebody suggest me what is should do in addition to this to update my DTO which will udpate my table.
    I am submitting the code below and also the code in the session bean to update one row which is working for me.
    MultiRowEditAction.java
    package view;
    import oracle.adf.controller.struts.actions.DataForwardAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.adf.model.binding.DCUtil;
    import oracle.jbo.uicli.binding.JUCtrlValueBindingRef;
    import org.apache.struts.action.DynaActionForm;
    import model.EjbNmpurenqLocalDTO;
    public class MultiRowEditAction extends DataForwardAction
    //The changes Flag
    private boolean mHasChanges = false;
    EjbNmpurenqLocalDTO nmpurenq = new EjbNmpurenqLocalDTO();
    protected void processUpdateModel(DataActionContext actionContext)
    DynaActionForm updateForm = (DynaActionForm)actionContext.getActionForm();
    UpdateRowBean[] updatedRows = (UpdateRowBean[])updateForm.get("Row");
    java.util.List origRows = (java.util.List)DCUtil.findSpelObject(
    actionContext.getBindingContainer(),
    "showPEbyParty1.rangeSet");
    for (int i=0;i<origRows.size();i++ )
    String theRowKey = updatedRows.getRowKeyStr();
    JUCtrlValueBindingRef oldRow = (JUCtrlValueBindingRef)origRows.get(i);
    if (oldRow.get(JUCtrlValueBindingRef.RANGESET_ROW_KEY_STR).equals(theRowKey))
    this.updateIfRequired(oldRow,"itemrate",updatedRows[i].getitemrate());
    this.updateIfRequired(oldRow,"suprmrks",updatedRows[i].getsuprmrks());
    protected void validateModelUpdates(DataActionContext actionContext)
    if (isDirty())
    actionContext.getBindingContainer().getDataControl().validate();
    setDirty(false);
    private void updateIfRequired(JUCtrlValueBindingRef baseRow, String attr, String newValue)
    Object baseAttrValue = baseRow.get("attr");
    if ((baseAttrValue == null && (newValue == null||newValue.length() == 0))
    ||((baseAttrValue != null && baseAttrValue.equals(newValue))))
    // no need to push the change
    return;
    baseRow.put(attr, newValue);
    setDirty(true);
    private void setDirty(boolean state)
    mHasChanges = state;
    private boolean isDirty()
    return mHasChanges;
    multiRow.jsp
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <html:errors/>
    <html:form action="multiRow.do">
    <table border="1" width="100%">
    <tr>
    <th> </th>
    <th>
    <c:out value="${bindings.showPEbyParty1.labels['partycde']}"/>
    </th>
    <th>
    <c:out value="${bindings.showPEbyParty1.labels['docnumbr']}"/>
    </th>
    <th>
    <c:out value="${bindings.showPEbyParty1.labels['itemrate']}"/>
    </th>
    <th>
    <c:out value="${bindings.showPEbyParty1.labels['apprqnty']}"/>
    </th>
    <th>
    <c:out value="${bindings.showPEbyParty1.labels['suprmrks']}"/>
    </th>
    </tr>
    <c:forEach var="Row" items="${bindings.showPEbyParty1.rangeSet}"><html:hidden property="rowKeyStr" indexed="true" name="Row" />
    <tr>
    <td>
    <c:out value="${Row.currencyString}"/>
    </td>
    <td>
    <c:out value="${Row['partycde']}"/> 
    </td>
    <td>
    <c:out value="${Row['docnumbr']}"/> 
    </td>
    <td>
    <html:text property="itemrate" indexed="true" name="Row"/></td>
    </td>
    <td>
    <c:out value="${Row['apprqnty']}"/> 
    </td>
    <td>
    <html:text property="suprmrks" indexed="true" name="Row"/></td>
    </tr>
    </c:forEach>
    </table>
    <input type="submit" name="event_PreviousSet" value="PreviousSet" <c:out value="${bindings.PreviousSet.enabledString}" />/>
    <input type="submit" name="event_NextSet" value="NextSet" <c:out value="${bindings.NextSet.enabledString}" />/>
    <input type="submit" name="event_First" value="First" <c:out value="${bindings.First.enabledString}" />/>
    <input type="submit" name="event_Previous" value="Previous" <c:out value="${bindings.Previous.enabledString}" />/>
    <input type="submit" name="event_Next" value="Next" <c:out value="${bindings.Next.enabledString}" />/>
    <input type="submit" name="event_Last" value="Last" <c:out value="${bindings.Last.enabledString}" />/>
    <html:submit/>
    </html:form>
    </body>
    </html>
    update one row method in my session bean
    public void respondPE(EjbNmpurenqLocalDTO nmpurenq)
    try
    EjbNmpurenqLocalHome home = this.getEjbNmpurenqLocalHome();
    EjbNmpurenqLocal nmpurenqLocal = home.findByPartyDoc(nmpurenq.getPartycde(),nmpurenq.getDocnumbr());
    nmpurenqLocal.setItemrate(nmpurenq.getItemrate());
    nmpurenqLocal.setApprqnty(nmpurenq.getApprqnty());
    nmpurenqLocal.setSuprmrks(nmpurenq.getSuprmrks());
    catch (FinderException e)
    System.out.println(e.toString());
    throw new javax.ejb.EJBException(e.toString());
    catch (NamingException e)
    System.out.println(e.toString());
    throw new javax.ejb.EJBException(e.toString());
    UpdateRowBeanBeanInfo.java
    package view;
    import java.beans.SimpleBeanInfo;
    import java.beans.BeanDescriptor;
    import java.beans.PropertyDescriptor;
    public class UpdateRowBeanBeanInfo extends SimpleBeanInfo
    public PropertyDescriptor[] getPropertyDescriptors()
    try
    PropertyDescriptor rowKeyStr = new PropertyDescriptor("rowKeyStr",
    UpdateRowBean.class,
    "getRowKeyStr",
    "setRowKeyStr");
    PropertyDescriptor itemrate = new PropertyDescriptor("itemrate",
    UpdateRowBean.class,
    "getitemrate",
    "setitemrate");
    PropertyDescriptor apprqnty = new PropertyDescriptor("apprqnty",
    UpdateRowBean.class,
    "getapprqnty",
    "setapprqnty");
    PropertyDescriptor suprmrks = new PropertyDescriptor("suprmrks",
    UpdateRowBean.class,
    "getsuprmrks",
    "setsuprmrks");
    PropertyDescriptor partycde = new PropertyDescriptor("partycde",
    UpdateRowBean.class,
    "getpartycde",
    "setpartycde");
    PropertyDescriptor docnumbr = new PropertyDescriptor("docnumbr",
    UpdateRowBean.class,
    "getdocnumbr",
    "setdocnumbr");
    PropertyDescriptor[] pds = new PropertyDescriptor[] {rowKeyStr,itemrate,apprqnty,suprmrks,partycde,docnumbr};
    return pds;
    }catch(Exception ex)
    ex.printStackTrace();
    return null;
    UpdateRowBean.java
    package view;
    public class UpdateRowBean
    String rowKeyStr;
    String itemrate;
    String apprqnty;
    String suprmrks;
    String partycde;
    String docnumbr;
    public UpdateRowBean()
    public String getRowKeyStr()
    return rowKeyStr;
    public void setRowKeyStr(String rowKeyStr)
    this.rowKeyStr = rowKeyStr;
    public String getitemrate()
    return itemrate;
    public void setitemrate(String itemrate)
    this.itemrate = itemrate;
    public String getapprqnty()
    return apprqnty;
    public void setapprqnty(String apprqnty)
    this.apprqnty = apprqnty;
    public String getsuprmrks()
    return suprmrks;
    public void setsuprmrks(String suprmrks)
    this.suprmrks = suprmrks;
    public String getpartycde()
    return partycde;
    public void setpartycde(String partycde)
    this.partycde = partycde;
    public String getdocnumbr()
    return docnumbr;
    public void setdocnumbr(String docnumbr)
    this.docnumbr = docnumbr;
    Any suggestion please

    update pavan set n2=decode(n1,2,2,3,3) where n1 in (2,3);
    Message was edited by:
    Laurent Schneider
    a careful reader would suggest set n2=n1 ;-)

Maybe you are looking for

  • Adding alternate component in the same BOM for 2 level BOM setup

    Hello, I have a BOM with the following setups -      BOM_A components are BOM_B, Comp_A1, Comp_A2      BOM_B components are Comp_B1, Comp_B2 The need is to have an a BOM with components Comp_B1, Comp_B2, Comp_C1. if I create this as an Alt of BOM_B,

  • Low res VGA display

    My vga display is showing a crude low resolution that is hardly readable. When Mac starts it is OK for the initial screen, then it switches to a black screen with crude white dots and bright primary colors for the icons. I have tried to change resolu

  • Failed to run task sequence (0x80070490)

    Getting error after selecting the task sequence to install Windows 7 Enterprise (x64) on DELL PC Checked SMSPXE.log on the DP, it has the following in red : socket 'connect' failed; 8007274c  sending with winhttp failed; 80072ee2  Will retry in 6 sec

  • Machine Cost

    Dear all, I have a scenario in product costing like this: For 1 litre Finished Goods, the cost is Rs. 100=(Machine/Labour Cost Rs.20+Raw Material Cost Rs.80) and for 10 litres FG, the cost is Rs.820=(Machine/Labour Cost Rs.20+Raw Material Cost Rs.800

  • When i put an online repair service it says my post code is in wrong format

    when i do the online repair service(ive tried on many other comps) the postal code says incorrect format and it is making me angry