Checkbox functionality

I have a window in my form that is suppose to open when a checkbox is marked. It does this by having a WHEN-CHECKBOX-CHANGED trigger on the checkbox item. In its PL/SQL block it has an if statement that says if the checkbox is marked then open the window. (This block compiles fine.) I am unable to narrow down what my problem may be, so my question is this: Can I open a window through a checkbox, or does it have to be a button. Thanks in advance.

Thanks Jose for your response. What exactly do I need to get my new window to show? ...below is my current code (not working) for my WHEN-CHECKBOX-CHANGED trigger:
IF :PRINT_CONTROL.EMAIL = 'Yes' THEN
     APP_CUSTOM.open_window('EMAIL_OPTIONS');
     HIDE_VIEW('PRINT_OPTIONS');
     SHOW_VIEW('EMAIL_OPTIONS');
     :PRINT_CONTROL.SAVE_OUTPUT := 'Yes';
END IF;EMAIL_OPTIONS is the window I wish to open. PRINT_OPTIONS is the window I want to change the focus away from. PRINT_OPTIONS is still not my main form, will that complicate things?
I am on Forms 6i.

Similar Messages

  • A quick question about the htmldb_item.checkbox function

    I know many posts about checkbox have been posted, yet I couldn't find the answer after some searches.
    I have something like:
    select
    htmldb_item.checkbox(1, col_name)
    from...
    What I need is to have is the the heading of the checkbox column same as what the wizard does. I mean you can 'check all' with that. If I put a string after the right parentheses, I got that string rendered as the name of the checkbox column, which was not I want.
    I couldn't find the answer from the document, neither from the how-to.
    Thanks in advance.

    What I need is to have is the the heading of the
    checkbox column same as what the wizard does. I mean
    you can 'check all' with that. If I put a string
    after the right parentheses, I got that string
    rendered as the name of the checkbox column, which
    was not I want.
    I couldn't find the answer from the document, neither
    from the how-to.Do you want a checkbox as the header for the checkbox column? So you can check/uncheck all the checkboxes? If so, this is addressed directly in the how-to.
    If this is not what you want I don't understand exactly what it is that you're attempting. Perhaps some elucidation would be in order?
    Earl

  • Checkbox function -- need singular ability

    I have a 4 GB ipod. My music in Itunes is much bigger. I want to use the checkbox to have songs in library moved to ipod with appropriate playlist (etc) groupings that I lose on the ipod if I use an 'ipod folder' synch method.
    But I don't want the checkbox to prevent me from playing music in random mode in itunes.
    Any ideas?
      Windows XP Pro  
      Windows XP Pro  

    hmmm, I get by artist and album, but not by playlist because I have but one playlist to synch from (my ipod, for example). that's why I thought the check/uncheck would be the best. What I will end up doing is creating a playlist which are the songs on my ipod. When playing library, I will have entire music library checkboxed. I can uncheck the entire library and then go into the playlist to check those items that are on my ipod (which will check only those items in my library). From there I can check/uncheck for synching by checkbox (and thus get my playlist breakdown) and then delete items in ipod playlist and refresh with new added and removed entries. Disconnect ipod and then recheck entire library for use on computer.
    Very manual, but that's the only way I can think of doing it without restructuring my playlists (to genre, for example)
    That checkbox should be optionable for synching; playing songs; or both.
    too bad
      Windows XP Pro  

  • Checkbox in report

    I am trying to duplicate (somewhat) some an idea presented by Denes
    http://htmldb.oracle.com/pls/otn/f?p=31517:123
    in his excellent example, but I cannot seem to get a handle on his update process is doing:
    See some of my confusing comments inline:
    -------------code starts
    DECLARE
    vrownumber BINARY_INTEGER;
    vfound BOOLEAN;
    BEGIN
    -- update new checkboxes
    FOR ii IN 1 .. HTMLDB_APPLICATION.g_f07.COUNT -- your checkbox
    LOOP
    vrownumber := HTMLDB_APPLICATION.g_f07 (ii);
    -- only if checkbox hasn't been checked before
    IF NVL(HTMLDB_APPLICATION.g_f06 (vrownumber), '0') <> 'Y'
    THEN
    UPDATE emp_garbage
    SET check_char = 'Y'
    WHERE empno = HTMLDB_APPLICATION.g_f01 (vrownumber);
    END IF;
    END LOOP;
    -- remove old checkboxes
    FOR ii IN 1 .. HTMLDB_APPLICATION.g_f06.COUNT --why is this used?
    LOOP --
    -- only if the checkbox was already set
    IF HTMLDB_APPLICATION.g_f06 (ii) IS NOT NULL
    THEN
    vfound := FALSE;
    FOR jj IN 1 .. HTMLDB_APPLICATION.g_f07.COUNT -- your checkbox
    LOOP
    -- is the checkbox still checked?
    IF HTMLDB_APPLICATION.g_f07 (jj) = ii
    THEN
    vfound := TRUE;
    EXIT;
    END IF;
    END LOOP;
    IF NOT vfound
    THEN
    UPDATE emp_garbage
    SET check_char = 'N'
    WHERE empno = HTMLDB_APPLICATION.g_f01 (ii);
    END IF;
    END IF;
    END LOOP;
    -- do the rest of the update
    FOR i IN 1 .. HTMLDB_APPLICATION.g_f01.COUNT
    LOOP
    --are these references to column numbers? 
    --if so, does it matter if they are hidden or not?
    UPDATE emp_garbage
    SET ename = HTMLDB_APPLICATION.g_f02 (i),
    job = HTMLDB_APPLICATION.g_f03 (i),
    sal = HTMLDB_APPLICATION.g_f04 (i),
    comm = HTMLDB_APPLICATION.g_f05 (i)
    WHERE empno = HTMLDB_APPLICATION.g_f01 (i);
    END LOOP;
    COMMIT;
    END;
    ------------------code ends
    More questions: Are the HTMLDB_APPLICATION.g_f?? values dependent on the query order or the order that is displayed in the report?
    Denes is using a field check_char to hold the value, and I am using a field called approval. I also do not want fields (other than the 'approval' field to be updateable from the [updateable] report. Denes is using updateable fields in his example, and if I set a field to be a report field rather than editable, the app breaks. Why?
    I have read the documentation on the checkbox function, but it does not help a lot; and I have not found other explanations in this forum.
    thanks in advance!
    Mike
    P.S. Would it be possible to combine the click event in the checkbox to automatically post the change in the db? Presuming that this takes javascript, is this type of thing hard to do?

    Mike,
    irst I am wondering what version of Apex and Oracle
    you are using as the example you are phising around
    in was written for Apex 2.2 (HTML DB). 3.1
    >
    You should not have any issues but it is good
    practice to recode the HTMLDB_APPLICATION to
    Apex_APPLICATION.
    agreed.
    Specific to your questions: Are the
    HTMLDB_APPLICATION.g_f?? values dependent on the
    query order or the order that is displayed in the
    report? I am not sure what you mean by order that is
    displayed, but if you mean the position of the item
    .g_f(#) then yes. This refers to the position in the
    field, example your query has 6 outputs labeled
    1 = .g_f01
    2 = .g_f02
    3 = .g_f03
    4 = .g_f04
    5 = .g_f05
    6 = .g_f06
    As to the next question, "I also do not want fields
    (other than the 'approval' field to be updated from
    the [updated] report. Denes is using updated fields
    in his example, and if I set a field to be a report
    field rather than editable, the app breaks. Why?" What I meant about the order is that you can change the display order in the report (select the report attributes tab from the report region and toggle the display order) and not change the order in the original query. Is it the query order or the display order that matters? As for the example report itself, I refer you to Denes' example. He has 10 fields total, and 6 are editable, two are hidden.
    I would actually need to see how you have written this
    portion of the query as for myself I would have the
    querried and displayed normally and not address it as
    .g_fXX.
    I have not written it...
    Here is the query from Denes application:
    SELECT empno, empno empno_display, ename, job, sal, comm, check_char,
    HTMLDB_ITEM.checkbox (7,
    '#ROWNUM#',
    NULL,
    DECODE (check_char, 'Y', '#ROWNUM#')
    ) check_box, check_char checkbox_display
    FROM emp_garbage
    and ot your last question;
    P.S. Would it be possible to combine the click event
    in the checkbox to automatically post the change in
    the db? Presuming that this takes javascript, is this
    type of thing hard to do?
    Yes is the simple answer, you have the option under
    the edit region to allow an end user to update the
    form as well as write into the code the option to
    update the Database directly with something as simple
    as a button.
    Hope this helps,
    Randy

  • Use of Checkboxes on reports

    Hi
    I am using the HTMLDB_ITEM.CHECKBOX function. It works fine in the report, as below;
    SELECT
    "POOL_CARS"."ID" "ID",
    "POOL_CARS"."REG_NUM" "REG_NUM",
    "POOL_CARS"."MAKE" "MAKE",
    "POOL_CARS"."BHP" "BHP",
    "POOL_CARS"."PURCHASE_DATE" "PURCHASE_DATE",
    "POOL_CARS"."MODEL" "MODEL",
    "POOL_CARS"."COLOUR" "COLOUR",
    "POOL_CARS"."STYLE" "STYLE",
    "POOL_CARS"."PRICE" "PRICE",
    "POOL_CARS"."AVAILABLE" "AVAILABLE",
    HTMLDB_ITEM.CHECKBOX(1,"AVAILABLE",
    DECODE(AVAILABLE,'Y','CHECKED',null)) "Av ",
    "POOL_CARS"."DEPT" "DEPT"
    FROM
    "#OWNER#"."POOL_CARS" "POOL_CARS"
    I want to use the checkbox to cause an update to the table (set Avail to Y where the box is checked, and to N for all other rows). So I have then created a submit button and a process to be run as follows
    FOR I in 1.. HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE POOL_CARS
    SET available = 'Y'
    WHERE ID = to_number(HTMLDB_APPLICATION.G_F01(i));
    htp.p('debug' || HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    I have a few problems here.
    1. When the page is run the check boxes show up fine. When submit is pressed I get
    ORA-01722: invalid number.
    2. The line 'htp.p('debug' || HTMLDB_APPLICATION.G_F01(i));' does not seem to do anything !
    3. I do not understand how to connect the current line within the loop to an actual row as the where clause is not realistic.
    Can anyone help.? .

    Jelane,
    You have to reference the "ID" in your htmldb_item.chekbox api:
    htmldb_checkbox(1,"ID",.....
    Hope this helps,
    Jos

  • Apex report performance is very poor with apex_item.checkbox row selector.

    Hi,
    I'm working on a report that includes some functionality to be able to select multiple records for further processing.
    The report is based on a view that contains a couple of hundred thousand records.
    When i make a selection from this view in sqlplus , the performance is acceptable but the apex report based on the same view performes very poorly.
    I've noticed that when i omit the apex_item.checkbox from my report query, performance is on par with sqlplus. (factor 10 or so quicker).
    Explain plan appears to be the same with or without checkbox function in the select.
    My query is:
    select apex_item.checkbox(1,tan_id) Select ,
    brt_id
    , tan_id
    , message_id
    , conversation_id
    , action
    , to_acn_code
    , information
    , brt_created
    , tan_created
    from (SELECT brt.id brt_id, -- view query
    MAX (TAN.id) tan_id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created brt_created,
    TAN.created tan_created
    FROM (SELECT brt_id, id, to_acn_code, information, created
    FROM xxcjib_transactions
    WHERE tan_type = 'DELIVER' AND status = 'FINISHED') TAN,
    xxcjib_berichten brt
    WHERE brt.id = TAN.brt_id
    GROUP BY brt.id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created,
    TAN.created)
    What could be the reason for the poor performance of the apex report?
    And is there another way to select multiple report records without the apex_item.checkbox function?
    I'm using apex 3.2 on oracle 10g database.
    Thanks,
    Niels Ingen Housz
    Edited by: user11986529 on 19-mrt-2010 4:06

    Thanks for your reply.
    Unfortunately changing the pagination doesnt make much of a difference in this case.
    Without the checkbox the query takes 2 seconds.
    With checkbox it takes well over 30 seconds.
    The second report region on this page based on another view seems to perform reasonably well with or without the checkbox.
    It has about the same number of records but with a different view query.
    There are also a couple of filter items in the where clause of the report queries (same for both reports) based on date and acn_code and both reports have a selectlist item displayed in their regions based on a simple lov. These filter items don't seem to be of influence on the performance.
    I have also recreated the report on a seperate page without any other page items or where clause and the same thing occurs.
    With the checkbox its very very slow (more like 20 times slower).
    Without it , the report performs well.
    And another thing, when i run the page with debug on i don't see the actual report query:
    0.08: show report
    0.08: determine column headings
    0.08: activate sort
    0.08: parse query as: APEX_CMA_ONT
    0.09: print column headings
    0.09: rows loop: 30 row(s)
    and then the region is displayed.
    I am using databaselinks in the views b.t.w
    Edited by: user11986529 on 19-mrt-2010 7:11

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Checkbox in a minus query

    Hello,
    I am trying to use the checkbox function in the following query to produce a report with a checkbox but it is not working correctly -- the query is fine, but does not work when I place the checkbox function within it:
    Select HTMLDB_ITEM.CHECKBOX(1,loginid) Grant,
    lastname || ', ' || firstname fullname
    from arxusers A
    where a.rec_status = 'A'
    minus
    Select a.loginid,
    lastname || ', ' || firstname fullname
    from arxusers a , arxaccess b
    where a.loginid = b.loginid
    and b.rpt_id = :id
    and a.rec_status = 'A'
    Says from keyword not found where expected -- Can you not use the checkbox with a 'minus' SQL query

    Can anyone please help me with this -- I even changed my query to a 'not exists' and I still get the same, 'From keyword not found where expected' error. Is the checkbox function in a report limited to just basic SQL report queries? That does not make sense. Here is my new query getting the same error:
    SELECT HTMLDB_ITEM.CHECKBOX(1,a.loginid) Grant,
    a.lastname || ', ' || a.firstname
    from arxusers A
    where a.rec_status = 'A'
    and not exists (
    select 'Y'
    from arxaccess b
    where a.loginid = b.loginid
    and b.rpt_id = :id)
    Any help would be great.
    Thanks,
    Jeff

  • Having some trouble with hidden and checkboxes on tabular forms

    My query is as follows:
    select distinct tt.name tasktype,ct.name costtype,htmldb_item.checkbox(3,1,NULL,'Y:N',':') "Add Cost", htmldb_item.text(4,defabscost,9) defabscost,
    htmldb_item.hidden(5,tt.tasktypeid) tasktypeid, htmldb_item.hidden(6,ct.costtypeid) costtypeid
    from acct.defabscost d
    inner join work.tasktype tt
    on d.tasktypeid = tt.tasktypeid
    inner join acct.costtype ct
    on d.costtypeid = ct.costtypeid
    I have it wrapped within a function, which works fine. My issues are that I want to have the checkboxes function as row selectors. Basically, not pointing to primary keys (I have a compound primary key on this table). If selected, fill in the table, if not selected, erase from table. Also, My hidden items kinda contain the "primary keys". When I set these as hidden, I see the column, but there is no data. I don't want to see the columns at all, but when I set these to "hidden" in the attributes, I can't reference them with htmldb_application.g_FXX. Any suggestions?

    I actually figured out how to get the htmldb_item.hidden part working properly. I misread the guide, thought it was a comma between fields and not a concatenation. Works fine. But I still need to get the checkbox to work like I want.

  • Checkbox as a query item - how do I get its value into my SQL

    I have a search region where the user enters some parameters to filter the records returned from the query. I have a checkbox that represents Active or Inactive. I created it using the APEX_ITEM.CHECKBOX function. So if checked I want the sql to order by Active records else if unchecked to order by inactive records after they press the submit button. So how do I get the checked or unchecked value from this checkbox into my SQL query.
    Message was edited by:
    ca114422

    You can have a look here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:99
    There is an example on how to include various item values
    into your query.
    By the way, what is your name?
    Denes Kubicek

  • Detaliate report with checkbox

    So I made a report of a table on a page, but i have selected only a few columns 3/7. Now, i want that using checkboxes (or radio?) i want to select a specific line and then take me to another page to see the whole report only of that selected line 7/7. Can I do such thing?

    Hi
    OK - My reports are on two pages - 109 (partial report) and 110 (full report).
    The SQL query for the report on 109 is:
    SELECT APEX_ITEM.CHECKBOX(1, EMPNO) SHOW_DETAILS,
    EMPNO,
    ENAME,
    JOB
    FROM EMPThe SHOW_DETAILS column creates the checkboxes with the EMPNO as their values. Because I'm using the APEX_ITEM.CHECKBOX() function to create these, when the page is submitted I then have access to the APEX_APPLICATION.G_F01 collection (in a similar way to using a tabular form). I get the EMPNO values selected using a PL/SQL process on the page:
    DECLARE
    vFILTER VARCHAR2(1000);
    BEGIN
    vFILTER := APEX_UTIL.TABLE_TO_STRING(APEX_APPLICATION.G_F01);
    APEX_UTIL.SET_SESSION_STATE('P110_FILTER', vFILTER);
    END;This just converts the collection into a single string and sets an item on page 110 to this. This string will be in the format 1:2:3
    There is a button that triggers the process and then a branch to page 110
    On page 110, the report's SQL is:
    SELECT EMPNO,
    ENAME,
    JOB,
    MGR,
    HIREDATE,
    SAL,
    COMM,
    DEPTNO
    FROM EMP
    WHERE ':' || :P110_FILTER || ':' LIKE '%:' || EMPNO || ':%'The report region also contains the "Hidden and Protected" item called P110_FILTER - this is populated using the process on page 109 and used as a filter on the report on page 110
    There is a back button to go back to page 109 - this also clears the cache for page 110
    Andy

  • HTMLDB_ITEM.CHECKBOX and Multiple Pages

    Hi
    I have used a SQL query as a source for a region and I generate checkboxes dynamically using HTMLDB_ITEM.CHECKBOX function. Everytthing works fine as long its in one page. When I set the pagination to show only 15 rows per page and when I click save from the second page (showing rows 16-30) the value of HTMLDB_APPLICATION.G_F01.COUNT becomes zero. And the values of the checkboxes are not recognised. Is this a known issue and any solutuion to it?

    Hi,
    two part question:
    Do I need to pass session state from page to page in the same application? (I do not think so, but I am not sure)
    secondly do you know why this code
    for i in 1..htmldb_application.g_f01.count
    loop
    if htmldb_application.g_f01(i) !=0 then
    :P14_INFO_ID := htmldb_application.g_f25(htmldb_application.g_f01(i));
    end if;
    end loop;
    in which I am trying to get 1 column for the row that is checked
    would result in this in the debugger:
    ...P14_INFO_ID session state saving same value: "" indicating that the session state for that column was not saved?

  • Call function inside running class

    Hey All,
    i have a two question in classes.
    1- i have class and i called its before and its running on runtime. i need to call function inside this class from another class, but without call the first one again, because if i called it, it will run default class function again
    is this doable ?
    2- What super() mean ?
    Thanks a lot.

    this is the default call, and when i call the method by this way its will run the default class function before call the method.
    here my example:
    i need to call checkboxes  function in ChannelsMain class without pass by the grey script.
    Note: the call_cb is working and the trace is working
    so i now the class is running, i need to call the checkboxes without ( var ci:YourClass = new YourClass(); )
    package com.link
         import fl.controls.CheckBox;
         import flash.events.*;
         public class ChannelsMain
              var cbLength:uint = Main.PV.channel_id.length;
              public function ChannelsMain()
                   // constructor code
                   for (var i:int = 0; i < cbLength; i++)
                        var cb:CheckBox = new CheckBox;
                        cb.name = Main.PV.channel_id[i];
                        cb.label = Main.PV.channel_name[i];
                        cb.x = 50;
                        cb.y = 50 + i * 30;
                        cb.addEventListener(Event.CHANGE,call_cb);
                        Main.MS.addChild(cb);
                        //call xml function
                        if(i == cbLength - 1)
                             new ChannelsXML();
              private function call_cb(evt:Event)
                   trace(evt.currentTarget.name,evt.currentTarget.selected);
              public function checkboxes(evt)
                   trace(evt);

  • Checkbox in Report printing

    hi all i have a page report that can print single rows and print the entire table, my problem is my boss wants me to put an option in the page report where in i can select multiple rows and be able to print then at once. i read a portion pertaining to the checkbox function that can be added to a report but i am stuck with the printing option of the selected rows... pls help...

    Hello Mike,
    You should add a checkbox column to your report (using the APEX_ITEM.CHECKBOX procedure), which will return the PK of the checked record. For the emp table it will look something like this:
    select APEX_ITEM.CHECKBOX(1,empno) print_row,  ename, …. You must be sure that this column is the only one using the G_F01 array (and it being the first is not enough. If you have more updateable columns in this report, check their HTML names, one by one).
    Now you can defined an after submit process, which will be conditioned by your “Print” button. This process can set an application item to the value of your checked rows. You can use a similar code to the following:
    :CHECED_ROWS := apex_util.table_to_string(apex_application.g_f01);The following query will fetched only the checked rows:
    select * from emp
    where instr(':'||:CHECKED_ROWS||':',':'||empno||':') > 0The “Print” button should take you to a new page (using a conditioned branch) in which you have two options. The first is to create a pl/sql process that will create your hard copy report, using the HTP package. The other is to use the query as the report region source, and use the browser print screen option to print your report.
    Hope this helps,
    Arie.

  • Number of currently displayed rows in report with pagination?

    Maybe I'm thinking to complicated, but ...
    In my report I use the HTMLDB_ITEM.CHECKBOX function in order to display a checkbox for each row:
    HTMLDB_ITEM.CHECKBOX(1,"ID",NULL,:P311_ASSIGNED,':') " "
    Some of the checkboxes are selected depending on whether there is an entry for them in a database table.
    As the report returns hundreds of rows, I use pagination (e.g. 15 rows per page).
    After checking/unchecking the checkboxes and submitting the page by clicking the save button, I want to do the following: For each row CURRENTLY DISPLAYED on the screen (1) check, whether its checkbox is currently checked or not (2a) If it is checked and there is not yet an entry -> add row to the db table (2b) If it is unchecked and there is an entry in the db table -> remove row from db table.
    How can I, on the server side, find out which rows (row ids) are currently displayed (using pagination), so that I check each of the currently displayed row ids for their existence in the database table? Is there any item stored on the server side, which tells me the row number of the first row currently displayed? Is there an item I can refer to, which tells me the amount of rows, which are displayed on one page?
    Your help would be very much appreciated!
    Konrad

    Hi Konrad,
    I will jump in. :-) Just have a few minutes before a meeting.
    I think you don't have to make it that complicated, where you have to know the current pagination.
    1) Your HTMLDB_ITEM.CHECKBOX has to contain as checked value #ROWNUM# as the row selector would do it.
    2) You have to create a hidden item where you store your customer id
    3) create another hidden item where you store if the customer has already the assignment
    4) In your process you are now able to loop through your arrays.
    DECLARE
        vRowNumber BINARY_INTEGER;
        vFound BOOLEAN;
    BEGIN
        -- insert new event assignments
        FOR ii IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
        LOOP
            vRowNumber := WWV_Flow.g_f01(ii);
            -- no assignment yet?
            IF WWV_Flow.g_f03(vRowNumber) IS NULL -- your hidden field where you store if you have an assmnt
            THEN
                INSERT INTO xxx VALUES (WWV_Flow.g_f02(vRowNumber)); -- your customer id
            END IF;
        END LOOP;
        -- delete old event assignments
        FOR ii IN 1 .. WWV_Flow.g_f03.COUNT -- your hidden field where you store if you have an assmnt
        LOOP
            -- only if the event was already assigned
            IF WWV_Flow.g_f03(ii) IS NOT NULL
            THEN
                vFound := FALSE;
                FOR jj IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
                LOOP
                    -- is the event still checked?
                    IF WWV_Flow.g_f01(jj) = ii
                    THEN
                        vFound := TRUE;
                        EXIT;
                    END IF;
                END LOOP;
                IF NOT vFound
                THEN
                    DELETE xxx WHERE CUSTOMER_ID = WWV_Flow.g_f02(ii);
                END IF;
            END IF;
        END LOOP;
    END LOOP;Haven't tested the code, but I think it should show the idea.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

Maybe you are looking for

  • Error while releasing the Marketing Campaign Status

    Hi Experts, I have created a Campaign in CRM 7.0 and when i am trying to set its New Status to "Release"  (in edit mode) from the current status "Created" ,  the browser is directing me to an error page  "400 Bad HTTP request ".. Can some one suggest

  • CHARINDEX not working correctly

    I'm trying to run some simple TSQL using Charindex, but it never finds the text and always returns zero.  For example, the code below is searching for the text "NE" which does exist in the search text, but charindex stil returns zero.  Can anybody ex

  • My mini turns on when I "unhold" the button!!!

    Is this normal?? First, I turn the mini off. Then, I switch the hold button to the ON position to avoid accidental turning on. Then, I switch it back to the UNHOLD position. It turns ON afterwards!! Why?? (I thought in order to turn it on, the PLAY/P

  • HT201269 i want to transfer my iphone 4 contacts to a usb external memory

    i want to transfer my contacts to a usb external memory

  • Rebooting causes lack of ability to connect

    I made the switch to a MBP today after 13 years of windows. I have just about everything working great, except for some wireless issues. I have a linksys wireless router running WPA on channel 6 I setup the wireless network from the icon in the top b