Htmldb_application array count 0 when it shouldn't be

This was working until I made modifications to the application, i.e. tabs, menus and such. It uses a manually built tabular form - that part works and displays with correct values, but when I try to access the array with a loop it appears to be empty.
I also have an item P3_WHERE_CLAUSE that runs a similar loop to build a where clause for validation. I modified it to debug as shown below.
Any hints greatly appreciated - can't figure out how I broke it.
Here's the query for the tabular form:
select
htmldb_item.select_list_from_query(
1,key_id,
'select key_id, object_key from
val_object_key k,
VAL_OBJECT o
where o.object_name = :P3_OBJECT_NAME
and k.object_id = o.object_id') Key_id,
htmldb_item.select_list_from_query(2,object_key,
'select object_key, object_key from
val_object_key k,
VAL_OBJECT o
where o.object_name = :P3_OBJECT_NAME
and k.object_id = o.object_id') Key,
htmldb_item.text(3,'',50) Value
from VAL_OBJECT_KEY k,
VAL_OBJECT o
where o.object_name = :P3_OBJECT_NAME
and k.object_id = o.object_id;
Here's the code to save the page information (several items in a cascading form and then it loops to include values from the tabular form). The loop does not execute.
DECLARE P_KEY_ID NUMBER;
kvs_id NUMBER;
BEGIN
select prov_id.nextval into kvs_id from dual;
insert into key_val_set kvs_id values (kvs_id);
for i in 1..htmldb_application.g_f01.count
loop
insert into key_value (KV_ID,KEY_ID,KEY_VALUE,KVS_ID)
values
prov_id.nextval,
htmldb_application.g_f01(i),
htmldb_application.g_f03(i),
kvs_id)
end loop;
INSERT INTO PROV_INSTANCE
CLASS_ID,
SOURCE_ID,
DATE_OCCURED,
KVS_ID
VALUES
:P3_CLASS_NAME,
:P3_SRC_NAME,
:P3_DATE_OCCURED,
kvs_id
commit;
END;
Here's the test loop:
begin
:P3_WHERE_CLAUSE := 'begin test';
for i in 1..htmldb_application.g_f01.count
loop
:P3_WHERE_CLAUSE := 'where '||i;
end loop;
return :P3_WHERE_CLAUSE;
end;

Never mind - it was a page flow misunderstanding.

Similar Messages

  • FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT

    I cannot seem to get row processing (using G_Fxx.count) to work property.
    I have followed the HOWTO section to create an updateable report with a Checkbox. On Load, all checkboxes are set to UNCHECKED:
    SELECT X.OFFICER_ID
    , X.OFFICER_NAME_TX
    , X.OFFICER_TITLE_TX
    FROM (
    SELECT HTMLDB_ITEM.CHECKBOX(1,'N',NULL,'Y')
    || HTMLDB_ITEM.HIDDEN(2,OFFICER_ID) OFFICER_ID
    , HTMLDB_ITEM.TEXT(3,OFFICER_NAME_TX) OFFICER_NAME_TX
    , HTMLDB_ITEM.TEXT(4,OFFICER_TITLE_TX) OFFICER_TITLE_TX
    FROM CDIS_INV_OFFICER
    WHERE CORONER_CASE_ID = :P1_CORONER_CASE_ID
    UNION ALL
    SELECT HTMLDB_ITEM.CHECKBOX(1,'N',NULL,'Y')
    || HTMLDB_ITEM.HIDDEN(2,NULL) OFFICER_ID
    , HTMLDB_ITEM.TEXT(3,NULL) OFFICER_NAME_TX
    , HTMLDB_ITEM.TEXT(4,NULL) OFFICER_TITLE_TX
    FROM ALL_OBJECTS WHERE ROWNUM <= NVL(:P2_ADD_OFFICER_CNT, 0)) X
    I attempt to loop through the looped rows and upate the Officer Name and Title for those rows checked.
    BEGIN
    -- Loop through the rows that have been checked.
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    -- Update the Officer Name and Title if checked.
    CDIS$CDIS_INV_OFFICER_U.P_UPDATE_BY_OFFICER_ID
    ( HTMLDB_APPLICATION.G_F02(I)
    , :P1_CORONER_CASE_ID
    , REPLACE(HTMLDB_APPLICATION.G_F03(I),'%'||'NULL%',NULL)
    , REPLACE(HTMLDB_APPLICATION.G_F04(I),'%'||'NULL%',NULL)
    , :F118_STATUS_CD
    , :F118_STATUS_DESC ) ;
    END IF ;
    END LOOP;
    EXCEPTION
    WHEN OTHERS THEN
    :F118_STATUS_CD := '1' ;
    :F118_STATUS_DESC := SUBSTR((SQLERRM),1,2000);
    END ;
    If I check row 1 and 3 and hit the UPDATE button, rows 1 and 2 get updated. If I check rows 1, 3, 5, 7 and 9, then rows 1 to 5 get updated.
    From what I can determine, all that FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT holds is the count of the rows update. Then when I loop through, I update the FIRST X-many rows. So, if 5 rows are checked, the first 5 rows are updated.
    What exactly am I doing wrong?

    Vivek thanks for helping find the solution.
    I see that there are several threads on this topic – having to do with updateable reports, checkboxes and hidden columns (most likely the Primary Key or parts of the Primary Key). Maybe I should write a HOWTO, but here first is the solution for those that are currently experiencing this problem.
    First let me address the value contained within HTMLDB_APPLICATION.G_F01.COUNT:
    G_F01.COUNT contains the number of rows checked. It does not identify those rows. Meaning, if you have 3 rows checked this variable will contain the number 3. If you use this variable in a LOOP Statement (i.e. "FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT") the variable "i" will start at 1 and be incremented by 1 until it gets to 3. So, the values will be 1, 2 and 3.
    If you then reference HTMLDB_APPLICATION.G_F03(i), you will reference the 3rd column in the array for rows 1, 2 and 3. This is not necessarily the checked rows. Meaning if rows 1, 3 and 5 are checked and then HTMLDB_APPLICATION.G_F03(i) is referenced in the loop, the wrong rows will be referenced.
    The solution is "not to reference HTMLDB_APPLICATION.G_F03(i)" but instead "to reference HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i))".
    Within my Region Definition, I have:
    SELECT HTMLDB_ITEM.CHECKBOX(1,ROWNUM)
    _______, X.Officer_Name
    _______, X.Officer_Title
    FROM (
    SELECT HTMLDB_ITEM.HIDDEN(2,Officer_Id)
    ______|| HTMLDB_ITEM.TEXT(3,Officer_Name) Officer_Name
    ______, HTMLDB_ITEM.TEXT(4,Officer_Title) Officer_Title
    FROM  CDISINV_OFFICER
    WHERE Coroner_Case_Id = :P1_CORONER_CASE_ID ) X
    The Checkbox is stored in F01. The Hidden Primary Key is stored in F02 (if there were multiple columns in the Primary Key, one would have multiple hidden columns and multiple associated F##s). The updateable report columns are stored in F03 and F04.
    Within my "After Update" Process (On Submit – After Computations and Validations), I have:
    BEGIN
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    UPDATE CDIS_INV_OFFICER
    ____SET Officer_Name = HTMLDB_APPLICATION.G_F03(HTMLDB_APPLICATION.G_F01(i))
    _______, Officer_Title = HTMLDB_APPLICATION.G_F04(HTMLDB_APPLICATION.G_F01(i))
    WHERE Coroner_Case_Id = :P1_CORONER_CASE_ID
    ___AND Officer_Id = HTMLDB_APPLICATION.G_F02(HTMLDB_APPLICATION.G_F01(i)) ;
    END LOOP;
    Notice that I am referencing F03(F01(i)) and not F03(i).
    Instead of going F03(1), F03(2) then F03(3), I am actually referencing the rows associated with the checkboxes.
    This is how the Checked Rows (where the CHECKBOX is set to “Enabled”) are selected, via the ROWNUM stored within the Regional Definition.
    This solution works well.
    I hope you find my explanation helpful.

  • FOR i IN 1..htmldb_application.g_f01.COUNT LOOP

    Hello,
    I have created a report query as below
    SELECT
    ROWNUM,
    x.household_org_affil_id,
    x.hoaf_effective_date,
    x.hoaf_terminate_date,
    x.partner_organization,
    x.primary_type,
    x.relationship_type ,
    x.affiliated_person_id,
    x.chksum,
    x.del
    FROM (SELECT
    htmldb_item.hidden(1,household_org_affil_id) household_org_affil_id,
    wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
    wwv_flow_item.date_popup(3,NULL,vbhoaf.terminate_date) hoaf_terminate_date,
    htmldb_item.display_and_save(4,partner_common_name) partner_organization,
    htmldb_item.HIDDEN(5,affiliated_person_id) affiliated_person_id,
    htmldb_item.display_and_save(6,primary_type) primary_type,
    htmldb_item.display_and_save(7,relationship_type_dis) relationship_type,
    htmldb_item.md5_checksum(
    household_org_affil_id,
    vbhoaf.effective_date,
    vbhoaf.terminate_date) chksum,
    htmldb_item.checkbox(50, household_org_affil_id, (case when vbhoaf.terminate_date is null then 'DISABLED' else NULL end)) del
    FROM vb_household_org_affil vbhoaf
    JOIN vb_household_membership vbhm
    ON vbhoaf.family_household_id = vbhm.family_household_id
    JOIN vb_partner_organization vbpo
    ON vbpo.partner_organization_id = vbhoaf.partner_organization_id
    WHERE :P1580_AFFILIATED_PERSON_ID IS NOT NULL
    AND vbhm.affiliated_person_id = :P1580_AFFILIATED_PERSON_ID) x
    But if I am trying to loop as below
    FOR i IN 1 .. htmldb_application.g_f01.COUNT LOOP
    I am getting an error 'no data found' as like the array g_f01 does not exist. But If I am refering g_f02, that is ok but that is not the one I want.
    Can you anyone please help me to find what is wrong.
    Thanks in advance,
    Nattu

    Hello Nattu,
    Although it seems that your query is working in the way you wrote it, I believe it makes more sense (at least for me) that the use of the APEX API will be within the main query and not within the sub-query.
    In your case, as you created the household_org_affil_id column as hidden one, you probably don’t want to display it. Did you uncheck the “Show” attribute for this column? In this case the column don’t get to be POSTed, and the corresponding G_Fxx array will be empty.
    In order to correct that, and still get a presentable report, you need to concatenate the hidden column with a column you are displaying. This way the hidden values will be populated to the corresponding G_Fxx array. You can try something like this:
    SELECT ROWNUM
    htmldb_item.hidden(1,household_org_affil_id) ||
    wwv_flow_item.date_popup(2,NULL,vbhoaf.effective_date) hoaf_effective_date,
    from (select  x.hoaf_effective_date, . . .
               from vb_household_org_affil vbhoaf x
               where . . . )
    @ ines:
    There isn’t any problem to use G_F01 to accommodate a hidden column. The example in the documentation is doing just that - http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#sthref2857 .
    Hope this helps,
    Arie.

  • HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't

    HP OfficeJet Pro 8500 goes to sleep, but often wakes up when it shouldn't.  This happens over and over.  It used to sleep until I sent something to be printed. I now shut the printer down, but that takes a long time to start it up.

     When you finally get around to looking at my post, never mind.
    I reset the factory defaults on the printer and reauthorized my WiFi network.
    Now it is working.

  • Podcasts are syncing when they shouldn't be

    My iPod finally ran out of space so I wanted to remove some of the video podcasts from it. I have my podcast syncing set to sync the selected podcasts so I thought I could just uncheck the ones I didn't want to keep on my iPod and sync to remove them. That didn't work so I put my iPod in manual sync mode and removed them. I turned off the manual sync option and told it to sync again and it's copying all my podcasts (even the ones that aren't checked on the podcast tab). How do I make it stop so I can free up some space?

    Ok, I can confirm that the problem doesn't affect music playlists.
    I've also noticed that the files that get copied when they shouldn't take up more space than the ones that are supposed to be there. I noticed this by syncing, checking a podcast that was previously unchecked, then resyncing. It wasn't a lot of space, only around 10-25 mb.
    I've also found a workaround to get the files off my iPod. I have the "Sync only checked songs and videos" option checked on the summary tab for my iPod in iTunes. I can uncheck each individual podcast that I don't want to be on my iPod, then resync and they are removed. So I guess the problem is only present on the Podcasts (possibly movies and tv shows too) tab of the iPod screen in iTunes.
    Is there somewhere else I should go to submit a bug report?

  • AfterValueChange event trigged when it shouldn'tbe...

    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. the
    field loosing focus. The problem is that I'm trying to recreate this in
    a simple test class, but now it won't happen. I still have the original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Thanks for the replies so far, but this is not the problem. I know about
    the "Validate on keystroke" option and it is definitely swithed off.
    I was rather thinking along the lines of this being be a 'funny' in
    Forte. Has anyone seen this before? Here is more information:
    1) The windows that it is happening on all have parent windows.
    2) The fields with this problem are all part of a mapped gridfield, ie.
    it has a type.
    However, I have constructed a test class with these characteristics, but
    it is no good. There must be something else that could cause this. Any
    ideas?
    -----Original Message-----
    From: Rottier, Pascal [SMTP:[email protected]]
    Sent: Friday, October 09, 1998 10:53 AM
    To: Fouche, Jaco
    Cc: Forte Users Mailing list
    Subject: RE: AfterValueChange event trigged when it shouldn't be...
    Hi Jaco,
    Check if the option "Validate on keystroke" is set
    to true on the widget that posts the AfterValueChange.
    If so, than that's the reason. Turn it off and your
    problem will go away.
    Pascal
    Hi there,
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie.
    the
    field loosing focus. The problem is that I'm trying to recreate this
    in
    a simple test class, but now it won't happen. I still have the
    original
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    Any ideas as to why this could be happening?
    Many thanks in advance.
    Jaco
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Any advice on count  when sum 0

    Hi there
    We would like to have 1 sql such that
    count when sum of value in column > 0 . Problem is sum an aggregate function and also count.
    As example imagine 2 customer records, one has a -ve value e.g -4 and 1 a positive value of +5 so sum of these values = +1. Such a customer we would like to include in the count and can't simply use having clause as we wish to include in report all sales reagrdless of whether > 0 but a separate count field to highlight the ones which are greater than 0
    Current sql
    select sum(value), cola..
    from table
    group by col1..
    can't say
    select count(case when sum(value) > 0 then distinct cust_id end)
    as get ora-message about nested group by functions..
    Anybody done such a thing before - would analytical functions work in this situation.
    Many Thanks

    Hi there,
    Thanks very much for the replies.
    One problem though, unfortunately the reporting tool we use is quite constrained and we can't implement the solutions proposed in it - they would have been preferable.
    Example of data
    table called transaction with all different types of transactions
    Main fields, trans-code, cust_id, product_id, trans_qty, trans_date
    Each row has a different trans code, e.g supply code, return code.
    We wish to identify no of custs sold out. A customer could have several supply transaction records for the same product and potentially several different return transactions.
    If the sum of all the supply transactions for a customer/product > 0 and the sum of all the credit transactions for a customer/product = 0 then we count this as a sell-out.
    Is it possible to code this as an analytical function - if so how?
    Many Thanks

  • Array dimensions when converting from a cluster

    Hello,
    I am a beginner Labview programmer. Right now I am working on a VI
    that converts a portion of cluster data to an array of tables. The
    cluster is loop tunneled into a for loop then unbundled. I then build
    it into a 2D array. When I hand the data back out of the for loop the
    array dimensions are the same size. i.e. If the 2D arrays were 2x7 and
    2x6 going in then going out I have both as 2x7's. This happens right
    at the exiting loop tunnel (I suppose when it initializes the 3D
    array). This places zeros in the last row of my 2x6 array. Can anyone
    suggest a fix. Thanks a bunch.
    Peter.

    Hi, Peter:
    I think you want to have an array of different row sizes. I think it's impossible in LabView. At least using only arrays and without clusters.
    And as all rows have the same number of elements, undefined elements get default value. In case of numerics, zeros.
    You could create an array of cluster elements, and each element be an array 2D. Then each element can be an array of different sizes.
    But that's just what you had at start.
    Aitortxo.
    Aitortxo.

  • Can i use array.count in line?

    All,
    I have one small oracle program that take a ',' separated string as an input
    and assigns the individual string to a nested table.
    I am wondering if I can directly use array.count in my sql below
    instead of assigning the count of the array 1st and then
    using it.
    l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
    l_count := l_cause_codes_array.count;
    My current sql:
    delete from po_complaint_cause p
    where p.po_number = p_po_number
    and p.comp_code = p_comp_code
    and l_count > 1;
    I would like to do something like:
    delete from po_complaint_cause p
    where p.po_number = p_po_number
    and p.comp_code = p_comp_code
    and l_l_cause_codes_array.count> 1;
    I just want to reduce one context switch if possible.
    Thanks.

    Hi,
    did it give an error? Did you try? But it is possible.
    But why not the next code:
      l_cause_codes_array := util_pkg.tokenize_string(p_cause_codes_csv, ',');
      if l_cause_codes_array.count >1
      then
        delete from po_complaint_cause p
        where p.po_number = p_po_number
        and p.comp_code = p_comp_code
      end if;Do only the delete if it is bigger than 1, that is I think the fastest switch.
    Herald ten Dam
    http://htendam.wordpress.com

  • AltKey Uniqueness Rule firing when it shouldn't

    Hello,
    I am using JDev 11.1.1.4.0.
    I have a 'Name' field that has Altkey for uniqueness rule. It works fine. In fact, it works too well that the rule fires when it shouldn't.
    So I was looking for an example to execute the validation conditionally, for my case only when 'Save'.
    Any suggestion/comment appreciated.
    Thank you
    Bones Jones

    No reason in particular, when I created the class, FlashBuilder put it in there (I'm using Flash Pro CS5 + Flash Builder 4). I read that it calls it by default when the class is constructed, so having it in or out didn't really matter. I did comment it out with no luck, but I ended up shifting around the timeline quite a bit today and the problem has gone away. It seemed to only do it when it was in the first frame.
    Thanks for your help, I'm going to investigate it further when I have time just for reference, I'll post anything I find here.
    -Nick

  • Letter count when SMS-ing. Update or allready usable??? Please reply!

    I wondered if the Iphone could get a Letter-counter when SMS-ing? It would be really great if I could see how many letters when I am SMS-ing, because I don’t want to waste a SMS's airtime because I was out with one letter.
    If this isn't yet available on the phone can you please put it on the next update?
    Thanks allot for your hard work

    I don't think that is a definite way to determine if a text will be sent as one or two messages. A standard text message (well at least in the UK) is 160 characters including spaces.
    It you type a upper case W then it takes up much more space than a lowercase l.
    I just tried it and could only get 56 W's on four lines but I can get 240 l's on four lines.
    So just be careful if texting in your country is also restricted by the number of characters sent as you may well go onto two messages if you rely on the four lines suggestion.
    I would personally love to see a character counter and would suggest you send feedback to apple and hopefully this feature will appear in a future firmware update.

  • Getting ORA-01403:, when it shouldn't

    Greetings, i apologize beforehand for my spelling, name(takes 6 hours to change) and the headache you migth get, however,
    i bring you the following code, and test results:
    ------Procedure wich throws the error-------
    create or replace
    procedure P_COLEGAS(x in number) as
    ctipo varchar2(20);
    asd varchar2(20);
    cursor curnombre is
    select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo and elemento.ciudad=asd);
    begin
    select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x and elemento.id_elem=x;
    for blah in curnombre loop
    DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
    end loop;
    end;
    -what i get when executing the procedure-
    Error que empieza en la línea 1 del comando:
    exec p_colegas(19)
    Informe de error:
    ORA-01403: no data found
    ORA-06512: at "BD00.P_COLEGAS", line 9
    ORA-06512: at line 1
    01403. 00000 - "no data found"
    *Cause:
    *Action:-----------------------------------------------------------
    -----------------the real problem--------------------
    if in that procedure i were to write
    (1)
    select unidad.tipo into ctipo from unidad where unidad.id_elem=x;(2)
    select elemento.ciudad into asd from elemento where elemento.id_elem=x;instead the single query i wrote, we get the following:
    (1) works wonderfull, only gets the error when there are no matches for x.
    (2) throws the error i showed before.
    however when i do the following query in the worksheet and execute it:
    (3)
    select elemento.ciudad from elemento where elemento.id_elem=x;i get what i expected to get 1 row 1 column.(yes it has data)
    note: in (3) the only difference is that i remove the into clause, and x is the same number i used when i execute the procedure.
    --------------------the question------------------------
    why in the procedure, the query (2) fail to fetch the data, the same data wich the query(3) does not fail to fetch?
    i'm getting ORA-01403, when i shouldn't?
    is there a work around to this problem?
    --------------------what i try------------------------------
    nested the query with it's own error handle exception, getting the same results, just catches the error with a different handling.
    tool used: sql developer
    -Example data--
    tested the procedure with the following example data in a brand new workspace getting the same error.
    --  DDL for Table ELEMENTO
      CREATE TABLE "ELEMENTO"
       (     "ID_ELEM" NUMBER,
         "CIUDAD" VARCHAR2(20),
         "TIPO" CHAR(1),
         "X" NUMBER,
         "Y" NUMBER,
         "FECHAHORA_CREACION" TIMESTAMP (6)
    --  DDL for Table UNIDAD
      CREATE TABLE "UNIDAD"
       (     "ID_ELEM" NUMBER,
         "PORCENTAJE_SALUD" NUMBER,
         "NOMBRE" VARCHAR2(20),
         "TIPO" VARCHAR2(20)
    REM INSERTING into ELEMENTO
    SET DEFINE OFF;
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (12,'Infernalia','U',10,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (15,'Infernalia','U',10,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (19,'Infernalia','U',15,9,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (23,'Infernalia','U',16,8,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (27,'Infernalia','C',15,10,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (52,'Humania','U',26,10,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (58,'Humania','U',24,9,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (62,'Humania','U',27,11,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (64,'Humania','C',25,8,to_timestamp('22-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (78,'GruntVille','U',47,32,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (84,'GruntVille','U',42,28,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (89,'GruntVille','U',43,29,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (91,'GruntVille','C',44,37,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (29,'Infernalia','C',16,7,to_timestamp('12-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    Insert into ELEMENTO (ID_ELEM,CIUDAD,TIPO,X,Y,FECHAHORA_CREACION) values (90,'GruntVille','U',49,36,to_timestamp('29-NOV-20 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM'));
    REM INSERTING into UNIDAD
    SET DEFINE OFF;
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (12,100,'Grang','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (15,100,'Krout','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (19,100,'Warf','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (23,100,'Puaj','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (52,100,'Marcelus','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (58,100,'Claudius','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (62,100,'Arturius','Obrero');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (78,100,'Klaknot','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (84,100,'Staisht','Médico');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (89,100,'Bjorkson','Soldado');
    Insert into UNIDAD (ID_ELEM,PORCENTAJE_SALUD,NOMBRE,TIPO) values (90,100,'Sknot','Médico');
    --  Constraints for Table ELEMENTO
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_CHK1_TIPO" CHECK (TIPO IN ('U', 'C')) ENABLE;
      ALTER TABLE "ELEMENTO" ADD CONSTRAINT "ELEMENTO_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
      ALTER TABLE "ELEMENTO" MODIFY ("ID_ELEM" NOT NULL ENABLE);
      ALTER TABLE "ELEMENTO" MODIFY ("CIUDAD" NOT NULL ENABLE);
      ALTER TABLE "ELEMENTO" MODIFY ("TIPO" NOT NULL ENABLE);
      ALTER TABLE "ELEMENTO" MODIFY ("X" NOT NULL ENABLE);
      ALTER TABLE "ELEMENTO" MODIFY ("Y" NOT NULL ENABLE);
      ALTER TABLE "ELEMENTO" MODIFY ("FECHAHORA_CREACION" NOT NULL ENABLE);
    --  Constraints for Table UNIDAD
      ALTER TABLE "UNIDAD" MODIFY ("ID_ELEM" NOT NULL ENABLE);
      ALTER TABLE "UNIDAD" MODIFY ("PORCENTAJE_SALUD" NOT NULL ENABLE);
      ALTER TABLE "UNIDAD" MODIFY ("NOMBRE" NOT NULL ENABLE);
      ALTER TABLE "UNIDAD" MODIFY ("TIPO" NOT NULL ENABLE);
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_PK" PRIMARY KEY ("ID_ELEM") ENABLE;
    --  Ref Constraints for Table ELEMENTO
    --  Ref Constraints for Table UNIDAD
      ALTER TABLE "UNIDAD" ADD CONSTRAINT "UNIDAD_ELEMENTO_FK1" FOREIGN KEY ("ID_ELEM")
           REFERENCES "ELEMENTO" ("ID_ELEM") ENABLE;
    /Edited by: 975362 on 06-12-2012 04:47 AM
    Edited by: BluShadow on 06-Dec-2012 12:51
    added {noformat}{noformat} tags for readability of code/data.  Please read {message:id=9360002} and learn to do this yourself in future.
    Edited by: 975362 on 06-12-2012 05:44 AM
    added example data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Oops, I mi9ssed table ELEMENTO has column X. When you use:
    where unidad.id_elem=x and elemento.id_elem=x;column names take precedence over PL/SQL variables wnd X is resolved as table ELEMENTO column X. not as PL/SQL procedure parameter X. Change PL/SQL procedure parameter name:
    SQL> create or replace
      2  procedure P_COLEGAS(x in number) as
      3  ctipo varchar2(20);
      4  asd varchar2(20);
      5  
      6  cursor curnombre is
      7  select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
    and elemento.ciudad=asd);
      8  
      9  begin
    10  select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=x
    and elemento.id_elem=x;
    11  for blah in curnombre loop
    12  DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
    13  end loop;
    14  end;
    15  /
    Procedure created.
    SQL> exec p_colegas(19)
    BEGIN p_colegas(19); END;
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "SCOTT.P_COLEGAS", line 9
    ORA-06512: at line 1
    SQL> create or replace
      2  procedure P_COLEGAS(p_x in number) as
      3  ctipo varchar2(20);
      4  asd varchar2(20);
      5  
      6  cursor curnombre is
      7  select nombre from unidad,elemento where (elemento.id_elem=unidad.id_elem and unidad.tipo=ctipo
    and elemento.ciudad=asd);
      8  
      9  begin
    10  select unidad.tipo, elemento.ciudad into ctipo,asd from unidad,elemento where unidad.id_elem=p_
    x and elemento.id_elem=p_x;
    11  for blah in curnombre loop
    12  DBMS_OUTPUT.PUT_LINE('nombre unidad: '||blah.nombre||' ');
    13  end loop;
    14  end;
    15  /
    Procedure created.
    SQL> exec p_colegas(19)
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Phone rings when it shouldn't

    I put my phone on vibrate but it will ring when I get a call. It was not one of my contacts either.

    I figured out the HTMLDB problem. The process executes conditionally based on the Value of the submitted buton, NOT the name of the submitted button. So I had a button in another region that had a different name, but had the same Value. (ie. "Go), so the process was executing when it shouldn't have been. This is a bug.

  • Return 0 count when a Department within a CTE contains records for one set, but not another

    This is a bit of a complicated question to explain, but I am hoping not as complicated to resolve. I will try to describe this generically to allow anybody who can provide a solution to provide a generic example that anybody could adapt to their data.
    In my query, I created a CTE which combines two separate sets of data. One set of data lists who is within a given audience (call it audiencelist). The other set lists people who are in that same audience and have completed a given course (call if courselist).
    This is then all brought into one table by the CTE.
    My resulting report in Visual Studio 2008 is then going to include an expression to count each employee from both lists by department within the same field. (I will achieve this by first grouping by department, and then by the appropriate measure,
    which in the case of this example, I am calling audiencelist and courselist. Then, I will include an expression that counts the Employees.) The problem is, if a department has somebody in the audience, but NOBODY from that department has completed the
    course yet, I need the department to still show up in the "courselist" but with a count of 0.
    Example of the desired result:
    Dept 
    Field            
    Count
    A       Audiencelist  25
    A       Courselist     15
    B       Audiencelist  20
    B       Courselist     10
    C       Audiencelist  20
    C       Courselist     0
    I was trying as best I can to make this a generic example, but let me know if it would be easier if I share some of my actual code so you can provide a solution. My hope was that somebody could offer a generic example I could adapt to my data.

    I am having a little trouble following this example, or the one provided at the link above. I was hoping to just allow for a generic example, but I guess it may help if I share my actual code. My query is rather long, but I will just share the relevant parts
    for the sake of the sample.
    gm101measures
    AS
    select
    dimUser.EmpFK MeasureEmpFK,
    RIGHT(OrgCode2, LEN(OrgCode2) - 2) MeasurePC,
    audusersName MeasureAudName,
    dimActivity.ActivityName MeasureActName,
    dimActivity.Code MeasureActCode,
    CASE
    WHEN OrgCode2 LIKE 'US%' then 'US'
    WHEN OrgCode2 LIKE 'CA%' then 'CA' END
    CountryCode,
    'ACTUALS_GM101' SOURCESYSTEMID,
    Null CURRENCYCODE,
    'GM101CERT' MEASUREID,
    Null MEASUREDOLLARS,
    CASE
    WHEN GETDATE() Between '20131001 00:00:00' AND '20140930 11:59:59' THEN '2014'
    WHEN GETDATE() Between '20141001 00:00:00' AND '20150930 11:59:59' THEN '2015'
    WHEN GETDATE() Between '20151001 00:00:00' AND '20160930 11:59:59' THEN '2016'
    WHEN GETDATE() Between '20161001 00:00:00' AND '20170930 11:59:59' THEN '2017' END
    FiscalYear,
    CASE
    WHEN MONTH(GETDATE()) = '10' THEN '1'
    WHEN MONTH(GETDATE()) = '11' THEN '2'
    WHEN MONTH(GETDATE()) = '12' THEN '3'
    WHEN MONTH(GETDATE()) = '1' THEN '4'
    WHEN MONTH(GETDATE()) = '2' THEN '5'
    WHEN MONTH(GETDATE()) = '3' THEN '6'
    WHEN MONTH(GETDATE()) = '4' THEN '7'
    WHEN MONTH(GETDATE()) = '5' THEN '8'
    WHEN MONTH(GETDATE()) = '6' THEN '9'
    WHEN MONTH(GETDATE()) = '7' THEN '10'
    WHEN MONTH(GETDATE()) = '8' THEN '11'
    WHEN MONTH(GETDATE()) = '9' THEN '12' END
    FiscalMonthNbr
    from
    dimUser INNER JOIN
    audusers ON audusers.DataSetUsers_EmpFK = dimUser.EmpFK INNER JOIN
    Org ON dimUser.PrimaryDomFK = Org.Org_PK INNER JOIN
    factUserRequiredActivity ON factUserRequiredActivity.UserID = dimUser.ID INNER JOIN
    dimActivity ON dimActivity.ID = factUserRequiredActivity.ActivityID INNER JOIN
    dimRequirementStatus ON factUserRequiredActivity.ReqStatusID = dimRequirementStatus.ID LEFT OUTER JOIN
    UsrOrgs ON dimUser.ID = UsrOrgs.UserID LEFT OUTER JOIN
    UsrDoms ON dimUser.ID = UsrDoms.UserID
    WHERE
    dimActivity.ActivityName = 'GM101 Program Completion'
    AND
    dimRequirementStatus.name = 'Satisfied'
    AND
    (audusersName = @audparam)
    UNION
    select
    dimUser.EmpFK MeasureEmpFK,
    RIGHT(OrgCode2, LEN(OrgCode2) - 2) MeasurePC,
    audusersName MeasureAudName,
    Null MeasureActName,
    Null MeasureActCode,
    CASE
    WHEN OrgCode2 LIKE 'US%' then 'US'
    WHEN OrgCode2 LIKE 'CA%' then 'CA' END
    CountryCode,
    'ACTUALS_GM101' SOURCESYSTEMID,
    Null CURRENCYCODE,
    'GM101AVAIL' MEASUREID,
    Null MEASUREDOLLARS,
    CASE
    WHEN GETDATE() Between '20131001 00:00:00' AND '20140930 11:59:59' THEN '2014'
    WHEN GETDATE() Between '20141001 00:00:00' AND '20150930 11:59:59' THEN '2015'
    WHEN GETDATE() Between '20151001 00:00:00' AND '20160930 11:59:59' THEN '2016'
    WHEN GETDATE() Between '20161001 00:00:00' AND '20170930 11:59:59' THEN '2017' END
    FiscalYear,
    CASE
    WHEN MONTH(GETDATE()) = '10' THEN '1'
    WHEN MONTH(GETDATE()) = '11' THEN '2'
    WHEN MONTH(GETDATE()) = '12' THEN '3'
    WHEN MONTH(GETDATE()) = '1' THEN '4'
    WHEN MONTH(GETDATE()) = '2' THEN '5'
    WHEN MONTH(GETDATE()) = '3' THEN '6'
    WHEN MONTH(GETDATE()) = '4' THEN '7'
    WHEN MONTH(GETDATE()) = '5' THEN '8'
    WHEN MONTH(GETDATE()) = '6' THEN '9'
    WHEN MONTH(GETDATE()) = '7' THEN '10'
    WHEN MONTH(GETDATE()) = '8' THEN '11'
    WHEN MONTH(GETDATE()) = '9' THEN '12' END
    FiscalMonthNbr
    from
    dimUser INNER JOIN
    audusers ON audusers.DataSetUsers_EmpFK = dimUser.EmpFK INNER JOIN
    Org ON dimUser.PrimaryDomFK = Org.Org_PK LEFT OUTER JOIN
    UsrOrgs ON dimUser.ID = UsrOrgs.UserID LEFT OUTER JOIN
    UsrDoms ON dimUser.ID = UsrDoms.UserID
    WHERE
    audusersName = @audparam
    The final main query actually just pulls in everything from this CTE. My next step was going to be to pull this information all into the report, sort and group by MeasurePC (the Department, referred to in my company as a "Profit Center" and by
    the MeasureID (GM101Cert for those who completed the course, GM101Avail for those who are part of the audience) and then have an Expression that would count each MeasureEmpFK (the employee codes). However, that is when I realized it wouldn't count 0's for
    any MeasurePC in the GM101Cert set of data that did not have any people complete the course.
    Here is a mock-up of how the data would currently look from this above query:
    Country   Code
    SOURCESYSTEMID
    Fiscal Year
    Fiscal Month Nbr
    Org Value
    CURRENCYCODE
    MEASUREID
    MEASUREDOLLARS
    Measure Emp FK
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    170445
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    2671
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    113
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    271
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    272
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    317
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    375
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    170445
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    2671
    From here, I was going to pull the data into a report to count. Using the above example, my desired result would be:
    Country   Code
    SOURCESYSTEMID
    Fiscal Year
    Fiscal Month Nbr
    Org Value
    CURRENCYCODE
    MEASUREID
    MEASUREDOLLARS
    Measure Emp FK
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101AVAIL
    4
    US
    ACTUALS_GM101
    2014
    7
    Org A
    GM101CERT
    2
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101AVAIL
    2
    US
    ACTUALS_GM101
    2014
    7
    Org B
    GM101CERT
    0
    I had planned to achieve this just by pulling the data into my report and then, instead of pulling the EmpFK, I would create an expression to count them. However, I realized this wouldn't achieve the 0 counts when some PC's did not have anybody who had completed
    the course yet.

  • Htmldb_application array reset based on interactive report filter

    Hello
    I was searching various forums on this topic and did not find usefull answer. I must be doing something wrong or just do not understand how come that others do not have this problem?? Anyway, here it is.
    I have interactive report where first column is checkbox. Using submit process , I perfrom inserts/ deletes in database based on checbox array (htmldb_application). Everything works well untill I do not use filter on one of the columns. Such action results in resizing the report ( so number of rows is re-ordered / changed ). I want to run the same submit process on resized list, but it is not possible, because the array points to different/non-existing rows. I would expect that the array gets "reseted" accrording to the new result list, but it does not??
    Example:
    I load the page with the report, where I have 10 records. Two of them, row 5 and 7, have in column X value '1'. If I leave the report as is, check checkbox on any line and run submit process, action is succesfull.
    Now I change the filter and I will display only rows where column X=1. Report now have 2 rows. I check checkbox on the first one, submit the process, but the arrays refers to row 5 ( the old resultset), which is not present in the report now ??
    Can I somehow achieve arrays reset based on the interacitve report filter applied? Or any other solution?
    Thanks in advance
    Ludek

    Ludek
    The query for the IR is constructed as below select "LINK", "UNLINK", "INST_CD", "CUSTOMER_CD", "DESCRIPTION", "COUNTRY_CD"
          , "Link Status", count(*) over () as apxws_row_cnt
          from (
          select *
          from (
          select
          htmldb_item.checkbox (1,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd  and bind.customer_cd = big.customer_c and bind.bc_id = :P2_BC_ID )C , :P2_BC_ID,'DISABLED','UNCHECKED') ) Link,
          htmldb_item.checkbox (2,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ),:P2_BC_ID,'UNCHECKED','DISABLED') ) Unlink,
          htmldb_item.display_and_save(3,inst_cd) inst_cd,
          htmldb_item.display_and_save(4,customer_cd) customer_cd,
          htmldb_item.display_and_save(5,description) description,
          htmldb_item.display_and_save(6,country_cd) country_cd, DECODE( (select bind.bc_idfrom BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ) , :P2_BC_ID,'Allready Linked','Available') "Link Status"
          from REF_CUSTOMER_UNIQ big ) r ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)As you can see, the 'rownum' is gotten in the inner query. I suspect that when you apply a filter, the filter is applied to the outer query. Hence, the rownums will not be as you expect them to be. Instead of using the 'rownum' as the values for checkbox 1 and checkbox 2, I suggest you use a concatenation of
    inst_id and customer_cd. In the after submit process you can then just loop through the f01 and f02 arrays , split the concatenated values back into their inst_id and customer_cd components and perform the Insert or Delete.
    Varad
    Edited by: varad acharya on Jan 10, 2011 4:49 PM

Maybe you are looking for

  • DCR-HC32 not being recognized

    Trying to transfer videos from a Sony Mini-DV camcorder ( Model DCR-HC32 ) to MacBook Pro (early 2013 model 15" with retina display). Trying to connect it via the Thunderbolt port on a Thunderbolt to Firewire adapter although it is not recognized via

  • SAP Sizing for additional users and functionality

    Our company is currently doing an SAP HCM rollout project to the other departments. The current exercise is of determining hardware requirements should these be necessary. Currently the configuration is as follows there is a Central Instance with 8 p

  • Turning off backlight?

    I have a Video iPod. The backlight is set to turn off after 5 seconds, which it does. However, for some time, there is a very faint backlight that remains on. I can still see all of the menu items. It's very dim but visible. Is there a way to turn th

  • KDE 4.9, Akonadi and google calendar/contacts

    Hi, Searched around, didn't seem to find anything up to date on this. Anyone else having problems getting Akonadi to sync with google stuff? Apparently we don't use AUR packages for this anymore (the akonadi-google-git package doesn't even exist anym

  • Problems with Photoshop

    HI all, When I open Photoshop in Lightroom, all the selections except for a few, are grayed out, and not able to be used. Does anyone have any idea what might going on with the situation? Thanks, Stephen