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.

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

  • 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*

  • 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).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Ultrabeat Saving Issues

    Greetings,
    I did a bit of searching on this and other forums, but found very little on this subject. When saving Ultrabeat presets, sometimes the sample OSC has none loaded and sometimes, it loads a completely different drum (Taiko for example). Has anyone else commonly seen this error within Ultrabeat? I noticed that this only happened with my previous custom template, "pre" Time Machine + Airport Update. Also, I noticed that if my template already has an Ultrabeat loaded on Logic Startup, the same weird bug happens again.
    In short: Does anyone else have Ultrabeat preset saving issues, and if so, what did you do to work around it?
    I know this problem is elsewhere on this forum, and somewhat forgotten, but I want to start fresh on this topic, and hopefully get to the bottom of this.

    We can only hope that Apple solves this issue as well. But when you think about it, where do they begin with so many problems to address?
    The Apples will need all the luck and coffee this side of the World. I don't even know what to expect from their ever so popular "update". I'm calling apple today, but they'll tell me the same thing they always say......which is not much.
    Oh well, less crying, more producing.
    Time to man up. (RMIV)
    Cheers
    LGK

  • Numbers saving issue

    This message pops up about every 10 minutes. Can you tell me how to correct the issue?
    I'm running a MacBook Pro v 10.9.2 and Numbers v 3.2.
    The Numbers spreadsheet is on my local hard drive and no one else is using it.

    This Numbers document has always been in my Documents folder. But I copied it to my Desktop, then moved it back and I have the same "Saveing Issue" as shown above. It is really hard to believe that anyone using Numbers does not have this problem.

  • 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.

  • 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

  • Day light Saving Issue

    Hi,
    I am facing an issue with Date and Time objects. This looks something to do with the daylight-saving (UK).
    I have a date field in the database where a date is saved with time as 00:00:00, say for example 23/01/1999 00:00:00
    Upon querying and getting the result set, I am getting the Date and Time objects using rs.getDate() and rs.getTime().
    Date is obtained correcting as 23/01/1999 and the Time object is 00:00:00. But when I do a getTime() on Time object
    to get the milliseconds, it returns as -3600000 which is an hour back. This is causing an issue here.
    Can someone please suggest me if this is a daylight saving issue as we have moved ahead by 1 hour here in UK.
    Or is this issue fixed in any of the latest jdk, I am using jdk1.5.0_12?
    Many Thanks

    Hi,
    Please find the below code. Consider the date stored in the db is 23/01/1999 00:00:00
             Date dateValue = rs.getDate (COLUMN_NAME);
             if (dateValue != null)
                   dateValue = new Date(dateValue.getTime() + rs.getTime (COLUMN_NAME).getTime());
             }Here, the dateValue obtained in line 1 is right which is 23/01/1999. Also rs.getTime (COLUMN_NAME) gives the time as 00:00:00 which is correct.
    But when I do a getTime() on it to get the milliseconds it returns -3600000 which is one hour back.
    So finally when i add the date milliseconds and time milliseconds to get a new date value, it goes back one hour because of the -ve value. In this case since time is 0, going back one hour will switch the date back by one day. Hence the dateValue which I get after executing this code is 22/01/1999 23:00:00 which is wrong.
    Could you please help me on this?

  • 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)

  • Excel saving issues error: Someone else is working right now, please try again later"

    Excel saving issues  error: Someone else is working right now, please try again later"        
    I am running W8.1 with Office 2013 and accessing a shared drive, When I try to save an excel document back to the shared drive - I get the error msg
    "Someone else is working in "servername\share\filename" right now, please try again later"
    I can see that there is no one else accessing this file at all. I created a brand new file, added content, saved and got the same error.
    When I use a W7 with Office 2013 accessing the same share drive, accessing the same file - I am able to save the document without issues.
    Does anyone have any ideas what this could be.  Both of these situations are while working from home using a company vpn connection. It does not happen when in the office using either W8.1 or W7.
    Peter.

    Hi,
    Saves when saving locally. Its looking more like W8.1 on a VPN connection that is causing the issue. What can I look for
    I mean you can try to save it to local drive(like drive c:) and then copy it to shared drive.
    If you gain the access to the shared file server, you can check the file status when you open this file.
    Also you can check your event log to see which process causes this error.
    Since I'm not familiar with VPN, I'd suggest you post your issue to the following forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?category=windowsserver

  • Collective goods issue in production

    Hello All,
    We want to do a collective goods issue in production. Is there a chance in SAP that we can do a goods issue by supply area or MRP controller. We don't want to enter manually the group of production orders in MB1A or don't want to do backflush. Is there any way, please advice.

    Dear,
    In standard SAP are we issue the good In MB1A (261 Mov type) with reference to order and which having the reservation.
    The dependent requirements are planned as per BOM explosion. Item materials are issued against header material to complete header material production.
    Goods issue takes place against the production order at the start of the header material prod order.
    But MB26 will allow you to issue for serval orders,
    Hope clear to you.
    Regards,
    R.Brahmankar

  • 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

Maybe you are looking for

  • How do I keep leading when importing a Microsoft Word document to indesign?

    I have a long document in Word that has some simple styles applied to it (a few colors and different fonts) but when I try to place it in my indesign file, the leading changes. Everything else stays the same. Any idea why it changes? I thought leadin

  • Downloading and opening a PDF form

    I have been trying to download a form through safari which should arrive as a pdf. However instead of this a 'servlet' arrives on my desktop (which apparently contains all the info I need but is just a text edit list of commands for me) - I have trie

  • Which Cards Supports DVD-A With 6 Channel Output to AV Receiver With "Ext Inp

    I'm building a HTPC and I'm looking for a card which supports DVD-A discs that will output 6 channels which I can use as inputs on my receiver. I read somewhere that you can't do this over SPDIFF and that you have to the use the 5. External Inputs on

  • How do I remove the trial banner after purchasing full software?

    I downloaded the Trial Version first to make sure that all of the features I needed to create the video were there.  Now I have purchased the full version and have a product code.  How do I remove the "Created with... Trial Version" banner from my cu

  • Downgrade from Xcelsius 2008 SP2 to SP1

    Hi, We are facing some problems with Xcelsius 2008 SP2 .So thought of downgrading it from SP2 to SP1 again. Please let me know where to do this downgrading alone ....without losing  Xcelsius 2008 SP1 Also please let us know if there are any thing tha