Update database using check boxes

I have a query region that produces a checkbox and an associated line with the checkbox. The data in the database that is a "Y", produces a checked box.
select check_box_seq,
htmldb_item.checkbox(1,is_it_checked,decode(is_it_checked,'Y','CHECKED')) D,
check_box_text R
from check_box_tbl
What I need to happen is to change one or more check boxes. I have a MultiRow Update process, with a process point of On Submit - After Computations and Validations with a PL/SQL conditional processing of:
FOR I in 1.. HTMLDB_APPLICATION.F_F01.COUNT LOOP
update table check_box_tbl set is_it_checked = Y
where check_box_seq = htmldb_item.application.g_f01(i);
END LOOP;
But the data in the database does not change. I have read numerous discussion on this thread but I have not found exactly what I need or can not recognize it.
How can I get the data in the database to change when I either change a checked box or after I have changed all boxes and then press the SUBMIT.

I am having a similar problem that I cannot find the answer to. (See my process below). I don't think that the process is "grabbing" the checked values in the SDN column. It is using NULL, so therefore no rows are being inserted in the table. Shg_id and SDN are both primary keys in this table, so I need to insert both. Shg_id has an assigned value already.
My process is this:
DECLARE
l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P312_SDN);
FOR i IN 1..l_selected.count
LOOP
INSERT INTO shgm (Shg_id, SDN)
VALUES (:P312_Shg_id, l_selected (i));
END LOOP;
END;

Similar Messages

  • Use check box for report and form

    Hi Expert,
    I try to use check box to select multiple rows in a report and then click on a button to go to a form on another page to choose some values from the form and then do a mass update for records selected in reports.
    I read the "How to Work with Check Boxes" in 2 Day Developer guide, it works fine to select mutiple rows in report and do update with process in that report page.
    However, if I click on a button to go to another page which contains a form, seems the values stored in the package array are cleared and not passed to that page.
    Do you know how I could make this work?
    Thanks a lot,
    Jessie

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

  • How to display another window by using Check box

    Hi Friends,
    I have one doubt in Webdynpro with java. How to display another window by using Check box?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in Second View. So in Second View I will taken Table that data will displayed in rows. each and every row first check box is available.
    Here Select Check Box of particular row then click Edit button. That row data will be displayed in one popup window.
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    empid, name, sal ,firstname, last Name
    Suppose I have to select check box in First Row Click on EDIT button That row data will be displayed in another popup window here customer will change details depending up requirement click on SAVE Button that update data will saved in ECC System.
    How to display another window by using Check box?
    Regards
    Vijay

    Hi Vijay
    Your question is not clear enough to give an answer. Do you have some difficulties with the code for opening a popup-window? There are many-many examples in the forum how to open/close a popup.
    Or you do not know how to bind the popup opening with clicking a check box? Just put the code in the onSelect event handler of the check box.
    BR, Siarhei
    Edited by: Siarhei Pisarenka on Mar 11, 2010 10:55 AM

  • How to use check box & dropdownlist in smart forms

    can anybdy explain(any examples) how i can use check box or drop down list in smart forms.is ther any provision like that

    Hi Ranjith,
    To use Check box in smartform do the following:
    Change the editor to 'PC Editor' and take the menu.
    in text editor of TEXT ELEMENTS..
    Insert -> Characters -> SAP Symbols
    in print preview u can't see these changes..
    for more details check this link..
    How to create checkbox in smartforms??
    Ashven

  • How to use check box in flash 8?

    How to use check box in flash 8?

    If you want it to happen when someone clicks the checkbox, then you need to add a listener for that event.
    var cbListener:Object = new Object();
    cbListener.click = function (evt:Object) {
        if (cb.selected) {
              gotoAndStop(2);
    cb.addEventListener("click", cbListener);
    (Note: "cb" and "cbListener" are names that were made up for this example.  They could be anything you want to name them)

  • Using check boxes appear as a "tick" and I want a "X"

    Hi guys - new user to Adobe Forms (MAC Adobe Acrobat XI) - I have used check boxes in my first form however when I check them they appear as a "tick" and I want a "X" - I went to the properties section and tried all the options (circle, etc) but it always came back as a tick - any suggestions?

    Thanks George - whilst I've used Dropbox for a couple of years now this is the first time I have shared a file (which you should have received directly to your email - I'm sorry to say I wasn't sure how to post the link in this forum! (once again a bit clueless on my part)
    Interesting however since I tested the process by sending to my work PC (WIN7) and the boxs have crosses in them! so the problem appears to be with my set up on my home mac (OSX 10.9.4). Really I should have thought to do this first before asking!
    Any thoughts?
    Cheers

  • H ow we use check boxes in report

    how we use check boxes in report(alv,intrective)

    Hi,
    In the basic list we will display the Check box, once the check box is clicked then the recrod information should be displayed in the secondary list. so we will give the Check box for every reocrd then what ever we select the checkboxes. then we shoild provide the info of those records
    Reports with checkbox
    Regards
    Sudheer

  • Unable to check multiple use check box for BADI

    Hi,
    In ECC 6.0, when I am trying to activate the multiple use check box ( For multiple implementation of BADI ) , it is not allowed me the same.
    Throwing the error as - interface IF_EX_TAX1_XTXIT_SET can not be used.
    BADI name - BADI_TAX1_XTXIT_SET
    Can anyone pls help me how to do this.
    Thanks,
    Shakti

    Hello Sakti,
    I am also in ECC6.0 & if i see the definition of the BAdI BADI_TAX1_XTXIT_SET, "Multiple Use" checkbox is checked! What are you trying to do - trying to create an implementation?
    @Prabhu: Although the BAdI is "multiple-use", but there is not filter applied to it. Next time do your checks properly before replying
    BR,
    Suhas

  • Validating forms using check boxs

    hi i am trying to validate a form using check boxs where all of the elements have the same name. Using the code below it enables validation when only one check box is available, however with muliple check-boxs it goes into and eternal loop and never executes the code! Any help on this matter would be most appreciated.
    <SCRIPT language="javaScript">
    function validate()
    if (!document.myform.pkey.checked)
    alert("Please Select a Questionnaire to delete!!");
         return false;
    </SCRIPT>

    Hi,
    When you have multiple checkboxes with same name, it will form an array of check boxes. So you have to validate them as below.
    flag=0;
    if(chkcntr>1)
    for(i=0;i<frm.ch.length;i++)
         if(frm.ch.checked)
    flag=1;
    break;
    else
    if(frm.ch.checked)
    flag=1;
    if(flag==1)
    //checkbox selected,can give any action
    else
    // checkbox not selected,give alert

  • Updation/insertion of multiple records simultaneously using check box

    Hi,
    I am using Jdev11.1.1.2.0 version. I have the following scenario.
    There is a table in the view.At run time, I need to select multiple records and update those records in the database. So i took check Box as a column in the table.*(I did not associate check box to any of the attributes (columns) in the table.)* After running the application, I selected multiple records using checkbox and submitting them. The check box is returning value as 'false' even for the selected records also instead of 'true'. Because of this we are facing the issue in updating only the selected records. Please suggest your valuable inputs.
    I have written the following code in the backing bean to get the selected rows.
    BindingContainer bindings =BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcIter= (DCIteratorBinding) bindings.get("PttDeliverabvleTrackerEOView2Iterator");
    RowSetIterator depRSIter = dcIter.getRowSetIterator();
    depRSIter.setRangeSize(depRSIter.getRowCount());
    Integer key = depRSIter.getRowCount();
    System.out.println("No of rows is "+ key);
    int rowIndex =0;
    for(int i =0; i<key; i++){
    PttDeliverabvleTrackerEOViewRowImpl row = (PttDeliverabvleTrackerEOViewRowImpl) depRSIter.getRowAtRangeIndex(i);
    System.out.println("Check box value2 "+ this.getSbc1().isSelected());
    if(this.getSbc1().isSelected()){
    rowIndex = i;
    System.out.println("Row Index: "+ rowIndex);
    Please let me know if it is it possible to associate a checkbox to any of the attributes while dragging and dropping the table in the view and update the records?
    I tried selecting the option 'Row Selection' while dragging and dropping the table and changed the property RowSelection->multiple. But it is not serving the purpose of updating multiple records.
    Please suggest if there is any other solution to update multiple records.
    Regards,
    Sreelatha.

    Hi,
    if you added checkboxes to a table, then at runtime the checkbox is stamped, which means that a call to this.getSbc1().isSelected() just returns the state of the last checkbox that is rendered. I don't want to go into the details of ADF Faces table rendering here, but point yu to a blog article that does what you are aiming for using ADF BC: http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Frank

  • How i can Insert selected records in database table using check box.

    Hi Friends,
    I have non database block, which displayed multiple records, now I add a Check Box to this block and now I want to insert the records in a database table which I checked. So when I press a button, all the checked records are inserted in the table.
    Please send me the code of this solution.
    Thanks in advance.
    Shahzad

    I have almost the exact scenario but instead of inserting into the DB, I want to find the Checked records and process them in PL/SQL script.
    I currently have a cursor that looks for all the checked records. It's only getting the first record, so I figured I need to loop through the block looking for checked records.
    Also can I save them to a temp or PL/SQL table to process later?

  • How to update field when check box checked

    Hi All,
    I am using oracle Forms 10g,
    I have a block with 20 fields.So first 10 Fields are not updatable and remaining are Editable. So the user will enter the Data and changes the data.And check the Check box and save the data.
    Inside the save button i have written the update code.
    When the user Edit two or three records and click three Check box and click the save button only one record is getting entred in my custom table.
    This is my code please correct me where i went worng.
    This is my code inside my button
    declare
    Begin
    If :ASSEMBLIES_BLOCK.CHECK_IN_OUT='Y' THEN
    IF SHOW_ALERT ('UPDATE_ALERT') = alert_button1 THEN
    LOOP
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
    NEXT_RECORD;
    END LOOP;
    STANDARD.COMMIT;
    fnd_message.set_string ('Transaction Saved Successfully');
    fnd_message.show;
    ELse
    NULL;
    END If;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    NULL;
    WHEN OTHERS
    THEN
    NULL;
    END;
    I have write a procedure in program unit.
    XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGOSTICS_UPDATE
    Assemblies block is my current block that user enter the data and click the check box and save the data.
         Update XXTLX_PO_ASSEMBLIES set CASE_NO=nvl(:assemblies_block.CASE_NO,Null),
              PACKAGE_TYPE=nvl(:assemblies_block.PACKAGE_TYPE,null),
              PACKAGE_QTY=nvl(:assemblies_block.PACKAGE_QTY,Null),
              GROSS_WT=nvl(:assemblies_block.GROSS_WEIGHT,Null),
              OPI_DATE=nvl(:assemblies_block.OPI_DATE,Null)               
              Where ponum=:DETAIL_BLOCK.PO_NUMBER
              AND PO_LINE_NUM=:DETAIL_BLOCK.LINE_NUM          
              AND BOM_NO=:assemblies_block.BOM_NO;
    So when we click the multiple check box and save the data only one data is entering.
    Thanks & Regards
    Srikkanth

    I guess I don't understand.
    >
    ... my requirement is only the checked fields need to get updated. If in a block there are 10 records means ill update only the 3rd and 4th record and then click the check box.. and then ill click the save button.
    >
    Is this block a database block or a non-database block? If it is a database block then Oracle can handle updates to that block for you because if keeps tabs if a record was updated or not and you wouldn't need to do an UPDATE statement.
    If it is a non-database block, and you are looping through each record and only updating the items that have checkboxes next to them you would still have to go to the first record then step through each record and see if it needs to be updated. I am just guessing here because I don't think I have a good grasp on what you are doing, but you could change your XXTLX_PO_LOGOSTICS.XXTLX_PO_LOGISTICS_UPDATE package to only update the items that have checkboxes next to them, by checking each checkbox:
    -- Check Case No
    if nvl(:assemblies_block.chase_no_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set case_no = :assemblies_block.case_no
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Type
    if nvl(:assemblies_block.package_type_check,'N') = 'Y' then
      update xxtlx_po_assemblies
         set package_type = :assemblies_block.package_type
       where ponum = :detail_block.po_number
         and po_line_num = :detail_block.line_num
         and bom_no = :assemblies_block.bom_no;
    end if;
    -- Check Package Qty
    .

  • How to get selected row values in a table using check box

    Hi ADF Experts,
    JDEV Version 11.1.1.7.0
    My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
    Thanks,
    Animesh

    Hi,
    add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
    Frank

  • Why did auto update stop working - check box greyed out!

    I suddenly realized it had been months since I had seen an update at home, but was getting them regularly on my office machine. Checking help about I found I was running 3.0.6, I tried to click the check for updates and it was greyed out. Checking options/advanced/updates I found the box was checked but greyed out.
    I had turned off checking for updates in my wife's account as she has no privilege and is not computer literate. I run my account without privileges but provide admin password when requested.
    My solution obviously was to download the current version (3.6.11) and no longer are any boxes greyed out.
    Question is - have I set up Netscape in a way that will result in the problem reoccurring?

    None taken. Firefox is built off what used to be the Netscape browser; common parentage.
    You might need to login to an admin account to update Firefox with Win7, but that's purely conjecture. 3.0.6 is so old that I wouldn't worry about it anymore; see if 3.6.11 updates automatically or from the Check for Updates menu item once 3.6.12 is released.

  • Problem Using Check Box in a Report

    Hi all,
    I have a simple SQL report with a check box.The problem is when paginating forward and backward in the report(Next and Previous),The report region is refreshed and all the check boxes is reset to unchecked.
    P.S: I'm using APEX 4.0.
    Any Help will be appreciated,
    Ola

    Ola,
    If you search the forum, you will find lot of discussions on this issue..
    In nutshell, solution is -
    Case 1: If you have enabled partial refresh for your report ( pagination works through AJAX)
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, update/store all the checked check-boxes info in JS variable or array.
    c. Bind a JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on JS variable/array value(s) to pagination onClick event.
    Case 2: If you have not enabled partial refresh for your report
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, store the check-box status in any hidden_item and insert its value into session with dummy AJAX call.
    c. On page load call JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on hidden item value(s) .
    Hope it helps.
    Regards,
    Hari

Maybe you are looking for

  • Crystal Report layout, best practice

    SAP B1 8.81 I'm having only spotty success with CR layouts and I've experimented quite a bit. What I'd like to do is extensively modify 1 system Crystal Report and then bring it in as a layout, and apply it to AR Item Quote, Order, DN, Invoice, and R

  • Firefox 4.0.1 keeps opening my new tab as Yahoo, can I change it?

    It opens fine, right to my homepage, but after that when I try to open a new tab it opens as "Yahoo! Search - Web Search". I want it to open as a blank page but I don't know how to change it, I tried NewTabURL 2.2.2 but even that didn't work. Does an

  • Can't save as template because "can't export as template"

    I am trying to save a document as a template.  I believe I followed all the correct steps. I then used "save as template". I saved to the correct folder:~/UserFolder/Library/Application Support/iWork/Pages/Templates/My templates I keep getting this e

  • Can't upload pictures to facebook since newest upgrade of firefox, but IE works fine

    I notice after firefox recently upgraded, that I can't upload pictures to my facebook pages.. anywhere.. profile, events, albums...after hitting the upload button I just get the "wait" rotating icon, and I have to change pages to get away from that.

  • Waiting for USB to initialize... during installation

    Dear All... I have a problem trying to turn my PC into real time target, I'm trying to install RT system from USB Stick but the program stops with communicate "Waiting for USB to initialize..." I've read the manual and tried to unplug and plug again