Apex Collections

When I do a select *
from apex_collectionsI always get a "no data found." even though my application tells me that there does indeed exist an apex collection.
For debugging purposes, what is the best way to see what is contained in an apex collection at a given moment in time?
Edited by: tharpa on Mar 21, 2011 10:46 AM

Hi,
Check session from developer tool bar
http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref108
Or create report to your app page or totally new page.
I have sometimes create totally new page and interactive report selecting * from apex_collections
Regards,
Jari

Similar Messages

  • Apex Collections and dates

    Apex Collections and Dates
    I made an earlier posting today on the forum titled “‘ORA-01861: literal does not match format string’ error after my hosting company upgraded to Apex 3.2.” The issue relates to Apex collections and dates. Prior to the hosting company upgrading Apex 3.2 from 3.1 all was working OK. It seemed a reasonable assumption that the issue relates to the upgrade to 3.2. Having tested the code against another Apex 3.2 installation I am satisfied that the issue is not with Apex 3.2. That said, I am still getting the issue on the hosting site.
    To demonstrate the issue to my hosting company and this forum, I put together a simple one page application that demonstrates the issue using the least amount of code.
    I created a page with an ‘On Load – Before header” process that sets up an Apex Collection with a single value of ’20-FEB-2009’ in the c001 element as follows:
    if apex_collection.collection_exists(p_collection_name=>'THEISSUE') then
    apex_collection.delete_collection(p_collection_name=>'THEISSUE');
    end if;
    apex_collection.create_collection(p_collection_name => 'THEISSUE');
    APEX_COLLECTION.ADD_MEMBER(
    p_collection_name => 'THEISSUE',
    p_c001 => '20-FEB-2009');
    I added an SQL REPORT region to the page which uses the Apex Collection as follows:
    select to_date(c001,'DD-MON-YYYY') testdate
    from apex_collections
    where collection_name='THEISSUE'
    and to_date('20-FEB-2009','DD-MON-YYYY')
    = to_date(c001,'DD-MON-YYYY')
    When the page is run I get the ‘ORA-01861: literal does not match format string’ error.
    If I remove the following from the SQL Report Region:
    and to_date('20-FEB-2009','DD-MON-YYYY')
    = to_date(c001,'DD-MON-YYYY')
    and run the page, the date is displayed OK, i.e., c001 is converted to a date OK. This made me wonder whether it does not like the line to_date('20-FEB-2009','DD-MON-YYYY')? So I changed the where code for the report to :
    and to_date(c001,'DD-MON-YYYY')
    = to_date(c001,'DD-MON-YYYY')
    i.e., convert c001 to a date and compare it to itself. The rationale being that if the c001 converts to a date OK, then comparing c001 converted to a date with itself should not give an error. It did it gave the same error ‘ORA-01861’
    It would seem on my hosting site since the upgrade, that Apex and Oracle have problems with Apex Collection elements being converted to dates as part of the where clause.
    Now my understating of Oracle Apex collections in simple terms is that all Apex collections are held in a single Oracle table managed by a series of Apex functions. Given that all Apex collections are in the same table, could the issue be with the Oracle database when it is creating its execution plan for the query? Could Oracle be including the value of c001 from other collections (i.e., when c001 is not in a date format ) in the initial stages of its execution plan?
    I hope the above make sense and thanks in advance.
    Ian

    Scott,
    I believe I have found the answer the statistics on WWV_FLOW_COLLECTIONS$ and WWV_FLOW_COLLECTION_MEMBERS$. are out of date and Oracle is doing a full table scan instead of using the indices to select only the c001 columns that belong to the given collection_id. If I change my simple example to store the date value in c050 it works ok. (In all probability this will be the only collection on the hosted database to use c050).
    I have asked the hosting company to gather stats on all the apex tables.
    Thanks for your help
    Ian

  • Help with APEX.COLLECTIONS in v. 3.2

    Hello, we are trying to create an apex.collection in our program similar to the one used in the sample application "Matrix Order 1.0"
    Working Code used in "Matrix Order 1.0" is as follows:
    if APEX_COLLECTION.COLLECTION_EXISTS (p_collection_name => 'MATRIX' ) then
    APEX_COLLECTION.DELETE_COLLECTION (p_collection_name => 'MATRIX' );
    end if;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'MATRIX',
    p_query => 'select PRO_STYLE,PRO_COLOUR,PRO_UNIT_PRICE,S,M,L,XL from MATRIX_PRODUCTS_BY_SIZE order by 1,2,3' );
    What we've tried in ours is as follows:
    if APEX_COLLECTION.COLLECTION_EXISTS (p_collection_name => 'TRAINING' ) then
    APEX_COLLECTION.DELETE_COLLECTION (p_collection_name => 'TRAINING' );
    end if;
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'TRAINING',
    p_query => 'select * from IDEAS_USERS_VIEW' );
    End result is a message stating "no data found"
    Any thoughts?
    Additional information:
    we've tried above creating a view from a table, we've also tried putting the table name right in the query field - same results.
    we've also tried several over variations of the code found on the web such as the following:
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY(
    p_collection_name => 'TRAINING',
    p_query => 'select * from IDEAS_USERS_VIEW' ,
    p_generate_md5 => 'NO' );
    Again - same result - "no data found"
    Please Help!

    My teammate figured it out.
    the problem was under the Conditional Processing section they had the following set:
    Condition Type = "Request = Expression 1"
    Expression 1 = NEW
    Solution was to set to "No Condition" and deleted the value of "NEW"
    I'm sure we'll be back soon with questions on how to update and store it.... stay tuned.

  • Apex Collection- Tabular Form

    Hi
    is there anyway to make a tabular form depends on apex collections, for example i have a collection named "Orders" and i want to add member to this collection by tabular form , is it possible?
    Thanks in advance

    Sure, build a manual tabular form
    SELECT APEX_ITEM.TEXT(1,AC.c001)
              ,APEX_ITEM.TEXTAREA(1,AC.c002)
    FROM apex_collections AC
    WHERE collection_name = <collection name>I can also think of an approach to get this working with a Wizard based tabular form(I haven't tried this before,but I don't see any reason why it shouldn't work).
    --Create a view referring the collection.
    --Change your tabular form to reference the view
    --Add insert,update and delete triggers on the view to handle those processes on the appropriate table(s).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Apex Collection - tracking changes/updates on cells

    I created an apex collections page which displays and allows user to update the array/matrix/cells.
    I created a button to apply and save the changes; this process is working fine for update/insert as necessary.
    I'm struggling on a couple of points:
    1. If the user gets out of the page or do a refresh, I wanted to show an error or message that when a cell has been updated in the page, to display an error-like " that there are unsaved changes". And let them click on the update button I created. I read that there is the function called COLLECTION_HAS_CHANGED however, I'm not quite sure how to make it work with Dynamic Action.
    Any guidance is greatly appreciated. Thanks.
    2 Updating a cell value from not null to null is a bit of a challenge.
    The question is: Is there a way to find if a cell's value is changed from not null to null during the time I'm performing update_member_attribute ?
    (The update_member_attribute I found on the forum and I am using is handling it using IS NOT NULL -- I think this is good because it will avoid me getting a bunch of records inserted if the cells are indeed NULL (before and after).
    below is the part of the code I'm referring to ...
    FOR i IN 1.. APEX_APPLICATION.G_F02.COUNT LOOP
    IF apex_application.g_f02 (i) IS NOT NULL THEN
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE (
    p_collection_name => 'COLLECTION1',
    p_seq => i,
    p_attr_number => 2,
    p_attr_value => apex_application.g_f02 (i));
    END IF;
    END LOOP;
    I could removed the NOT NULL IF condition, but I only wanted to do the null update when there was a value previously.
    Thanks.

    user12941774 wrote:
    I created an apex collections page which displays and allows user to update the array/matrix/cells.
    I created a button to apply and save the changes; this process is working fine for update/insert as necessary.
    I'm struggling on a couple of points:
    1. If the user gets out of the page or do a refresh, I wanted to show an error or message that when a cell has been updated in the page, to display an error-like " that there are
    unsaved changes". And let them click on the update button I created. I read that there is the function called COLLECTION_HAS_CHANGED however, I'm not quite sure how to make
    it work with Dynamic Action.COLLECTION_HAS_CHANGED This will be useful if the data has changed on the server side, and you are talking about user navigating away without saving the changes that means the data is entered only on the client/browser side.
    For handling that you can use this plugin http://apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/skillbuilders-save-before-exit_43.html
    Any guidance is greatly appreciated. Thanks.
    2 Updating a cell value from not null to null is a bit of a challenge. Why do you think its a challenge?
    You will be updating a cell value based on the user entry, no matter if it is null or not null.
    The question is: Is there a way to find if a cell's value is changed from not null to null during the time I'm performing update_member_attribute ?
    (The update_member_attribute I found on the forum and I am using is handling it using IS NOT NULL -- I think this is good because it will avoid me getting a bunch of records inserted if the cells are indeed NULL (before and after).
    below is the part of the code I'm referring to ...
    FOR i IN 1.. APEX_APPLICATION.G_F02.COUNT LOOP
    IF apex_application.g_f02 (i) IS NOT NULL THEN
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE (
    p_collection_name => 'COLLECTION1',
    p_seq => i,
    p_attr_number => 2,
    p_attr_value => apex_application.g_f02 (i));
    END IF;
    END LOOP;*Always include code between {noformat}{noformat} tags, it is more readable*

  • Using Apex collection, IR report never refreshes

    I am using IR report with Apex collections. It never gets refreshed. I've to manually refresh it using browser refresh. I do have a boarderless region template for the IR report. How can I fix it?

    I am using the following plsql to create apex collection:
    DECLARE
    l_col VARCHAR2 (10) := 'SEARCH';
    l_sql VARCHAR2 (4000);
    BEGIN
    IF apex_collection.collection_exists (l_col)
    THEN
    apex_collection.delete_collection (l_col);
    END IF;
    l_sql :=
    'SELECT srv_sys_name,ddb_dbname
    FROM healthcheck.isac_search_master
    WHERE 1 = 1';
    IF :p7_shv_swcname IS NOT NULL
    THEN
    l_sql := l_sql || ' and shv_swcname = ''' || :p7_shv_swcname || '''';
    END IF;
    IF :p7_shv_businessclustername IS NOT NULL
    THEN
    l_sql :=
    l_sql
    || ' and SHV_BUSINESSCLUSTERNAME = '''
    || :p7_shv_businessclustername
    || '''';
    END IF;
    apex_collection.create_collection_from_query (p_collection_name => l_col,
    p_query => l_sql );
    END;
    I am using this collection on various pages. It works fine from first(collecton) page to next page, but I am not able to use collection on the third page. It works if I manually refresh it. Please help me.

  • Using wwv_flow_load_excel_data and apex collections

    Hi!
    I have a question regarding very popular subject: parsing csv files.
    I made one application, which takes csv file, parses it using Vicas's code, presents validation report to the user, and finally allows to submit data into the datatable.
    Everything works fine, but I don't like this solution. CSV can cause problems when quotation mark is used inside, when numbers have 1000 separators and so on.
    Besides that, I have to add some code to validate column types. Lot of mess.
    The solution incorporated into apex tool, called "Data Load/Unload" looks much better. It would be nice to use that inside apex application adding some business validations, and hardcoding table and columns names.
    I have seen wwv_flow_load_excel_data package and I'm wondering if it is possible to use load_excel_data procedure to perform that task?
    Is there any documentation to that package?
    Somebody heard about using that with apex collections (to avoid a need of temporary table)?
    Regards,
    Arek

    And if somebody else is looking for "ApEx" forum:
    Oracle Application Express (APEX)

  • Query for create manual tabular form using apex collection add row button functionality

    Hello everyone
    My requirement is i created a tabular form manually using apex collection but if i click on add row button then previously selected data refreshed and added new row in this form it is fine.but i don't want to refreshed previously selected data and click on add row button then add new row .how it is possible? plz help
    Thanks & Regards,
    Ujwala

    Ujwala
    Instead of starting a new thread with the same question as Query for create manual tabular form using apex collection add row button functionality.
    Could you answer the question about what you see while debug the javascript code.
    If you don't understand the question or have trouble debug javascript let us know.
    Nicolette

  • How to create an apex collection to store and loop through the values

    I couldn't find any simple example to do this
    Apex 4.2
    I need to create an apex collection. I have a query that returns multiple roles for a user. I need to check to see if one of my item values is within the collection but am not sure how to do so. So far I have:
    begin
    APEX_COLLECTION.CREATE_COLLECTION (
    p_collection_name => 'ALL_ROLES');
    select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);
    end;
    How would I store the query results in the collection?

    Trying to understand your code and a better suggestion:
    declare
    is_viewable boolean;
    v_count number;
    l_query varchar2(2000);
    i_counter number(10) :=1;
    begin
    --l_query := 'select granted_role from dba_role_privs where upper(grantee) = upper(:APP_USER)';
    --why do you need a collection, this is a simple select count(1) question
    APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY (
    p_collection_name => 'ALL_ROLES',
    p_query => l_query,
    p_generate_md5 => 'YES');
    -- You create a collection, but where are you using it?
    -- select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);
    -- discard the above code
    -- If you want to see  how many elements in a collection
    -- determine # of elements in a collection
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_collection.htm#CJAFFEAH
    v_count := APEX_COLLECTION.COLLECTION_MEMBER_COUNT ('ALL_ROLES');
    IF :P32_SUBMISSION_DATE IS NOT NULL THEN
      begin
      select count(granted_role) into v_count
         from dba_role_privs
      where upper(grantee) = upper(:APP_USER) and
        granted_role in ('SURVEY_SUID','SURVEY_JOB_SUID');
      exception
      when no_rows_found then
        v_count := 0;
      end;
      if v_count > 0 then
        is_viewable := true;
      else
        is_viewable := false;
      endif;
    else
      is_viewable := false;
    endif;
    return is_viewable;
    end;Thank you,
    Tony Miller
    Ruckersville, VA

  • Extract data in JSON feeds into apex collection

    Hi,
    Does anyone know if there is any way to convert JSON feeds - from public web services - into apex collections?
    http://earthquake.usgs.gov/earthquakes/feed/geojson/all/day
    Thanks.

    Hi,
    Does anyone know if there is any way to convert JSON feeds - from public web services - into apex collections?http://earthquake.usgs.gov/earthquakes/feed/geojson/all/day>
    AFAIK there is no built-in functionality to consume JSON in Oracle as well as APEX. For processing JSON in PL/SQL you have PL/JSON , if you want to go that route.
    My personal preference is jQuery.parseJSON . You can use this in conjunction with AJAX/ On Demand process to load the data into APEX_COLLECTION.
    Cheers,

  • Apex Collection Saving Issue

    Let me start out by saying that I'm new to the idea of using a collection in Oracle/Apex instead of straight DB work. That being said, I know the purpose behind it, and I believe the general idea of how to set it up and use it. That being said, I currently have an issue that I can't figure out.
    I'm working on trying to fix a program that was built by someone else who is no longer here, and they are using a collection to store data temporarily until the remainder of a survey is saved, which it then copies everything over to the database.
    I follow how the collection is created, how it is updated, and saved at the end. What I can't follow is that It is only saving part of the data when it is in IE, and NONE of the data when it is in Firefox.
    What I had done was I copied the regions from the other pages that are being used once a survey had already been created (yes, the pages are separate not by my design but it's too late to try and fix all of the current problems AND merge all the pages together. That'll be the next release, but I digress). Now I checked (and made a backup of the page thankfully) and as far as I could tell, copying the regions and items from the other page should have worked just fine since they were using the same item names. Sadly however, it stopped saving relapses.
    I checked an old version of the system, and I found the reason why. The version I am working on was apparently using the normal naming conventions of P86_RELAPSE_ID, etc, where it should have been P86_C001, etc. So, I went about the task of renaming (and updating the JavaScript that was running the page) all of the items. Well, I tested the system after only about 16 items and it saved perfectly! I was so happy. I started to apply the same changes to a few more, and the items I changed did not save. I checked and everything is setup correctly (item names, item settings, etc) so they should save the exact same way.
    So, I tried opening it in Firefox so that I could keep items side-by-side while I am comparing them, and I noticed that none of the data when I "saved" a collection was staying in Firefox, but it would "save if I did it in IE.
    I'm completely stumped at this point. Any help would be extremely appreciated. Thank you.
    (PS: I'm sorry if what I am asking isn't too clear. I'm asking two things. First, why aren't items that are setup exactly the same, and the names all match the update and add data for the collection, saving to the collection, while others are? And the second question, is why isn't anything saving using this method in Firefox.)

    The problem seems to have worked itself out.

  • APEX Collection - how to process

    Hello all.
    I am fairly new to apex and using apex 4.0. I have a SQL report based on collections, with 2 columns updateable. Following is the query.
    SELECT APEX_ITEM.TEXT(1,SEQ_ID) AS SEQ_ID,
    APEX_ITEM.TEXT(2,c001) AS R_TYPE,
    APEX_ITEM.TEXT(3,c002) AS TA_ID,
    APEX_ITEM.TEXT(4,c003) AS ANSWER_ID,
    c008 AS R_TITLE,
    CASE WHEN c001 = 'QUESTION'
    THEN APEX_ITEM.CHECKBOX(40,c009)
    ELSE APEX_ITEM.HIDDEN(40,c009) END AS ANSWER_Y_N,
    CASE WHEN c001 = 'QUESTION' AND c011 = 'Y'
    THEN APEX_ITEM.TEXTAREA(41,c010,3,40)
    ELSE APEX_ITEM.HIDDEN(41,c010) END AS ANSWER_TEXT,
    APEX_ITEM.TEXT(11,c011) AS TEXT_FLAG
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'AUDIT_ANSWER'
    AND c002 = :P18_TA_ID
    ORDER BY c004, c005, c006, c007
    ANSWER_ID is the primary key which is not displaying. R_TITLE is the question which is display only. ANSWER_Y_N is a column having Y or Null answers. ANSWER_TEXT is enterable comment column.
    After SAVE button, it fires page process (On Submit - Before computations) having following code -
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F04.COUNT
    LOOP
    IF APEX_APPLICATION.G_F02(i) = 'QUESTION'
    THEN
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE('AUDIT_ANSWER', APEX_APPLICATION.G_F04(i), '9', APEX_APPLICATION.G_F40(i));
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE('AUDIT_ANSWER', APEX_APPLICATION.G_F04(i), '10', APEX_APPLICATION.G_F41(i));
    END IF;
    END LOOP;
    FOR r IN ( SELECT c003, c009, c010
    +     FROM APEX_COLLECTIONS+
    +     WHERE COLLECTION_NAME = 'AUDIT_ANSWER' )+
    LOOP
    UPDATE VW_OTA_AUDIT_ANSWERS
    SET ANSWER_Y_N  = r.c009,
    ANSWER_TEXT = r.c010
    WHERE ANSWER_ID = r.c003;
    END LOOP;
    END;
    It is not updating the collection. What could be the problem here.
    Edited by: 930664 on Nov 29, 2012 3:53 AM

    Hi, to all.
    Sorry if I introduce here my question, and not create another thread, I made my example in application from the owner of this thread (hope he doesn't mind) at page 2, because in my workspace didn't work, don't know why.
    Here is my question: Why after navigate in interactive reports headings are disappears. I have one apex_collection for which I want dynamic headings, and it seams only first time they appear.
    Link http://apex.oracle.com/pls/apex/f?p=40150:2:7122052600559::NO:::

  • ApEx collection problem

    Hi there,
    I'm trying to create a collection within an ApEx process. My intention is to create a cursor (only 1 in the example but I want to add more in the future) and fill the collection with the data the cursor finds.
    However the application gives the following error: ORA-06550: line 29, column 51: PL/SQL: ORA-00917: missing comma ORA-06550: line 28, column 1: PL/SQL: SQL Statement ignored. I know that the error probably is found somewhere else in the code. Can someone help me?
    declare
    cursor skill1_cur is
    SELECT emp_id, esk_lvl_id
    FROM stf_employees
    JOIN stf_emp_skill ON emp_id = esk_emp_id
    WHERE esk_skl_id = :P4000_SKILL_1
    AND esk_lvl_id between :P4000_LVLF_1 AND :P4000_LVLT_1;
    begin
    if apex_collection.collection_exists('storevalues') then
    apex_collection.delete_collection(p_collection_name => 'storevalues');
    end if;
    apex_collection.create_collection('storevalues');
    for l_skill1_cur1 in skill1_cur loop
    insert into
    apex_collection.add_member(p_collection_name => 'storevalues',
    p_c001 => skill1_cur.emp_id,
    p_c001 => skill1_cur.esk_lvl_id);
    end loop;
    end;
    Best regards
    Apex version: Application Express 4.2.1.00.08

    It is usefull to use a formating tool for your code since it tells you imediatelly if your code has the right syntax. Here is a code which may help:
    DECLARE
       CURSOR skill1_cur
       IS
          SELECT emp_id, esk_lvl_id
            FROM stf_employees JOIN stf_emp_skill ON emp_id = esk_emp_id
           WHERE esk_skl_id = :p4000_skill_1
             AND esk_lvl_id BETWEEN :p4000_lvlf_1 AND :p4000_lvlt_1;
       v_collection_name   VARCHAR2 (30) := 'STOREVALUES';
    BEGIN
       IF apex_collection.collection_exists (v_collection_name)
       THEN
          apex_collection.delete_collection
                                          (p_collection_name      => v_collection_name);
       END IF;
       apex_collection.create_collection (v_collection_name);
       FOR l_skill1_cur1 IN skill1_cur
       LOOP
          apex_collection.add_member (p_collection_name      => v_collection_name,
                                      p_c001                 => skill1_cur.emp_id,
                                      p_c002                 => skill1_cur.esk_lvl_id
       END LOOP;
    END;A couple of things to consider:
    1. Collection Name has to be capitalized
    2. You don't need an insert into when inserting data into a collection - there is a procedure which does that
    3. you have an error in calling the add_member procedure - you used the parameter p_c001 twice
    I am not sure if this works for you since I have no access to the objects underneath your code.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • 3.1.2 - apex collections and invalid number

    Hi,
    We use collections on a number of pages in our production applications and everything is running well. Those applications are running on Apex 3.0 right now in 4 different environments.
    We have now upgraded to Apex 3.1.2 on 3 of those environments. 2 of them work properly, but with the other one we get an error message "invalid number" with the collections. The data is the same on all the environments.
    The query looks like this (c002 is always a number) :
    select to_number(c002), to_number(c001)
    into   v_seq, v_page
    from   htmldb_collections
    where  collection_name = 'COLLECTION_NAME'
    and    to_number(c002) = 1;
    I have modified the query like this to get it working again :
    select to_number(c002), to_number(c001)
    into   v_seq, v_page
    from   htmldb_collections
    where  collection_name = 'COLLECTION_NAME'
    and c002 = '1';
    1) Why is that happening in only one of the 3 environments using Apex 3.1.2 and none of the Apex 3.0 environments ?
    2) Why can't i do a to_number in the where clause when i do it in the select with the same data ?
    Thanks for your help !
    Patrick

    probably there is some data in c002 which is not number and when you convert it with to_number(c002) it is failing, but when compare it with c002 = '1' as there is no conversion of data before compare every thing works fine.

Maybe you are looking for

  • Controling the legend in Numbers

    Hi all, I'm trying to edit a chart I have drawn using XY scatter data with Numbers '09. Besides colors, I would like to distinguish my data lines with solid, dotted, and dashed lines. Numbers lets me do this easily, but I don't seem to have any contr

  • Spaces are truncated in concatination

    Hi all,          I have to print the internal table data into sap scripts.for that i am using subroutine pool and passing internal table data into standard text and printing in form.up to now  its working fine.i am writing the following code for conc

  • External wont stay connected thru airport

    I have an external hard drive connected wirelessly thru my airport. I have always had issues with it staying connected, so much so they replaced my airport. Now that I have upgraded to SL, the problem has gotten way worse, it stays connected for mayb

  • Any way to put HTML Snippets in shapes?

    I like the new HTML snippets feature, but I'm having a problem with it -- it doesn't fit into shapes, so there's no way to integrate a snippet well into some of the templates, like the new comic book one. Is there a work around for that? I saw a thre

  • [solved] 6 Switched to high resolution mode on CPU 0 ... freezes

    This is happening while using Archlinux-i686-2007.08-2.core.iso.  Every time I boot the CD, I get this message and it locks up big time (numlock doesn't change LED).  It's on a Sempron 2800+ CPU.  Not sure what to do from here!  What should I try? La