I want to update multiple record in database which is based on condition

hi all,
I am using Jdev 11.1.2.1.0
I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based on level wise approval when the lowest person approve the record show on next level but if the second
level person back it will be show only previous level hierarchy.And when the final approval happen the Posting_tag column of pay_apply_det will be updated too with hierarchy column.
i have drag pay_apply_det's data control as a table in my .jsf page and add one column approve status in UI .in the approve status i used radio group which return A for approve B for back R for reject through value binding i make it get or set method in it baking bean.
in backing bean class i have written code
    public void approveMethod(ActionEvent actionEvent) {
        ViewObject v9=new UtilClass().getView("PayApplyDetView1Iterator");
        int h5=0;
        Row rw9= v9.getCurrentRow();
        String x=(String) rw9.getAttribute("RemarkNew1");
        System.out.println(x);
        String z=getR2();
        System.out.println(z);
        if(( z.equals("R") || z.equals("B") )&& x==null)
            FacesMessage fm1 = new FacesMessage("Plz Insert Remark Feild");
            fm1.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context1 = FacesContext.getCurrentInstance();
            context1.addMessage(null, fm1);  
        else{
        ADFContext.getCurrent().getSessionScope().put("Radio",getR2().toString());
        String LogValue=(String)ADFContext.getCurrent().getSessionScope().get("logid");
        ViewObject voH=new UtilClass().getView("PayEmpTaskDeptView1Iterator"); 
        voH.setWhereClause("task_cd='449' and subtask_cd='01' and empcd='"+LogValue+"'");
        voH.executeQuery();
        Row row1= voH.first();
        int h1=(Integer)row1.getAttribute("Hierarchy");
          System.out.println("Login Person Hierarchy on save button press.."+h1);
        ViewObject vo9=new UtilClass().getView("PayApplyDetView1Iterator");
        Row row9= vo9.getCurrentRow();
        if(getR2().equals("A")&& h1!=1)
         row9.setAttribute ("ApprHier",h1);
            row9.setAttribute("IsClaimed","N");
            row9.setAttribute("ClaimedBy",null);
            row9.setAttribute("ClaimedOn", null);
        else if(getR2().equals("B") ) {
            ViewObject voO=new UtilClass().getView("LoHierViewObj1Iterator");
            voO.setNamedWhereClauseParam("QHVO", LogValue);
            Row rowO = voO.first();
           h5=(Integer)rowO.getAttribute("LPrehier");
            System.out.println("Back lower hier..."+h5);
            row9.setAttribute ("ApprHier",h5);
            row9.setAttribute("IsClaimed","N");
            row9.setAttribute("ClaimedBy",null);
            row9.setAttribute("ClaimedOn", null);
          else if((h1==1) &&(getR2().equals("A")) )
                  row9.setAttribute ("PostingTag","Y");
                  row9. setAttribute ("ApprHier", h1);
                    row9.setAttribute("IsClaimed","N");
                    row9.setAttribute("ClaimedBy",null);
                    row9.setAttribute("ClaimedOn", null);
          else if(getR2().equals("R"))
            row9.setAttribute ("ApprHier",-1);
            row9.setAttribute("IsClaimed","N");
            row9.setAttribute("ClaimedBy",null);
            row9.setAttribute("ClaimedOn", null);
        BindingContext BC=BindingContext.getCurrent();
        BindingContainer ac=BC.getCurrentBindingsEntry();
        OperationBinding ob=ac.getOperationBinding("Commit");
        ob.execute();
       vo9.executeQuery();
        FacesMessage fm = new FacesMessage("Your Data Successfully Commited..");
        fm.setSeverity(FacesMessage.SEVERITY_INFO);
        FacesContext context = FacesContext.getCurrentInstance();
        context.addMessage(null, fm);
    }here i put my approve status radio value in session variable because i also want to update my pay_apply_appr table which code i written in pay_apply_det IMPL class.
Every thing is running well when i update single record but when i want to update multiple record then my current row only updated in pay_apply_det but log table( pay_apply_appr) created for all record.
so is there any solution plz help me.
thanks
RAFAT

Hi Rafat,
If you are able to insert into, all you need to do is iterate through the rows. For this , before the first IF condition
if(getR2().equals("A")&& h1!=1)Get the row count using int numRows =vo9.getRowCount(); , and then write it before the IF condition
if (int i=0;i<numRows;i++} After
row9.setAttribute("ClaimedOn", null);
        }write vo9.next(); to iterate to next row,
Hope this will work.
Nigel.

Similar Messages

  • Update multiple records from list box

    The idea is to present a list box to allow for the selection
    of multiple records. The records' primary key field having been set
    up as the value parameter in the list box. Then use a single update
    statement to update all selected records with a common value.
    I have tried to do this using code similar to:
    UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN ( @ListOfIntegers ) )
    Where the parameter is configured thus:
    <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]' Type="Int" />
    The idea is that the multiple selection listbox will return a
    comma separated list, which should l work nicely with the WHERE
    [column] IN ( .. ) syntax.
    Unfortunatley if more than one record is selected the
    Complier throws a type conversion error.
    I want to do this using Dreamweaver and C# on .NET.
    Any ideas how to proceed ?

    Are you wanting to update multiple records with the same
    information or
    different information for each record?
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lyleja" <[email protected]> wrote in
    message
    news:f1cpe5$jj1$[email protected]..
    > The idea is to present a list box to allow for the
    selection of multiple
    > records. The records' primary key field having been set
    up as the value
    > parameter in the list box. Then use a single update
    statement to update
    > all
    > selected records with a common value.
    >
    > I have tried to do this using code similar to:
    >
    > UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN (
    > @ListOfIntegers ) )
    >
    > Where the parameter is configured thus:
    > <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]'
    > Type="Int" />
    >
    >
    > The idea is that the multiple selection listbox will
    return a comma
    > separated
    > list, which should l work nicely with the WHERE [column]
    IN ( .. ) syntax.
    >
    > Unfortunatley if more than one record is selected the
    Complier throws a
    > type
    > conversion error.
    >
    > I want to do this using Dreamweaver and C# on .NET.
    >
    >
    > Any ideas how to proceed ?
    >
    >
    >

  • Update Multiple Records by Using Package..

    Hi All,
    I have designed OA page which contains multiple records in a tabular format and few fields are editable. Now I want to update few records by using package. Bcoz page view object is too much complex. So it is impossible to create view object from EO. That’s why I want to update some value by using package.
    Please help me…
    Thanks in advance..
    Thanks
    --Subhas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Use plsql record type for this type of requirement.
    Refer folllowing steps:
    1) Create a plsql record type in the database ,
    2) create a plsql procedure/package and use above record type as parameter in the procedure.
    3) call this procedure from OAF side.
    Thanks,
    Kumar

  • Insert Multiple records using Database adapter with Stored procedure func

    Hi All,
    I want to insert multiple records on a database using a stored procedure. I wanted to insert those records using a Database Adapter and the Database adapter should be invoked by a Mediator.
    Can somebody suggest me with ideas whether it can be acheived with OOB capabtilities in SOA suite or not?
    Thanks for your help in advance.
    Thanks,
    Shiv

    The use case you want to achieve is feature supported by the DBAdapter and it is possible to invoke the same from mediator.
    Please have a look at the oracle documentation and you should be able to get the necessary information.
    The below links should help you as well:
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_db.htm
    http://blogs.oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
    There are some video tutorials as well :)
    http://www.youtube.com/watch?v=dFldS-fDx70 This should also help
    Thanks,
    Patrick

  • Updating multiple records without having to use a cursor

    I am trying to update multiple records in a table.
    Eg
    Table A -20 records
    Table B -10 records.
    Would like to update Table B with the updated records in Table A for those records which the primary key matches
    and I dont want to use cursors. Is this possible??
    Thanx in Advance.

    Please refer to the test below, it should give you the general idea,SQL> desc tableA;
    Name                            Null?    Type
    SEQ                                      NUMBER
    INV                                      VARCHAR2(20)
    AMT                                      NUMBER(12,2)
    AMT2                                     NUMBER(12,2)
    SQL> desc tableB;
    Name                            Null?    Type
    SEQ                                      NUMBER
    INV                                      VARCHAR2(20)
    AMT                                      NUMBER(12,2)
    AMT2                                     NUMBER(12,2)
    SQL> select count(*) from tableA;
      COUNT(*)
             6
    SQL> select count(*) from tableB;
      COUNT(*)
            12
    SQL> UPDATE tableB b
      2  SET b.inv = NVL((SELECT a.inv from tableA a WHERE a.seq = b.seq), b.inv),
      3      b.amt = NVL((SELECT a.amt from tableA a WHERE a.seq = b.seq), b.amt),
      4      b.amt2 = NVL((SELECT a.amt2 from tableA a WHERE a.seq = b.seq), b.amt2)
      5  /
    12 rows updated.
    *** Please note that this is DIFFERENT from what you asked, here tableB is having more rows, which is fine. We **may not be** able update tableA in this example by reversing the table names, because the join may bring more rows than UPDATE statement needs. ***Thx,
    Sri

  • How to update multiple records checked by check box

    I have list of items in my jsp pages and that are being generated by the following code
    and I want to be able to update multiple records that have a checkbox checked:
    I have a method to update the status and employee name that uses hibernate that takes the taskID
    as a paratmeter to update associated status and comments, but my issue is how to do it with multiple records:
    private void updateTaskList(Long taskId, String status, String comments) {
    TaskList taskList = (TaskList) HibernateUtil.getSessionFactory()
                   .getCurrentSession().load(TaskList.class, personId);
    taskList.setStatus(status);
    taskList.setComment(comments);
    HibernateUtil.getSessionFactory().getCurrentSession().update(taskList);
    HibernateUtil.getSessionFactory().getCurrentSession().save(taskList);
    <table border="0" cellpadding="2" cellspacing="2" width="98%" class="border">     
         <tr align="left">
              <th></th>
              <th>Employee Name</th>
              <th>Status</th>
              <th>Comment</th>
         </tr>
         <%
              List result = (List) request.getAttribute("result");
         %>
         <%
         for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
              com.dao.hibernate.TaskList taskList = (com.dao.hibernate.TaskList)itr.next();
         %>     
         <tr>
              <td> <input type="checkbox" name="taskID" value=""> </td>
              <td>
                   <%=taskList.empName()%> </td>           
              <td>          
                   <select value="Status">
                   <option value="<%=taskList.getStatus()%>"><%=taskList.getStatus()%></option>
                        <option value="New">New</option>
                        <option value="Fixed">Fixed</option>
                        <option value="Closed">Closed</option>
                   </select>          
    </td>
              <td>               
                   <input type="text" name="Comments" MAXLENGTH="20" size="20"
                   value="<%=taskList.getComments()%>"></td>
         </tr>
    <%}%>
    _________________________________________________________________

    I solved it by making changes in the occurrence  parameter of data type ...:-)

  • Need to update multiple records using store procedure

    Hi i am trying to update multiple records using store procedure but failed to achieve pls help me with this
    for example my source is
    emp_name sal
    abhi 2000
    arti 1500
    priya 1700
    i want to increase salary of emp whose salary is less than 2000 it means rest two salary should get update..using stored procedure only
    i have tried following code
    create or replace procedure upt_sal(p_sal out emp.sal%type, p_cursor out sys_refcursor)
    is
    begin
    open p_cursor for
    select sal into p_sal from emp;
    if sal<2000 then
    update emp set sal= sal+200;
    end i;f
    end;
    and i have called the procedure using following codes
    set serveroutput on
    declare
    p_sal emp.sal%type;
    v_cursor sys_refcursor;
    begin
    upt_sal(p_sal,v_cursor);
    fetch v_cursor into p_sal;
    dbms_output.put_line(p_sal);
    end;
    the program is executing but i should get o/p like this after updating
    1700
    1900
    but i am getting first row only
    2000
    and record is not upsating...please help me with this
    thanks

    Hi Alberto,
    thanx for your valuable suggestion. but still i have doubt. the code which i have mentioned above might be simple but what if i have big requirement where i need update the data by using loops and conditional statement.
    and i have similar kind of requirement where i need to deal with procedure which returns more than one row
    my source is
    empno ename salary
    111,abhi,300
    112,arti,200
    111,naveen,600
    here i need to write a store procedure which accepts the empno (111) as input para and display ename and salary
    here i have written store procedure like this
    create or replace procedure show_emp_det(p_empno in emp.empno%type, p_ename out emp.ename%type,p_salary out emp.salary%type, p_cursor out sys_refcursor)
    is
    begin
    open p_cursor for
    select ename,salary into p_ename,p_salary from emp where empno=p_empno;
    end;
    and i have called this by using
    declare
    p_salary emp.salary%type;
    p_ename emp.ename%type
    v_cursor sys_refcursor;
    begin
    show_emp_det(111,p_ename,p_salary,v_cursor);
    fetch v_cursor into p_ename,p_salary;
    dbms_output.put_line(p_ename);
    dbms_output.put_line(p_salary);
    end;
    here i should get
    abhi,300
    naveen,600
    but i am getting first row only
    abhi,300
    but i want to fetch both rows...pls help me to find the solution

  • Update multiple records from a list

    Just trying to find some tutorials on how to update multiple
    records from 1
    page of checkboxes
    easiest example is hotmail
    i would like to be able to give my clients the ability to
    delete or update
    multiple records from 1 page... mind you that this type of
    update woudl only
    be for simple status changes, flags that need to be changed
    and so on...
    Delete... well if they made it to this page they are already
    sure and have
    been warned that they are going to delete the records..
    where can i find such a tutorial on how to complete multiple
    record updates
    or deletes from 1 form...
    thanks

    Server model and software below.
    And hotmail has nothing to do with anything.. its an example
    of what i would
    like to be able to do...
    If you log into hotmail. you have the option to check all the
    emails you
    want to delete.
    well thats what i want to do with my clients sites...
    Each record would have its own checkbox, they select the
    records they want
    to delete or update and they hit submit to process there
    request.
    Using ASP, SQL2005 and DW8
    "bregent" <[email protected]> wrote in
    message
    news:f21upb$nop$[email protected]..
    > >Just trying to find some tutorials on how to update
    multiple records from
    > >1
    >>page of checkboxes
    >
    > What server model?
    >
    >>easiest example is hotmail
    >
    > What does hotmail have to do with this.

  • How to update multiple records in Oracle ?

    Hi Guys,
    <b>I have to update multiple records from a file into Oracle Table...</b>
    I can successfully insert the multiple records into the table but can't update the multiple records into the table.
    when i am using UPDATE_INSERT only my first record of the file is getting updated in th e table..
    Please share your views with me.
    Regards,

    I solved it by making changes in the occurrence  parameter of data type ...:-)

  • Update Multiple records using NW CE WebDyn Pro 7.2 interface ITEMDETAILS

    We are trying to use SAP Netweaver CE 7.2 and NetWeaver Design Studio 7.2 with the Web Dynpro application interfaces configured to connect to our MDM 7.1 SP06 repositories to develop web screens that allow our end users the ability to maintain MDM repository data without the use of DataManager.
         Our first application was to be a simple one to show the business the benefit of SAP Netweaver. Itu2019s very easy to use the interfaces for SEARCH, RESULTSET, ITEMDETAILS, MATCH and MERGE if you plan to maintain one record at a time. We would like to update many records at the same time.
    Using the configuration described previously, I find that I am able to select multiple records at one time using the RESULTSET interface and the Context folder of u201CSelectedRecordsu201D but I am not able to pass multiple records at one time to the context u201CIODatau201D used by the ITEMDETAILS interface and allow my end users to see and update multiple records at one time.
    If I can pass multiple records from RESULTSET to ITEMDETAILS for display and update would you please provide me with an example of how I would do this in NetWeaver Design Studio for NW CE 7.2..
    If I can NOT pass multiple records from RESULTSET to ITEMDETAILS for display and update, Would I then have to write my own wrapper application to read multiple records selected using the RESULTSET interface and the develop my own UPDATE view to display and update more than one record at a time. This would be time consuming since I would also have to write my own back out procedures and validation of update procedures that already happen within ITEMDETAILS.  Do you happen to have any CE application examples that show how this is done for a NW CE MDM repository that I can see? The current documentation u201CHow to Build Web Applications Using MDM Web Dynpro Components. pdfu201D falls short in the area of updating multiple records.
    Thank you in Advance

    Bugs aside, if it's VERY noisy, that might just be the out-of-sync problem (something I'm very familiar with now).
    Search the forum for "aggregate sync" and you should get some clues, if this is indeed the problem.
    Short of it is, you need to sync the two devices together. Easiest way seems to be to connect the two devices via S/PDIF and set Clock Source to S/PDIF for the "slave" device (set in Audio Midi).
    You can also just set the Clock Source as the "master" device in the drop down, bypassing the need for the S/PDIF cable altogether, but I haven't tried this myself.
    Macbook Pro CD / iMac C2D   Mac OS X (10.4.8)  

  • Updating multiple records

    Hi,
    Im having issues with updating multiple records.
    This query selects users in a specific unit that are inactive (ui.nf_statusid = 2) and compare it newsmail_recipient table
    select *
                        from roleuser ru, unit u, userinfo ui
                        where u.ip_unitid = ru.nf_unitid
                        and u.ip_unitid = unit_id
                        and ui.ip_userid = ru.nf_userid
                        and ui.nf_statusid = 2
                        and n_internal = 0
                        and ui.ip_userid  in (select user_id
                                                   from newsmail_recipient
                                                  where user_id = ui.ip_userid
                                                    and nf_listid = liste
                                                    and nf_statusid = 1;the second script will set the users to inactive in newsmail_recipient that are inactive in the userinfo table.
    update newsmail_recipient
                 set nf_statusid = 2
                  , d_modified = sysdate
                 where user_id = ui.ip_userid;I would like to know if its possible to merge this query. I know its possible for insert but havent tried update before.
    This is how i do it, but its not working.
    case when (select *
                        from roleuser ru, unit u, userinfo ui
                        where u.ip_unitid = ru.nf_unitid
                        and u.ip_unitid = unit_id
                        and ui.ip_userid = ru.nf_userid
                        and ui.nf_statusid = 2
                        and n_internal = 0
                        and ui.ip_userid  in (select user_id
                                                   from newsmail_recipient
                                                  where user_id = ui.ip_userid
                                                    and nf_listid = liste
                                                    and nf_statusid = 1)
            then update newsmail_recipient
                 set nf_statusid = 2
                  , d_modified = sysdate
                 where user_id = ui.ip_userid;
            end;thanks guys...
    regards,
    j

    Table structure:
    newsmail_recipient:
    IP_RECIPIENTID     NUMBER(8,0)
    NF_LISTID             NUMBER(8,0)
    NF_STATUSID     NUMBER(8,0)
    D_CREATED     DATE
    D_MODIFIED     DATE
    C_NAME             VARCHAR2(100 CHAR)
    C_EMAIL             VARCHAR2(256 CHAR)
    USER_ID             NUMBER(10,0)
    NEWSMAIL_ID     NUMBER(10,0)userinfo:
    IP_USERID             NUMBER(10,0)
    NF_STATUSID     NUMBER(10,0)
    N_INTERNAL     NUMBER(1,0)@jeenesh:
    I tried your query but i get this error:
    Error(510,30): PL/SQL: ORA-00904: "UI"."IP_USERID": invalid identifierJust wondering why, but ui.ip_userid is declared.
    Actually, this is a package script.
    procedure edit_recipient_to_newsmaillist(unit_id IN NUMBER)
            as
            liste number;
            --Finner alle toppfoldere til de lukkede brukergruppene som uniten har tilgang til
            cursor closed_user_group is
              select element_id
               from admin_unit_content_access
              where group_id = 97
                and accesstype_classification_id in( select classification_id
                                                      from dynamic_field_value
                                                      where key = 'closed_user_group'
                                                       and dynamic_field_grouping_id = (select dynamic_field_grouping_id
                                                                                          from unit
                                                                                         where ip_unitid = unit_id))
              and element_type = 'f'; 
          begin
            --Finner hvilken liste folderen tilh�rer
           for u in closed_user_group loop
              if (u.element_id = 39464) then
              liste := 2017; --AMG
              elsif (u.element_id = 36664) then
              liste := 2018; --Das wird meiner
              elsif (u.element_id = 34011) then
              liste := 2019; --Junge sterne   
              elsif (u.element_id = 68359) then
              liste := 2020; --Service vorteilskarte 
              elsif (u.element_id = 1030675) then
              liste := 2021; --TGC
              elsif (u.element_id = 41741) then
              liste := 2022; --Truckworks
              elsif (u.element_id = 118659) then
              liste := 2481; --CRM
              elsif (u.element_id = 122982) then
              liste := 2479; --Vitoecell
              else
              liste := 2037; --Sneak Drive
              end if;
            --oppdater til brukerene i den uniten i listen
               merge into newsmail_recipient nm
                using
                 (select *
                  from roleuser ru, unit u, userinfo ui
                  where u.ip_unitid = ru.nf_unitid
                  and u.ip_unitid = unit_id
                  and ui.ip_userid = ru.nf_userid
                  and ui.nf_statusid = 2
                  and n_internal = 0)
                on (nm.user_id = ui.ip_userid)
                when matched then
                   update set nm.nf_statusid = 2,
                              nm.d_modified = sysdate; 
          liste := 0;
          end loop;
        end edit_recipient_to_newsmaillist;
       

  • Programmatic updating multiple records of a table in ADF

    Hi,
    I am using Jdeveloper : 10g 10.1.3.3
    Problem : I need to update multiple records in DB using ADF feature.
    The senario is like user is shown records of item consisting of item name, item code, category code, price etc. then user clicks "change category code" link availabe against each record. In next page user is shown current code and provided a text box to enter new code. Once i get this in my bean i need to update all records as:
    update item_info set category_code = :new_code where category_code = :current_code. Means to udate category code in all the records where category_code is :current_code.
    I have Entity and View Object for this table.
    How do i update multiple records using created view which is entity based?
    Have A Nice Time!
    Regards,
    Kevin

    In ADF you don't use update statement directly. This is done by the framework.
    You have to search for the records which match your condition category_code = :current_code using your VO based on the entity.
    Then iterate over the result set and change each row to your need setCategoryCode(newCode);
    When you commit the changes they are persist them in the DB.
    To see the changes in the UI you have to update the display using PPR or execute the query again.
    Timo

  • Insert multiple records into database through internal table

    Hi
      please help me how to insert multiple records into database through internal table

    Hi,
    Welcome to SCN.
    Press F1 on INSERT statement and you will teh syntax as well the docu for the same.

  • Edit and update multiple records in JSP buisness components

    Hi everybody,
    I'm building BC4J components using entities and views and JSP buisness components.
    how can I edit and update multiple records
    at a time in the jsp file
    Note using the databean
    "oracle.jbo.html.databeans.EditCurrentRecord"
    one can view one record at a time
    thank you

    do you have a sample code? thanks
    Hi
    There are several options. One of them could be
    1) use <input name=rc[j] value="..."> instead of
    display a raw text
    2) parse parameters in doPost method of your servlet
    to update appropriate values.
    3) Make a empty row enable inserts
    Regards
    Jan

  • Update multiple records

    Hi,
    I am trying to update mulitple records in a table, however I
    can't seem to figure out a way to differentiate the fields. I used
    a query to get all sales from a single customer using their
    customer number. I sometimes end up with 2 or more records. I want
    to mark both records as shipped (using a select statement with the
    choices of shipped and not shipped) then update these at the same
    time. However I have two values the field "shipping", one for each
    record, I also have two values for the field "salesnum" (the key
    for the sales table). If I just try to do a regular update query,
    then I only seem to update the last record with the last set of
    values.
    Anyhow, I have been althrough the forums and books to find a
    solution (not to mention tried several combinations of looping
    through the query). Any help will be appreciated. Thank you.

    Why wouldn't I need the original query? I want to see what
    customer #2 ordered, then have the ability to update one or more
    fields in one or more of his sales records. The first thing to do
    would be to find out what the customer ordered.
    This is the crux of the problem, what if I want to update one
    record and leave the second, third, forth, etc alone because they
    haven't shipped yet?
    So I use my original query to pull all the sales records
    using where to filter everything but customer #2's records. I use a
    <cfoutput query ="getsales"> <tr>
    <td>#custnum#</td>
    <td>#Salesnum#</td>
    <td><select name="shipping">
    <option value ="#shipping#">#shipping#</option>
    <option value-"Shipped">Shipped</option>
    <option value="Not Shipped">Not
    Shipped</option></td>
    to display the records and set up the form for updating.
    The post method yields a value for "shipping" and "salesnum"
    that only seems to match the last value rendered by the query.
    Hope this clarifies things, thanks for the help.

Maybe you are looking for

  • NullPointerException problem when  deploying hello1 example.

    I am running Sun AppServer Edition 8.0 on Windows 2000 platform. When I executed asant build command, Build Successful message was displayed. To configure the Web application, I followed the steps outlined on how to package the application using the

  • SEM BCS Faq's

    Hi Friends, I will have technical discussion on SEM BCS. Please send me the some useful material on SEM BCS and please send me any FAQ's from interview presepevtive.I would appriceiate if any body respond to this post. It would be very great helpful

  • This Software Cannot Be Installed on This Computer

    This seems to be a fairly common problem, but I haven't yet found a definitive solution. Basically, we decided to reinstall 10.4 on a couple computers (1.8 GHz iMac G5's) at work. It worked fine on the first computer, but it won't let us even install

  • WMP freezes up on

    My Windows Media Player keeps freezing up when I start a Sync & am moving files to my Zen V. I can sometimes get it to work when I only try to send mp3. However, whenever I try to send multiple mp3s over to the device it will usually freeze up at abo

  • I need to know what kind of photo paper to use on the HP Photosmart 375.

    What are the specifications for photo paper to be used on the Photosmart 375.  HP Advanced Photo Paper is too thick (66 lb) and won't feed through the printer.  HP Premium Photo Paper (64 lb) will feed through the printer but the ink takes at least 2