Stored proecedure tutorial for insert, delete, update,select

I want to integrate the stored procedure in my project
i am using jsp,
any one suggest me, stored proecedure tutorial for insert, delete, update,select
thanx.

Whether you are using JSP or not should not affect your decision (though I would recommend checking out the MVC pattern, and recommend against doing data access code from your JSP's).
You simply need one tutorial on how to invoke a stored procedure. The stored procedure you write can have INSERT, SELECT, UPDATE, DELETE, whatever. You simply have to master the concepts involved in java.sql.CallableStatement. (And then you can get more fancy with vendor-specific extensions).
However, I am a bit confused. You want a tutorial on stored procedures, but then you indicate very normal DML statements like INSERT, UPDATE and DELETE. All of these (queries, DML and stored procedures) fall under the general umberella of JDBC. So, it is always a good place to start with a plain ole JDBC tutorial.
java.sun.com/docs/books/tutorial/jdbc/index.html
www.onjava.com/pub/a/onjava/2003/08/13/stored_procedures.html
- Saish

Similar Messages

  • Asking help for INSERT, DELETE, UPDATE, SELECT

    I have to build a program that is like a bridge from the dabase hsqldb and the final user.
    So the user has the options of SERCH, EDIT, INSERT or DELETE a register/field/row whatever.
    Remember that the values are entered by the user, so I don't know the field to be edited, deleted, etc...
    I would thank a lot if you could put some code to do all these operations.
    But please, if you won't post the codes please don't post nothing else.
    I need the example codes!
    Thanks if you can give me a hand.

    I Just need to understand what's wrong with my code:
    // call this when user presses insert button...
    public void insertRegister() {
    String title = "Inserting new register...";
    String tempId = JOptionPane.showInputDialog(null, "Enter ID Client:", title, 3);
    int id = Integer.parseInt(tempId);
    String name = JOptionPane.showInputDialog(null, "Enter name Client:", title, 3);
    String tel = JOptionPane.showInputDialog(null, "Enter tel Client:", title, 3);
    try {
    // Setting up the PreparedStatement
    PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO CLIENTS (id_client, name_client, tel_client) VALUES(?,?,?)");
    // Now we insert the real values for PreparedStatement and execute it!
    preparedStatement.setInt(1, id);
    preparedStatement.setString(2, name.toUpperCase());
    preparedStatement.setString(3, tel);
    preparedStatement.executeUpdate();
    catch(SQLException s) { s.printStackTrace(); }
    // call this when user presses delete button...
    public void deleteRegister() {
    try {
    // Setting up the PreparedStatement
    PreparedStatement preparedStatement = connection.prepareStatement("DELETE FROM CLIENTS WHERE id_client = ?");
    String tempId = JOptionPane.showInputDialog(null, "Enter ID Client to be deleted:", "Deleting register...", 3);
    int id = Integer.parseInt(tempId);
    preparedStatement.setInt(1, id);
    preparedStatement.executeUpdate();
    catch(SQLException s) { s.printStackTrace(); }
    // Of couse I don't want anyone coding for me...
    // But if I'm not asking too much, just please someone tell me what's wrong with my code, and how to fix it. That's all.

  • ORA-01456 : may not perform insert/delete/update operation

    When I use following stored procedure with crystal reports, following error occurs.
    ORA-01456 : may not perform insert/delete/update operation inside a READ ONLY transaction
    Kindly help me on this, please.
    My stored procedure is as under:-
    create or replace
    PROCEDURE PROC_FIFO
    (CV IN OUT TB_DATA.CV_TYPE,FDATE1 DATE, FDATE2 DATE,
    MSHOLD_CODE IN NUMBER,SHARE_ACCNO IN VARCHAR)
    IS
    --DECLARE VARIABLES
    V_QTY NUMBER(10):=0;
    V_RATE NUMBER(10,2):=0;
    V_AMOUNT NUMBER(12,2):=0;
    V_DATE DATE:=NULL;
    --DECLARE CURSORS
    CURSOR P1 IS
    SELECT *
    FROM FIFO
    WHERE SHARE_TYPE IN ('P','B','R')
    ORDER BY VOUCHER_DATE,
    CASE WHEN SHARE_TYPE='P' THEN 1
    ELSE
    CASE WHEN SHARE_TYPE='R' THEN 2
    ELSE
    CASE WHEN SHARE_TYPE='B' THEN 3
    END
    END
    END,
    TRANS_NO;
    RECP P1%ROWTYPE;
    CURSOR S1 IS
    SELECT * FROM FIFO
    WHERE SHARE_TYPE='S'
    AND TRANS_COST IS NULL
    ORDER BY VOUCHER_DATE,TRANS_NO;
    RECS S1%ROWTYPE;
    --BEGIN QUERIES
    BEGIN
    DELETE FROM FIFO;
    --OPENING BALANCES
    INSERT INTO FIFO
    VOUCHER_NO,VOUCHER_TYPE,VOUCHER_DATE,TRANS_QTY,TRANS_AMT,TRANS_RATE,
    SHOLD_CODE,SHARE_TYPE,ACC_NO,SHARE_CODE,TRANS_NO)
    SELECT TO_CHAR(FDATE1,'YYYYMM')||'001' VOUCHER_NO,'OP' VOUCHER_TYPE,
    FDATE1-1 VOUCHER_DATE,
    SUM(
    CASE WHEN
    --((SHARE_TYPE ='S' AND DTAG='Y')
    SHARE_TYPE IN ('P','B','R','S') THEN
    TRANS_QTY
    ELSE
    0
    END
    ) TRANS_QTY,
    SUM(TRANS_AMT),
    NVL(CASE WHEN SUM(TRANS_AMT)<>0
    AND
    SUM
    CASE WHEN SHARE_TYPE IN ('P','B','R','S') THEN
    TRANS_QTY
    ELSE
    0
    END
    )<>0 THEN
    SUM(TRANS_AMT)/
    SUM
    CASE WHEN SHARE_TYPE IN ('P','B','R','S') THEN
    TRANS_QTY
    ELSE
    0
    END
    ) END,0) TRANS_RATE,
    MSHOLD_CODE SHOLD_CODE,'P' SHARE_TYPE,SHARE_ACCNO ACC_NO,
    SHARE_CODE,0 TRANS_NO
    FROM TRANS
    WHERE ACC_NO=SHARE_ACCNO
    AND SHOLD_CODE= MSHOLD_CODE
    AND VOUCHER_DATE<FDATE1
    --AND
    --(SHARE_TYPE='S' AND DTAG='Y')
    --OR SHARE_TYPE IN ('P','R','B'))
    group by TO_CHAR(FDATE1,'YYYYMM')||'001', MSHOLD_CODE,SHARE_ACCNO, SHARE_CODE;
    COMMIT;
    --TRANSACTIONS BETWEEND DATES
    INSERT INTO FIFO
    TRANS_NO,VOUCHER_NO,VOUCHER_TYPE,
    VOUCHER_DATE,TRANS_QTY,
    TRANS_RATE,TRANS_AMT,SHOLD_CODE,SHARE_CODE,ACC_NO,
    DTAG,TRANS_COST,SHARE_TYPE
    SELECT TRANS_NO,VOUCHER_NO,VOUCHER_TYPE,
    VOUCHER_DATE,TRANS_QTY,
    CASE WHEN SHARE_TYPE='S' THEN
    NVL(TRANS_RATE-COMM_PER_SHARE,0)
    ELSE
    NVL(TRANS_RATE+COMM_PER_SHARE,0)
    END
    ,TRANS_AMT,SHOLD_CODE,SHARE_CODE,ACC_NO,
    DTAG,NULL TRANS_COST,SHARE_TYPE
    FROM TRANS
    WHERE ACC_NO=SHARE_ACCNO
    AND SHOLD_CODE= MSHOLD_CODE
    AND VOUCHER_DATE BETWEEN FDATE1 AND FDATE2
    AND
    ((SHARE_TYPE='S' AND DTAG='Y')
    OR SHARE_TYPE IN ('P','R','B'));
    COMMIT;
    --PURCHASE CURSOR
    IF P1%ISOPEN THEN
    CLOSE P1;
    END IF;
    OPEN P1;
    LOOP
    FETCH P1 INTO RECP;
    V_QTY:=RECP.TRANS_QTY;
    V_RATE:=RECP.TRANS_RATE;
    V_DATE:=RECP.VOUCHER_DATE;
    dbms_output.put_line('V_RATE OPENING:'||V_RATE);
    dbms_output.put_line('OP.QTY2:'||V_QTY);
    EXIT WHEN P1%NOTFOUND;
    --SALES CURSOR
    IF S1%ISOPEN THEN
    CLOSE S1;
    END IF;
    OPEN S1;
    LOOP
    FETCH S1 INTO RECS;
    EXIT WHEN S1%NOTFOUND;
    dbms_output.put_line('OP.QTY:'||V_QTY);
    dbms_output.put_line('SOLD:'||RECS.TRANS_QTY);
    dbms_output.put_line('TRANS_NO:'||RECS.TRANS_NO);
    dbms_output.put_line('TRANS_NO:'||RECS.TRANS_NO);
    IF ABS(RECS.TRANS_QTY)<=V_QTY
    AND V_QTY<>0
    AND RECS.TRANS_COST IS NULL THEN
    --IF RECS.TRANS_COST IS NULL THEN
    --dbms_output.put_line('SOLD:'||RECS.TRANS_QTY);
    --dbms_output.put_line('BAL1:'||V_QTY);
    UPDATE FIFO
    SET TRANS_COST=V_RATE,
    PUR_DATE=V_DATE
    WHERE TRANS_NO=RECS.TRANS_NO
    AND TRANS_COST IS NULL;
    COMMIT;
    dbms_output.put_line('UPDATE TRANS_NO:'||RECS.TRANS_NO);
    dbms_output.put_line('OP.QTY:'||V_QTY);
    dbms_output.put_line('SOLD:'||RECS.TRANS_QTY);
    dbms_output.put_line('TRANS_NO:'||RECS.TRANS_NO);
    dbms_output.put_line('BAL2:'||TO_CHAR(RECS.TRANS_QTY+V_QTY));
    END IF;
    IF ABS(RECS.TRANS_QTY)>ABS(V_QTY)
    AND V_QTY<>0 AND RECS.TRANS_COST IS NULL THEN
    UPDATE FIFO
    SET
    TRANS_QTY=-V_QTY,
    TRANS_COST=V_RATE,
    TRANS_AMT=ROUND(V_QTY*V_RATE,2),
    PUR_DATE=V_DATE
    WHERE TRANS_NO=RECS.TRANS_NO;
    --AND TRANS_COST IS NULL;
    COMMIT;
    dbms_output.put_line('UPDATING 100000:'||TO_CHAR(V_QTY));
    dbms_output.put_line('UPDATING 100000 TRANS_NO:'||TO_CHAR(RECS.TRANS_NO));
    INSERT INTO FIFO
    TRANS_NO,VOUCHER_NO,VOUCHER_TYPE,
    VOUCHER_DATE,TRANS_QTY,
    TRANS_RATE,TRANS_AMT,SHOLD_CODE,SHARE_CODE,ACC_NO,
    DTAG,TRANS_COST,SHARE_TYPE,PUR_DATE
    VALUES
    MCL.NEXTVAL,RECS.VOUCHER_NO,RECS.VOUCHER_TYPE,
    RECS.VOUCHER_DATE,RECS.TRANS_QTY+V_QTY,
    RECS.TRANS_RATE,(RECS.TRANS_QTY+V_QTY)*RECS.TRANS_RATE,RECS.SHOLD_CODE,
    RECS.SHARE_CODE,RECS.ACC_NO,
    RECS.DTAG,NULL,'S',V_DATE
    dbms_output.put_line('INSERTED RECS.QTY:'||TO_CHAR(RECS.TRANS_QTY));
    dbms_output.put_line('INSERTED QTY:'||TO_CHAR(RECS.TRANS_QTY+V_QTY));
    dbms_output.put_line('INSERTED V_QTY:'||TO_CHAR(V_QTY));
    dbms_output.put_line('INSERTED RATE:'||TO_CHAR(V_RATE));
    COMMIT;
    V_QTY:=0;
    V_RATE:=0;
    EXIT;
    END IF;
    IF V_QTY>0 THEN
    V_QTY:=V_QTY+RECS.TRANS_QTY;
    ELSE
    V_QTY:=0;
    V_RATE:=0;
    EXIT;
    END IF;
    --dbms_output.put_line('BAL3:'||V_QTY);
    END LOOP;
    V_QTY:=0;
    V_RATE:=0;
    END LOOP;
    CLOSE S1;
    CLOSE P1;
    OPEN CV FOR
    SELECT TRANS_NO,VOUCHER_NO,VOUCHER_TYPE,
    VOUCHER_DATE,TRANS_QTY,
    TRANS_RATE,TRANS_AMT,SHOLD_CODE,B.SHARE_CODE,B.ACC_NO,
    DTAG,TRANS_COST,SHARE_TYPE, B.SHARE_NAME,A.PUR_DATE
    FROM FIFO A, SHARES B
    WHERE A.SHARE_CODE=B.SHARE_CODE
    --AND A.SHARE_TYPE IS NOT NULL
    ORDER BY VOUCHER_DATE,SHARE_TYPE,TRANS_NO;
    END PROC_FIFO;
    Thanks and Regards,
    Luqman

    Copy from TODOEXPERTOS.COM
    Problem Description
    When running a RAM build you get the following error as seen in the RAM build
    log file:
    14:52:50 2> Updating warehouse tables with build information...
    Process Terminated In Error:
    [Oracle][ODBC][Ora]ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction
    (SIGENG02) ([Oracle][ODBC][Ora]ORA-01456: may not perform insert/delete/update operation inside a READ ONLY transaction
    ) Please contact the administrator of your Oracle Express Server application.
    Solution Description
    Here are the following suggestions to try out:
    1. You may want to use oci instead of odbc for your RAM build, provided you
    are running an Oracle database. This is setup through the RAA (relational access
    administrator) maintenance procedure.
    Also make sure your tnsnames.ora file is setup correctly in either net80/admin
    or network/admin directory, to point to the correct instance of Oracle.
    2. Commit or rollback the current transaction, then retry running your
    RAM build. Seems like one or more of your lookup or fact tables have a
    read-only lock on them. This occurs if you modify or add some records to your
    lookup or fact tables but forget to issue a commit or rollback. You need to do
    this through SQL+.
    3. You may need to check what permissions has been given to the relational user.
    The error could be a permissions issue.
    You must give 'connect' permission or roll to the RAM/relational user. You may
    also try giving 'dba' and 'resource' priviliges/roll to this user as a test. Inorder to
    keep it simple, make sure all your lookup, fact and wh_ tables are created on
    a single new tablespace. Create a new user with the above privileges as the
    owner of the tablespace, as well as the owner of the lookup, fact and wh_
    tables, inorder to see if this is a permissions issue.
    In this particular case, the problem was resolved by using oci instead of odbc,
    as explained in suggestion# 1.

  • How do I insert/Delete/Update a row to the DB Table from Business Component Browser

    I am using the wizard and created a project containing Business component which contain some table.
    When I run the project I could see "Oracle Business Component Browser(local)" and when I select some table from "View Object Member" I get a window displaying all the field of that table and I could browse all the info.
    My Problem is when I try to insert a new record/Delete the existing record or update some record it never gets reflected to the DataBase.
    When I try to insert a new row I did save and there was a dialog box displayed saying "Transaction ID is 1". But finally It's not reflected in the Database.
    Can some one guide me how can I do insert/delete/update operation from Oracle Component Business Browser so that the changes reflect to the Original DataBase.
    Thanks in advance
    Jitendra

    Jitendra,
    This may be a problem of caching. If you do an update,insert, or delete, and do not receive an error, then the transaction should indeed be posted.
    I assume you are hitting the Save icon after your changes if you are getting a transaction ID. Are you checking for the updates through another session (i.e. SQL*Plus), or do you then requery the View Object in the tester? Do you exit the tester and come back in and not see the changes?

  • Single Page Spry Tabbed Insert - Delete - Update

    Hi Guys
    I like to make a page with three Spry Tabs.
    * Using ( PHP - Mysql )
    * Example ( Table of "Users" Fields ID, Name, Age )
    ( First Tab )
    List of all people with navigation dividing table by ten rows
    each time.
    On each row Delete & Update This person.
    When Clicked on Delete [ Delete This Person and update the
    list ]
    When clicked on Update [ Go to third tab and update this
    exact person ]
    ( Second Tab )
    Insert new person to Mysql
    ( Third Tab )
    Update the person who was send here to be updated from tab
    one
    Can I have all list - Insert - Delete - Update in one page
    under different Spry Tabs? How can I send these info from one tap
    to another. How should I go about this?

    It was never possible to have more than one of those
    behaviours on a page
    using the standard behaviours in previous versions. You
    always had to write
    your own scripts.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Sanj" <[email protected]> wrote in message
    news:enjulr$qma$[email protected]..
    > Hi,
    >
    > Prior to Dreamweaver 8.02 it was possible to have more
    than 1
    > Insert/delete/update however this is no longer the case
    - is there a way
    > around this?
    >
    > Thanks!
    >
    > Sanj
    >

  • HGrid inserting deleting updating Requirement

    Hi All,
    the following is the statement from OAF Dev Guide....
    Consider using a HGrid instead of a Tree when you want your users to either:
    *   Manipulate the objects in the hierarchy (add, delete, move, reorder, etc.). Note that in certain cases,*
    you may want your users to navigate from a Tree to a HGrid to perform these actions. This is done by
    providing a button that switches to an "update" or "edit" mode, which displays a HGrid instead of a
    Tree.
    I have a requirement to create/insert/delete/read the data at 3 levels..
    Parent Level
    --------Child Level
    --------------------Sub Child Level
    can you please suggest the approach to meet this requirement.
    Regards
    Sridhar

    For insert it's easy:
    CREATE TRIGGER [HumanResources].[tr_HumanResources_AfterInsert]
    ON [AdventureWorks2012].[HumanResources].[Department]
    AFTER INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    Insert INTO AdventureWorks2012_new.HumanResources.Department
    (DepartmentID, Name, GroupName, ModifiedDate)
    SELECT DepartmentID, Name, GroupName, ModifiedDate
    FROM Inserted;
    END
    I didn't verify column names, so you may need to make sure to use correct column names for that table.
    Setting replication is a bit advanced topic although BOL is clear and you may start here
    http://technet.microsoft.com/en-us/library/ms151198.aspx
    If it will be complicated for you, you can ask extra questions in the MSDN Replication forum.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Help me in creating a Trigger for Insert and Update Options

    Hi
    Please help me in creating a Trigger .
    My requirement is that after insert or update on a Table , i want to fire an event .
    I have started this way ,but doesn't know how to fully implement this .
    say i have a dept table
    CREATE TRIGGER DepartmentTrigger
    AFTER INSERT ON Dept
    BEGIN
    INSERT INTO mytable VALUES("123","Kiran");
    END DepartmentTrigger;
    Please tell me how can i put the Update option also .
    Thanks in advance .

    Please tell me how can i put the Update option also .Add "Or Update". ;-)
    Here are a few suggestions, but you definitely need to refer to the manual page that the previous poster suggested.
    CREATE OR REPLACE TRIGGER DepartmentTrigger
    AFTER INSERT Or Update ON Dept
    BEGIN
    INSERT INTO mytable VALUES(:new.Dept,'DEPT ADDED OR CHANGED');
    END DepartmentTrigger;
    The "Or Replace" means you can replace the trigger while you're developing without having to type in a drop statement every time. Just change and rerun your script, over and over until you get it right.
    Adding "Or Update" or "Or Delete" makes the trigger fire for those events too. Note, you may want seperate triggers in different scripts and with different names for each event. You have to decide if your design really does the same thing whether it's an insert or an update.
    :new.Dept is how you would refer to the changed vale of the Dept column (:old.Dept is the prior value). I changed the double quotes on the string in the VALUES clause to single quotes.
    Andy

  • Icons for Insert/Delete Pages to Adobe Acrobat Pro 9.

    I want to add icons for Insert Pages and Delete Pages so that I have quicker access than clicking on the Document option or the Navigation Panel. Used to have this on my old version of Adobe, but it was recently updated at work and I can't figure out how to put them back.

    Hi Eggy72,
    If I understand correctly, you want to customize the toolbars in Acrobat 9 to include the Insert Pages and Delete Pages options?
    If so, please see Show and Hide Toolbar Elements in chapter 2 of the Acrobat 9 Help: http://help.adobe.com/archive/en_US/acrobat/9/professional/acrobat_pro_9.0_help.pdf
    I hope that answers your question!
    Best,
    Sara

  • Oracle Auditing for Insert/delete in a Table

    Dear Oracle Guru's
    I have a Master table for which records are added manually using the Insert command and not by any front end tools.
    I have no Auditing for this table , like when an insert/delete is made in to this table.
    Does oracle provides any other Tables/views like v$session to find out when such events happens.
    Kindly guide me
    With Warm Regards
    ssr

    Probably not.
    If your database is in ARCHIVELOG mode and you have the archived logs from the point in time that the DML happened, you could potentially use LogMiner to read the redo logs and get information about when the DML happened and who was responsible. That tends, however, to be a relatively painful manual process that is frequently complicated by the fact that most shops get rid of archived logs as soon as they are no longer necessary for database recovery which is frequently a matter of days or weeks.
    Justin

  • UserExit - In CO02 - For insert & delete component

    In CO02 --> component overview (F6).
    I want to restrict the users to add or delete the components.
    I tried to search the user exit in Report - SAPLCOKO1 but unable to reach.
    Can you help me on it?

    Hi Check these user exits
    PPCO0009                                Enhancement in goods movements for prod. process order
    PPCO0010                                Enhancement in make-to-order production - Unit of measure
    PPCO0012                                Production Order: Display/Change Order Header Data
    PPCO0013                                Change priorities of selection crit. for batch determination
    PPCO0015                                Additional check for document links from BOMs
    PPCO0016                                Additional check for document links from master data
    PPCO0017                                Additional check for online processing of document links
    PPCO0018                                Check for changes to production order header
    PPCO0019                                Checks for changes to order operations
    PPCO0021                                Release Control for Automatic Batch Determination
    PPCO0022                                Determination of Production Memo
    PPCO0023                                Checks Changes to Order Components
    PPCO0008                                Enhancement in the adding and changing of components
    STATTEXT                                Modification exit for formatting status text lines
    CCOWB001                                Customer exit for modifying menu entries
    COIB0001                                Customer Exit for As-Built Assignment Tool
    COZF0001                                Change purchase req. for externally processed operation
    COZF0002                                Change purchase req. for externally procured component
    PPCO0001                                Application development: PP orders
    PPCO0002                                Check exit for setting delete mark / deletion indicator
    PPCO0003                                Check exit for order changes from sales order
    PPCO0004                                Sort and processing exit: Mass processing orders
    PPCO0005                                Storage location/backflushing when order is created
    PPCO0006                                Enhancement to specify defaults for fields in order header
    PPCO0007                                Exit when saving production order

  • Insert,delete,update in oracle Rac11g2

    hi all.
    i am using oracle grid 11g R2,oracle database 11g R2 and oracle Linux Enterprise 5.5.
    i tried to use insert,update and delete in oracle Rac but wihout commit iit did not delete,update and insert in Node2.
    plz can anyone help me that how to insert,delete and update without issuing commit in node1 and perform the action
    on node2 as well?
    Kelly

    Hi Kelly,
    Now I get it, but unfortunately there is no way to do it. TAF can allow only session failover, or query failover (a running query will continue in the other node). But anyway, there is no way to failover a transaction. The transaction will be rolled back automatically (no question or any other option) and the session will get an error. However, the session will be connected to the other node and can continue working or retry the operation.
    HTH
    Liron

  • Default values for Insert and Update

    What is the best way to default the current sysdate for a date column on a table when doing an insert or update through a form? And related to this, what is the best way to default the current user (APP_USER) for a varchar2 column when doing an insert or update through a form?
    For these columns, I want to display them on a report, but they should be hidden on the form because I would like to have the app default the values to sysdate and APP_USER. However, when I have tried to use the table default values in "user interface defaults" and using either :APP_USER or &APP_USER or SYSDATE, it only shows this literal value on the form (item is not hidden while I debug this). It does not show the actual value I'd want, such as "user1". Does this make sense?
    Thanks for your help.
    -Reid

    I think triggers are the best device.
    Scott

  • One item used for insert and update

    I'm still trying to learn APEX and need to understand how to use an item for both update and insert. Is the LOV part used for the insert and the SOURCE for the update? I have a WHERE clause I need to use for the insert but not the update. I have to display items when updating that would not show up in the insert b/c only active things should be in the insert whereas the update can contain retired values. Also one such item needs to display its value but hold on to it's ID. Also, I am displaying items from more than one table so I'm not sure if I can say it's a Database Column. AS you can see, I'm really confused and the doc doesn't usually explain these details and is not helping me. Can someone explain how to set up such items? Thank you!

    I do actually have things working (I do have insert, update and delete processes) since I copied from another app, but there are some details that are not working well. For example, I have a linked field that pulls up a record (row fetch) and 2 of the fields do not pull up the values for that row (it's a select list and that's there but it doesn't highlight the correct value). For one of them, when inserting, the LOV (I think) should only show the active values but then, when the row is fetched, it needs to show a value from the table even if it's no longer active. I'm missing something and don't know what it is.

  • Coldfusion generated dataservices don't work for insert or update.

    What is supposed to go in "/* Enter value(s) for*/" item below.
    Is this code generated assuming it is working with LCDS or BlaseDS??
    There has got to be something else that needs to be done to make this work. But I have not been able to find out what that is supposed to be.
    protected  
    function button2_clickHandler(event:MouseEvent):void{
    updateitron_rmasResult.token = itron_rmasService.updateitron_rmas(
    /*Enter value(s) for */ item);}
    Flex function.
    protected  
    function button_clickHandler(event:MouseEvent):void{
    itron_rmas.id = parseFloat(idTextInput.text);
    itron_rmas.rma = rmaTextInput.text;
    itron_rmas.sentdate = sentdateDateField.selectedDate;
    itron_rmas.closeddate = closeddateDateField.selectedDate;
    itron_rmas.quotedate = quotedateDateField.selectedDate;
    itron_rmas.so = soTextInput.text;
    itron_rmas.customerid = parseFloat(customeridTextInput.text);
    itron_rmas.Customer = customerTextInput.text;
    itron_rmas.Qty = parseFloat(qtyTextInput.text);
    itron_rmas.Notes = notesTextInput.text;
    itron_rmas.estimatecost = parseFloat(estimatecostTextInput.text);
    itron_rmas.estimatesell = parseFloat(estimatesellTextInput.text);
    itron_rmas.hdpo = hdpoTextInput.text;
    itron_rmas.serialnumber = serialnumberTextInput.text;
    itron_rmas.description = descriptionTextInput.text;
    itron_rmas.product = productTextInput.text;
    itron_rmas.custpo = custpoTextInput.text;
    itron_rmas.writtenby = writtenbyTextInput.text;
    updateitron_rmasResult.token = itron_rmasService.updateitron_rmas(
    this.itron_rmas);}
    Coldfusion Function
    <cffunction
    name="updateitron_customers" output="false" access="remote" returntype="void" >
    <cfargument name="item" required="true" />
    <cfquery name="updateItem" datasource="mydb">
    UPDATE itron_customers SET customer = <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.customer#">, city =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.city#">, state =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.state#">, contact =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.contact#">, notes =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.notes#">, phone =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.phone#">, fax =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.fax#">, email =
    <CFQUERYPARAM cfsqltype=CF_SQL_VARCHAR VALUE="#item.email#">
    WHERE id = <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="#item.id#">
    </cfquery>
    </cffunction>

    most likely the app developer havent made it compatible

  • Is there BAPI to insert/del/update/select customer table

    I need to maintain customer table using RFC, but after try, I found that there are some problem.
          Something can execute at ECC system but it will fail at RFC interface, So I would like to know if there is a way to maintain it.

    Hi,
    Check these BAPI's
    BAPI_CUSTOMER_CREATE Create Customer Master Online
    BAPI_CUSTOMER_CREATEFROMDATA1
    Regards,
    Jyothi CH.

Maybe you are looking for