Pre-update checkbox

Hello,
i have a check box on my form (possible values 'Y' or 'N'). i wanna use a pre-update trigger to be able to update this checkbox to 'D' only if column1 = 'D'. column1 is a column from data block. How can i do it in pre-update?
Thanks!

hi
try something like this.
DECLARE
VAR              NUMBER;
BEGIN
SELECT ID
INTO       VAR
FROM     TEST
WHERE   CHK = 1;  --CHECKED
IF  VAR IS NOT NULL THEN
--CLEAR THE PREVIOUS PATIENT
UPDATE TEST
SET         CHK = 2 --not checked
WHERE   ID = VAR;
COMMIT_FORM;
GO_BLOCK('TEST');
EXECUTE_QUERY;
END IF;
END;
END IF;you can change the code to meet your requirments
Sarah

Similar Messages

  • Unable to insert the record to table using pre-insert & pre-update trigger

    Hi All,
    I have tried to insert and update the backend table using the pre-update and pre-insert triggers. But its not working for me. Please find below the code which i have used in the triggers.
    Pre-insert trigger:
    DECLARE
    v_cust_num_cnt NUMBER;
    BEGIN
              SELECT      COUNT(customer_number)
              INTO      v_cust_num_cnt
              FROM cmw_bc_mobile_number
              WHERE substr(customer_number,1,15)=substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15);
              IF      v_cust_num_cnt = 0 THEN
                        INSERT INTO cmw_bc_mobile_number (CUSTOMER_NUMBER
                                                                                                   ,MOBILE_NUMBER
    ,CREATION_DATE
    VALUES
    (substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15)
    ,:BLOCKNAME.MOBILE_NUMBER
    ,SYSDATE
    COMMIT;                                                                                                    
    END IF;          
    END;
    PRE_UPDATE TRIGGER:
    BEGIN
              IF :SYSTEM.RECORD_STATUS = 'CHANGED' THEN
              UPDATE apps.cmw_bc_mobile_number
         SET mobile_number = :BLOCKNAME.MOBILE_NUMBER,
         creation_date = SYSDATE
              WHERE customer_number=substr(:BLOCKNAME.CUSTOMER_NUMBER,1,15);
              COMMIT;
         END IF;
    EXCEPTION
              WHEN OTHERS THEN
                   NULL;     
    END;
    Please let someone assist in gettting it resolved.
    Regards,
    Raj.

    Just use MESSAGE (we don't know what fnd_message is, that is some custom code):
    message('v_cust_num_cnt='||v_cust_num_cnt);
    IF v_cust_num_cnt = 0 THEN
      message('Now inserting...');
      INSERT INTO cmw_bc_mobile_number (CUSTOMER_NUMBER... 
    else
      message('Nothing to insert');
    end if;

  • Insert in Pre-Update...please help...

    hii all...
    i have master/detail block form....
    Table - T_MAST (MASTER)
    M_CODE
    M_NO
    M_DATE
    M_PARTY
    M_DISC_AMT
    M_CHRGS
    Table - T_DET (DETAIL)
    D_MCODE
    D_MNO
    D_ITEM
    D_QTY
    D_PRICE
    D_AMT (Non-DB Formula item, calculates D_QTY * D_PRICE)
    D_TOT_AMT (Non-DB Summary item, sums D_AMT)
    D_NET_AMT (Non-DB Formula item, D_TOT_AMT-M_DISC_AMT+M_CHRGS)
    on saving, in pre-insert i want to save some columns from T_MAST & T_DET blocks
    into another table T_ACNT;
    Table - T_ACNT
    ACNT_CODE
    ACNT_NO
    ACNT_DATE
    ACNT_PARTY
    ACNT_DC
    ACNT_AMT
    I gave the follwing 2 inserts...in
    PRE-INSERT (Header Block)
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :M_PARTY,
    'C',:D_NET_AMT);
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :GLOBAL.M_CASH_CODE,
    'D',:D_NET_AMT);
    Pre-Insert have no issues...
    but the problem i am facing is, when i update record after any change..
    in PRE-UPDATE, first i am Deleting the record already existing in T_ACNT table,
    matching with the current header record and then Insert record with new values..
    PRE-UPDATE (Detail Block)
    DELETE FROM ACNT_TXN
    WHERE ACNT_CODE = :M_CODE
    AND ACNT_NO = :M_NO
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :M_PARTY,
    'C',:D_NET_AMT);
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :GLOBAL.M_CASH_CODE,
    'D',:D_NET_AMT);
    Modifying 1 record at a time, either master,detail or both has no problem,
    but if i update more than 1 header records or updating combination of both header-detail records.
    doesn't insert new records in ACNT_TXN correctly....
    for example, with the followinf data;
    M_CODE       M_NO M_DATE    M_PART M_DISC_AMT    M_CHRGS
    SAL            24 15-JUN-10 C1006                      1
    SAL            25 23-JUN-10 C1003           2
    D_MCOD      D_MNO D_ITEM               D_QTY    D_PRICE
    SAL            24 987654321                2          2
    SAL            25 P0140000014              2          4
    Initially PRE-INSERT result goes well.. in ACNT_TXN...no issues
    ACN    ACNT_NO ACNT_DATE ACNT_C A   ACNT_AMT
    SAL         24 15-JUN-10 C1006  D          5
    SAL         24 15-JUN-10 5500   C          5
    SAL         25 23-JUN-10 5500   C          6
    SAL         25 23-JUN-10 C1003  D          6lets assume that i change header field of record with M_No. 24 and 25
    and remaining on record no. 25 i press save button...
    what i notice is, Form start to commit the changes from the first changed record,,
    which in my case from header record No. 24...and thats fine...
    since the record is changed, so pre-update gets fired.
    First, it deletes the record from ACNT_TXN with matching header record no.24 but...
    when re-Inserting in ACNT_TXN, it is replacing values of record no.24 with the values current record no 25...!
    i put a message trapping the value of D_NET_AMT before Delete and found this...
    kindly if any one help me correct my logic n approach...
    TY..

    hello,
    No need to delete the record from the table ACNT_TXN.
    Just check it if record is exist then update it.
    Do you have any contraints in your detail table?
    i assumed you have this contrainst field :
    as primary or unique :-
    ACNT_CODE
    ACNT_NO
    ACNT_DC
    if no constraint then just make function to check if exist then update the record.
    since you have the code on your forms then i will suggest this code if it suite to your need.
    Ok. can you just try it again by pre-update under dtl_blk.
    begin
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :M_PARTY,
    'C',
    :D_NET_AMT);
    exception when duP_val_on_index then
    begin
    update T_ACNT
    set ACNT_AMT = nvl(:D_NET_AMT,0)
    where ACNT_CODE = :M_CODE
         ACNT_NO = :M_NO
    ACNT_DC = 'C';
    end;
    end;
    OR-
    begin
    update T_ACNT
    set ACNT_AMT = nvl(:D_NET_AMT,0)
    where ACNT_CODE = :M_CODE
         ACNT_NO = :M_NO
    ACNT_DC = 'C';
    IF SQL%NOTFOUND THEN
    begin
    INSERT INTO T_ACNT VALUES (:M_CODE,
              :M_NO,
              :M_DATE,
              :M_PARTY,
              'C',
              :D_NET_AMT);
    end;
    end if;
    end;
    begin
    INSERT INTO T_ACNT VALUES (:M_CODE,
    :M_NO,
    :M_DATE,
    :GLOBAL.M_CASH_CODE,
    'D',:D_NET_AMT);
    exception when duP_val_on_index then
    begin
    update T_ACNT
    set ACNT_AMT = nvl(:D_NET_AMT,0)
    where ACNT_CODE = :M_CODE
         ACNT_NO = :M_NO
    ACNT_DC = 'D';
    end;
    end;
    OR-
    begin
    update T_ACNT
    set ACNT_AMT = nvl(:D_NET_AMT,0)
    where ACNT_CODE = :M_CODE
         ACNT_NO = :M_NO
    ACNT_DC = 'D';
    IF SQL%NOTFOUND THEN
    begin
    INSERT INTO T_ACNT VALUES (:M_CODE,
              :M_NO,
              :M_DATE,
              :M_PARTY,
              'D',
              :D_NET_AMT);
    end;
    end if;
    end;
    hope will help you...
    Note: this code i didnt try it, maybe you need some review but i give the idea.
    charles

  • OIM 10G recon event is not affected by pre-update handler

    Hi.
    im trying to modify a value from trusted source before the user is modified.
    but the reconciliation message is processed and updates the user data before the pre-update handler is triggered
    How can I trigger the pre-update handler before the recon event updates the user data?
    Thank you.

    HI

  • Update record in Pre-update

    Hi all,
    I got the master-detail block, where only certain field in child block for which are allow to updated. Hence, i have the update statement in pre-update trigger.
    UPDATE OT_PO_ITEM_DEL SET PID_UPD_UID = 'BC'
    WHERE PID_PI_SYS_ID = :OT_PO_ITEM.PI_SYS_ID;
    :ot_po_item[ block name].pi_sys_id[FK to pid_pi_sys_id]
    I am not sure why the above simple statement does not work ? But if I click on the default save button in form. The records being saved however the field i am try to update is not visible from user and I need to pass the default paramenter via pre-update which is without user's entry.
    Please helps. Thanks.

    May be that:
    loop
       v_name := :system.cursor_item;     
       v_r := name_in(v_name);     
       -- you check, you have name item and value
       exit when replace(v_name, 'BLOCK1.', '') = Get_Block_property('BLOCK', Last_Item);     
       next_item; 
    end loop;    

  • Setting required property on pre-update trigger

    i have set required property of 3 items on pre-update trigger of a block such that if user updates a listbox and if the updated value is 'P' for perentage then the user must fill all the 3 fields but even after setting the required property the record is saved if the fields are empty. the trigger is firing & everything looks ok. the portion of code i've used is:
    BEGIN
    IF :ROUTING_ENGINE_RULES.DISTRIBUTION_TYPE = 'P' THEN
    PAUSE; /*TO CHECK ENTRY ON TRIGGER*/
    SET_ITEM_PROPERTY('carrier_cd_percent1',UPDATE_ALLOWED,PROPERTY_true);
         ('carrier_cd3_percent',UPDATE_ALLOWED,PROPERTY_true);
    I'VE SET OTHER 2 FIELDS SIMILARLY
         

    put your code in when-listvalue-changed trigger for that 'P' trigger.
    to put it in existng place is still too late.

  • Badi or user exit to uncheck Info-update checkbox

    Hi guys,
    How can I uncheck by code the Info-update checkbox for one type of purchase order?
    I need one user exit or Badi to do this, so any suggestion?
    Thanks in advance.

    Use BADI ME_PROCESS_PO_CUST.
    As info-update checkbox is located at item level, you need to use PROCESS_ITEM method of this BADI.
    G@urav.

  • Nov 2011 PRU = "Zone Pre-Update Actions"....;(

    ZCM10.3.3 Server
    Configuration | System Updates | Available System Updates
    "Nov 2011 PRU" . Downloaded - OK.
    After: "Action" | "Deploy PRU Now" wait 10 min... and see:
    Status = "Zone Pre-Update Actions"
    Importance= "Moderate"..
    Why this ??
    When it will be installed on the server?
    Serg

    Originally Posted by skoltogyan
    ZCM10.3.3 Server
    Configuration | System Updates | Available System Updates
    "Nov 2011 PRU" . Downloaded - OK.
    After: "Action" | "Deploy PRU Now" wait 10 min... and see:
    Status = "Zone Pre-Update Actions"
    Importance= "Moderate"..
    Why this ??
    When it will be installed on the server?
    Serg
    Already all was installed. It was necessary to Wait!

  • Pre-update prep n95

    i'm getting ready to update my phone tomorrow and it got me thinking about the software on my phone.
    I have a lot of stuff downloaded and installed.
    Will a backup with the pc suite will keep all my installed apps?
    What kinda pre-update prep are you guys doing.

    Thanks for pointing out that, my mistake. Yes, there will be no NO_DATA_FOUND exception raised instead have to use SQL%ROWCOUNT.
    Here is the updated code.
    IF  :product.SHORT ='SHORT' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'SHORT'
        where prod_id = :product.prod_id||'-'||'S';
        If SQL%ROWCOUNT = 0 Then
           INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'S',:product.prod_name||'-'||'SHORT');
        End If;
      End;   
    end IF;
    IF  :product.SIZE_MID ='MID' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'MID'
        where prod_id = :product.prod_id||'-'||'M';
        If SQL%ROWCOUNT = 0 Then
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'M',:product.prod_name||'-'||'MID');
        End If;     
    End IF;
    IF  :product.SIZE_LONG ='LONG' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'LONG'
        where prod_id = :product.prod_id||'-'||'L';
        If SQL%ROWCOUNT = 0 Then
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'L',:product.prod_name||'-'||'LONG');
        End If;   
    END IF;
    IF  :product.SIZE_SMALL ='SMALL' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'SMALL'
        where prod_id = :product.prod_id||'-'||'SM';
        If SQL%ROWCOUNT = 0 Then   
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'SM',:product.prod_name||'-'||'SMALL');
        End If;
    END IF;
    IF  :product.size_BIG ='BIG' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'BIG'
        where prod_id = :product.prod_id||'-'||'B';
        If SQL%ROWCOUNT = 0 Then   
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'B',:product.prod_name||'-'||'BIG');
        End If;
    end if;Edited by: neel_s on Mar 5, 2010 12:35 PM

  • Pre update

    Hi all
    PRE-update code on block level the given prod_id is 1010 that firs on the bases of 1010
    IF     :product.SHORT ='SHORT' THEN
         INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'S',:product.prod_name||'-'SHORT');
    end IF;
    IF     :product.SIZE_MID ='MID' THEN
         INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'M',:product.prod_name||'-'||'MID');
    End IF;
    IF     :product.SIZE_LONG ='LONG' THEN
         INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'L',:product.prod_name||'-'||'LONG');
    END IF;
    IF     :product.SIZE_SMALL ='SMALL' THEN
         INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'SM',:product.prod_name||'-'||'SMALL');
    END IF;
    IF     :product.size_BIG ='BIG' THEN
         INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'B',:product.prod_name||'-'||'BIG');
    end if;when i insert first time i have i have inserted first two items after that i need to update rest three
    but there is prod_id is PRIMARY_KEY AND it will not allow me to update like this
    Please guide
    Thanks ANd Regards
    Vikas

    Thanks for pointing out that, my mistake. Yes, there will be no NO_DATA_FOUND exception raised instead have to use SQL%ROWCOUNT.
    Here is the updated code.
    IF  :product.SHORT ='SHORT' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'SHORT'
        where prod_id = :product.prod_id||'-'||'S';
        If SQL%ROWCOUNT = 0 Then
           INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'S',:product.prod_name||'-'||'SHORT');
        End If;
      End;   
    end IF;
    IF  :product.SIZE_MID ='MID' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'MID'
        where prod_id = :product.prod_id||'-'||'M';
        If SQL%ROWCOUNT = 0 Then
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'M',:product.prod_name||'-'||'MID');
        End If;     
    End IF;
    IF  :product.SIZE_LONG ='LONG' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'LONG'
        where prod_id = :product.prod_id||'-'||'L';
        If SQL%ROWCOUNT = 0 Then
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'L',:product.prod_name||'-'||'LONG');
        End If;   
    END IF;
    IF  :product.SIZE_SMALL ='SMALL' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'SMALL'
        where prod_id = :product.prod_id||'-'||'SM';
        If SQL%ROWCOUNT = 0 Then   
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'SM',:product.prod_name||'-'||'SMALL');
        End If;
    END IF;
    IF  :product.size_BIG ='BIG' THEN
      Begin
        Update product
         set prod_name = :product.prod_name||'-'||'BIG'
        where prod_id = :product.prod_id||'-'||'B';
        If SQL%ROWCOUNT = 0 Then   
          INSERT INTO product(prod_id,prod_name) VALUES (:product.prod_id||'-'||'B',:product.prod_name||'-'||'BIG');
        End If;
    end if;Edited by: neel_s on Mar 5, 2010 12:35 PM

  • Had firefox want to do an update, updated lost all bookmarks then randomly it unstalled and back to the pre-updated version

    the other day, firefox updated itself , i lost all my bookmarks autologins etc, them randomly today its gone back to the pre-update version? i dont know whats going on? the version on my computer currently is 27.0

    This is not an issue that Firefox itself is going to cause. Maybe it is your backup software or something.
    Firefox has no mechanism for causing reverts to older installs. When Firefox does upgrade it does try to preserve bookmarks. I note from your Sytem information aside that you have McAfee software, but I do not know whether that may be implicated in this sort of problem.
    I do know; certainly in the past; some McAfee software, and particularly the SiteAdvisor have caused Firefox problems.
    N.B. Firefox has its own built in features
    * [[How does built-in Phishing and Malware Protection work?]]
    * And Windows provides basic AV software for free http://windows.microsoft.com/en-gb/windows/security-essentials-download
    I could try to give some basic help information regarding Windows features for recovering previous versions of files
    * - Please - always carefully back up any existing files or folders before attempting that
    * http://windows.microsoft.com/en-us/windows/previous-versions-files-faq#1TC=windows-7
    I suspect however your problem may relate to use of third party backup or security software.
    * What security related software and backup software is in use ?

  • What is differnce between pre update and update

    Hi all may I know what is the difference between pre update stored procedure and update stored procedure.Before calling update why do we call pre update, and what is the benfit

    or are you referring to a before update and after update in a trigger?

  • Update checkbox values in jsp page back to OBPM Process

    Dear experts,
    I am having a small problem with JSP and I was wondering if anyone could shed some light on it.
    My situation is as follows, currently I have
    <f:invoke var="${orderDetails}" methodName="getIndicatorsY" retAttName="indicator1"/>
    <c:forEach var="indicators1" begin="0" items="${indicator1}" varStatus="status">
    <tr>
    <td width="27">
    <input type="checkbox" name="C1" value="I am a checkbox" checked></td>
    <<td><font size="2"><c:out value="${indicators1}"/></font></td>
    </tr>
    </c:forEach>
    What this code does is, if uses the fuego talib and invokes a method in bpm which has a database call and returns an array of string.
    Thus on the jsp page, when it is loaded, you will see a table which has 2 columns. 1st column is a checkbox, 2nd column is the information in the string array.
    My dilemma is like so, when a user unchecks the box, I need to be able to update bpm and subsequently the database to reflect the change from checked to unchecked.
    A question, is it possible to return a bpm object from that invoke rather than just a simple string array?
    I have yet to find a way to do it. Could be my lack of experience in JSP :( Any help or sample code is greatly appreciated. Thank you!

    i think you'll have more chance in this forum :
    Java Server Pages (JSP)

  • Updating checkboxes in an Access Database

    I have an edit form that requires checkboxes. I select a
    record to edit and check the checkboxes, enter the text data and
    submit the data. When I select the same record from the edit list I
    see where the text data is available in the form, but the
    checkboxes are back to the "default" unchecked.
    <cfoutput query="pubrec">
    <form action="update.cfm" method="post">
    <input type="hidden" name="cust_id" value="#cust_id#">
    <hr>
    <p>First Name: #first_name# Last Name: #last_name#
    Date Requested:<strong> #DateFormat(date_received, "MMMM D,
    YYYY")#</strong></p>
    <p>Fees Paid: <input type="checkbox" name="paid"
    value="#fee_paid#"></p>
    <p>Amount Paid: <input type="text"
    name="fee_amount" value="#fee_amount#"></p>
    <p>Receipt Provided: <input type="checkbox"
    name="paid" value="#receipt#"></p>
    <p>Staff First Name: <input type="text"
    name="staff_fname" value="#staff_fname#"></p>
    <p>Staff Last Name: <input type="text"
    name="staff_lname" value="#staff_lname#"></p>
    <p>Staff Phone Ext.: <input type="text"
    name="staff_ph_ext" value="#staff_ph_ext#"></p>
    <input type="submit" name="Submit" value="Submit" />
    </form>
    </cfoutput>
    <cfif IsDefined('form.paid')>
    Paid: #paid#
    <cfelse>
    Paid: No method of payment selected
    </cfif>
    Here is the update code:
    <cfquery name="change" datasource="#odbc_datasource#">
    SELECT *
    FROM customer_info
    WHERE cust_id = #cust_id#
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Update Public Rercords Request Action
    Table</title>
    </head>
    <cfquery datasource="#odbc_datasource#">
    UPDATE customer_info
    SET fee_paid = '#paid#',
    fee_amount = #fee_amount#,
    receipt = '#paid#',
    staff_lname = '#staff_lname#',
    staff_fname = '#staff_fname#',
    staff_ph_ext = '#staff_ph_ext#'
    WHERE cust_id = #cust_id#
    </cfquery>

    I need to start with the box unchecked because the staff
    person editing the record is checking the box to indicate a payment
    was made. I modifed the code to use the cfparam tag:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
    http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en-US">
    <cfparam name = "fee_paid" default="no">
    <cfparam name = "receipt" default="no">
    <cfquery name="pubrec" datasource="#odbc_datasource#">
    SELECT *
    FROM customer_info
    WHERE cust_id = #URL.recordID#
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">
    <title>Edit Form for Public Records
    Request</title>
    </head>
    <body>
    <cfoutput query="pubrec">
    <form action="update.cfm" method="post">
    <input type="hidden" name="cust_id" value="#cust_id#">
    <hr>
    <p>First Name: #first_name# Last Name: #last_name#
    Date Requested:<strong> #DateFormat(date_received, "MMMM D,
    YYYY")#</strong></p>
    <p>Fees Paid: <input type="checkbox"
    name="fee_paid" value="#fee_paid#"></p>
    <p>Amount Paid: <input type="text"
    name="fee_amount" value="#fee_amount#"></p>
    <p>Receipt Provided: <input type="checkbox"
    name="receipt" value="#receipt#"></p>
    <p>Staff First Name: <input type="text"
    name="staff_fname" value="#staff_fname#"></p>
    <p>Staff Last Name: <input type="text"
    name="staff_lname" value="#staff_lname#"></p>
    <p>Staff Phone Ext.: <input type="text"
    name="staff_ph_ext" value="#staff_ph_ext#"></p>
    <input type="submit" name="Submit" value="Submit" />
    </form>
    </cfoutput>
    </body>
    </html>
    Here is the update page that send the informaiton to the
    database:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
    http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <cfquery name="change" datasource="#odbc_datasource#">
    SELECT *
    FROM customer_info
    WHERE cust_id = #cust_id#
    </cfquery>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Update Public Rercords Request Action
    Table</title>
    </head>
    <cfquery datasource="#odbc_datasource#">
    UPDATE customer_info
    SET fee_paid = '#form.fee_paid#',
    fee_amount = #form.fee_amount#,
    receipt = '#form.receipt#',
    staff_lname = '#form.staff_lname#',
    staff_fname = '#form.staff_fname#',
    staff_ph_ext = '#form.staff_ph_ext#'
    WHERE cust_id = #form.cust_id#
    </cfquery>
    <body>
    <cfoutput query="change">
    You <strong>edited</strong> the record for
    <strong>#first_name# #last_name#</strong>.
    </cfoutput>
    </body>
    </html>

  • Updating checkbox in realtime based on other table

    Hi All,
    using apex 2.2.1, database 10.2.0.3
    I have a check box that I want to update based on the user selecting a radio box. e.g. Once the user has updated the radio box the checkbox is either switch on or off.
    I understand this needs to be done via a javascript but the issue I'm facing is that I need to do a SQL statement to get the the correct value as it is on another table.
    cheers
    James

    After doing more searching I'm pretty sure I need to call PL/SQL in a javascript. I'm new to all this and the only examples seem to complicated to understand.
    I'm sure someone has done this before. I would be gratefull if some could post their PL/SQL and the javascript / AJAX into this note so I can reverse engineer it.
    cheers
    James

Maybe you are looking for

  • Null value in poplist

    Hi, I'm using forms6i, I'm having a poplist in my form, which i populate in when-new-form-instance. So when i open the form, and try to select one value, i'm seeing one null value, and if i select one value from list and again try to change the value

  • Can someone tell me what the "Auto Fix MRDVR" will do?

    Verizon techs have given me different answers on this. One said I will lose recordings on the DVR. He also said that it effectively reformats the DVR so it will not recognize my external drive after running the auto fix. Another said it is basically

  • Why is the camera on my ipod touch 5 such low quality?

    When I take a photo of something, it is fairly blurry. However, when I tried taking a picture on my brother's IPod, it was able to focus properly and gave me great results! Does anyone know how to fix this?

  • Change Masterpage by Clicking Checkbox

    Hello out there, i got a little problem. I have 2 checkboxes in my form and will change a textfield in the masterpage when I change the value of this checkbox. When I use a button to change them - it works. xfa.host.messagebox... shows me the right v

  • Help with Catalyst 2950 G

    Hi, I have a doubt about the Catalyst 2950 series, i need to pass both IP and OSI traffic trought a 2950 switch. Is it supported? Thanks