Update  under apex_collection

Hi gurus,
Spent many fruitless time on this . It is time to call for help.
Following is my process of creating, deleting, update member attributes plus my report query.
My issue : updates( Ename) and deletion( a member) are working. BUT if deletion occurs then updates on all records
after the deletion point are messed up. ex: if I delete seq_id 4 then all subsequent updates for record with seq_id > 4 won't work.
The issue is I lost the original seq_id after the deletion but I don't know how to resolve it. Can you help ?
Thanks.
Zeng
--create collection
if apex_collection.collection_exists(p_collection_name => 'TEST_EMP')
then apex_collection.delete_collection (p_collection_name => 'TEST_EMP');
end if;
apex_collection.create_collection_from_query (p_collection_name => 'TEST_EMP',
p_query => 'select EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO from test_emp
order by empno' );
--delete
FOR r in 1..APEX_APPLICATION.G_F01.COUNT
LOOP
apex_collection.delete_member
(p_collection_name =>'TEST_EMP',p_seq => apex_application.G_F01(r));
commit;
end loop
-- update
FOR r in 1..APEX_APPLICATION.G_F01.COUNT
LOOP
apex_collection.update_member_attribute
p_collection_name => 'TEST_EMP',
p_seq => APEX_APPLICATION.G_F01(r),
p_attr_number => 2,
p_attr_value => APEX_APPLICATION.G_F02(apex_application.G_F01(r))
end loop;
-- Report screen
select
APEX_ITEM.CHECKBOX(1,seq_id) SEQ_ID,
seq_id as seq_id_display
,C001 empno
,htmldb_item.text(02,c002,10,10) ename
,c003 job
,c004 manager
,to_date(c005,'DD-MON-YY') hiredate
,c006 SAl
,c007 com
,c008 dept
from apex_collections
where collection_name='TEST_EMP'
order by c001

For updating try the below code, pls let me know if it works.
Create a process which runs "on-submit before computation & validation".
declare
c pls_integer := 0;
begin
for c1 in(
select seq_id from apex_collections
where collection_name = 'TEST_EMP'
order by seq_id)
loop
c := c+1;
if apex_collection.collection_exists(p_collection_name => 'TEST_EMP') then
for i in 1..apex_application.g_f01.count
loop
APEX_COLLECTION.UPDATE_MEMBER(
p_collection_name => 'TEST_EMP',
p_seq => c1.seq_id,
p_c002 => nvl(apex_application.g_f02(c),''));
end loop;
end if;
end loop;
end;

Similar Messages

  • My MacBook Pro shows the logo in a white screen when I ask for a Software Update under the apple. Actually it stays blank on Featured, Top Charts, Categories and Purchases as well. What up? Thanks.

    My MacBook Pro shows the logo in a white screen when I ask for a Software Update under the apple. Actually it stays blank on Featured, Top Charts, Categories and Purchases as well. What up? Thanks.

    I am having exactly the same problem right now. After some research, it looked like my HD was toast. I replaced it today, that part was easy, but now I cannot seem to use my original Install Disk to format the new HD. I get a grey restart screen, or if I get to the Language Selection screen, my cursor is frozen in left corner and I can't use it.
    Very frustrating, hope someone else has some ideas!
    PS My MacBook was about same age, and "expired" in exactly the same way as yours.

  • RE: DataField, update underlying data via TOOL,Express

    John,
    does it work if you mix the "CopyfromClipboard" method with the "PlaceValueinDisplayedField" ?
    If this is not the correct solution to you problem, could you please specify "where" it does not work ?
    Thanks a lot indeed.
    Best regards
    /Stefano
    Stefano POGLIANI Forté Software Consultant
    E-Mail : [email protected] Tel : +33.0)450201025
    Fax : +33.(0)450200257 Mobile : +33.(6)08431221
    Visit the Forté Web Site : http://www.forte.com/
    Ducunt fata volentem, nolentem trahunt....
    -----Original Message-----
    From: John Hodgson [SMTP:[email protected]]
    Sent: Wednesday, July 02, 1997 8:39 PM
    To: [email protected]
    Subject: DataField, update underlying data via TOOL, Express
    In TOOL code we PasteText() into a DataField, but the underlying data
    object does not get updated until the user interacts with the GUI.
    That causes problems if we need to use the underlying data object's
    value immediately after the paste. How can we:
    force an update of the underlying data object and
    ensure that the update goes through before our method call returns,
    i.e., ensure that if the update is via Forte events, those events
    are handled before returning.
    The context is a calendar lookup button that pastes into an adjoining
    DataField.
    John Hodgson |Descartes Systems Group Inc.|[email protected]
    Systems Engineer|120 Randall Drive |http://www.descartes.com
    |Waterloo, Ontario |Tel.: 519-746-8110 x250
    |CANADA N2V 1C6 |Fax: 519-747-0082

    Well, I think I have answered my own question, but I will leave it here in case anyone else has the same problem. 
    So, as far as I have been able to track down, it all went wrong when I was running through the connection wizard. 
    Under the section titled "Creating the Data Source" is describes how to find your database file and create the appropriate connection string. However, on my version of VS Express 2010 . It offered me a prompts , saying something like, "would you like to
    move this database file into the application directory and change the connection string" this sounded very sensible to me, so I said yes.
    All proceeded accordingly. And the database file now appeared in the solution explorer. 
    The app config file said that the connection string was 
    Data Source=|DataDirectory|\Database1.sdf"
    I presumed this would be interpreted correctly by the rest of the app, as it was generated by VS.
    But it didn't, what I cannot understand is how no error was generated. And data seemed to pull
    into the bound controls. 
    But I have been testing it for a while now. and it seems that if I manually override the config file with the actual directory where the file exists , then there is not a problem. Data is retained in the file 
    This is more of a VB.net question, but I couldn't find it in the drop down. I will try and move it there now
    Thanks guys for your patience. 
    p.s. RSingh , the code I posted above did come from the SaveItem_Click event
    handler

  • HT201541 Some sites(like youtube for instance) want me to update Safari but when I go to  Software Update under the apple it says there are no updates. What do I do now?

    Some sites(like youtube for instance) want me to update Safari but when I go to  Software Update under the apple it says there are no updates. What do I do now?

    Upgrade the computer’s OS, or switch to a product such as Firefox.
    To upgrade, open the Mac App Store and try downloading Yosemite. If you get told it's incompatible, choose About this Mac from the Apple menu, check if the computer has at least a Xeon or Core 2 Duo(not Core Duo) CPU and 2GB of RAM, and if it does, click here and order a download code for Lion 10.7.
    Back up your data and check your applications for compatibility before upgrading. In particular, Mac OS X 10.7 and newer don't support PowerPC programs such as versions of Microsoft Office prior to 2008.
    (125625)

  • Why does iphone 4 not have a softwear update under the general tab

    why does my iphone 4 bnot have a softwear updater under the general tab

    The option to update without the computer (Over the air) was made available with iOS 5. If your iDevice is using a version of iOS lower than 5, you will need to use iTunes on your syncing computer to perform the upgrade. Use the Apple link below as a guide for the upgrade.
    http://support.apple.com/kb/HT4972
    Also read the instructions from the section entitled "Update your device using iTunes" at the link below.
    http://support.apple.com/kb/HT4623
    Information regarding transferring purchases from your iDevice to iTunes on your syncing computer can be found at the link below.
    http://support.apple.com/kb/ht1848

  • HT4623 i cant see software update under general in my phone. the version i have is 4.3.3 . what do i do

    I can't see software update under general in my phone.The version i have is 4.3.3. what do i do

    Follow the directions here:
    http://support.apple.com/kb/HT4972
    iOS 6.1.3 will be installed on your phone.

  • Found 5.04 update under library/receipts but have fcp 6.04

    I was looking into uninstalling FCP 6.04 and reinstalling it to hopefully clean up some kinks and I found "fcp 5.04 update" under library/receipts. Should I trash this? I use to have FCP 5 and have a project currently on my desktop that originated as FCP 5 and am having problems with it in FCP 6- the Motion sequences have been altered for some strange reason. I have NVIDIA GeForce 7300GT graphics card-
    original to this MacPro. I read that "Final Cut Studio is not compatible w/ integrated Intel graphics processors". Does this affect me? Do I need a new graphics card?
    Thanks for your guidance.

    it's just a receipt and its harmless to your current install
    if you are going to do the uninstall / reinstall thing you could do worse than check out Jon Chappel's FCS Remover app .... it may save you a world of pain
    http://www.digitalrebellion.com/fcs_remover.htm
    .. and No, your MacPro doesn't have an integrated graphic chipset so that warning shouldn't concern you

  • I have an app in my App Store under updates under purchased that I'd like to get removed from my phone. How do I do that?

    I have an app in my App Store under updates under purchased that I'd like to get removed from my phone. How do I do that?

    In the Home screen, tap and hold the app until it wiggles. Then tap the minus red icon placed in the top of the icon. Deleted

  • Manage SCUP published updates under WSUS and SCCM.

    After completion of SCUP environment, I published Adobe Flash player update successfully.
    Some where in blogs it was mentioned that published updates are under 'software library' but under SCCM2007 SP2 I am able to see 'software update' and there are no entry of published updates. Under 'software update' there is only Microsoft vendor and no updates
    under same.
    Also, there is no entry about Adobe updates in WSUS, only Micosoft specific updates are present as per sync.
    environment details:
    SCUP 2011
    WSUS on Win 2008 R2 Server
    SCCM 2007 SP2
    SQL Server 2008 R2
    Please let me know how can I view & manage published updates under SCCM and WSUS.
    Below are logs entry specific to SCUP:
    Publications workspace: Remove selected updates from publication AdobeFlashPlayer$$<Updates Publisher><Tue Feb 24 12:48:28.584 2015.1><thread=1>
    Publications workspace: Starting publish wizard for publication 'AdobeFlashPlayer'.$$<Updates Publisher><Tue Feb 24 12:48:33.573 2015.1><thread=1>
        Publish: Preparing list of selected updates for publishing.$$<Updates Publisher><Tue Feb 24 12:48:37.587 2015.12><thread=12>
        Connecting to a local update server with locally detected settings.$$<Updates Publisher><Tue Feb 24 12:48:37.588 2015.12><thread=12>
        Publish: Update server name: WIN2008R2DC$$<Updates Publisher><Tue Feb 24 12:48:37.610 2015.12><thread=12>
        Publish: Publish operation starting for 1 updates.$$<Updates Publisher><Tue Feb 24 12:48:37.611 2015.12><thread=12>
        Publish: Publish: Verifying update server is configured with a certificate prior to publishing.$$<Updates Publisher><Tue Feb 24 12:48:37.614 2015.12><thread=12>
        Publish: Publish: Update server appears to be configured with a certificate.$$<Updates Publisher><Tue Feb 24 12:48:37.656 2015.12><thread=12>
        Building dependency graph for update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'$$<Updates Publisher><Tue Feb 24
    12:48:37.687 2015.12><thread=12>
        No dependencies found for update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'$$<Updates Publisher><Tue Feb 24 12:48:37.717
    2015.12><thread=12>
    Found total of 0 dependencies (may include duplicates).$$<Updates Publisher><Tue Feb 24 12:48:37.717 2015.12><thread=12>
    PublishItem: Update ''Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'' has no dependencies.$$<Updates Publisher><Tue Feb 24 12:48:37.718
    2015.12><thread=12>
    PublishItem: Publishing update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'.$$<Updates Publisher><Tue Feb 24 12:48:37.718 2015.12><thread=12>
    PublishItem: --- Evaluating software update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')' for publishing as FullContent.$$<Updates Publisher><Tue
    Feb 24 12:48:37.719 2015.12><thread=12>
    PublishItem: --- Software update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')' needs to be published with full content.$$<Updates Publisher><Tue
    Feb 24 12:48:37.732 2015.12><thread=12>
    PublishItem: Retrieving content for update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'.$$<Updates Publisher><Tue Feb 24 12:48:37.756
    2015.12><thread=12>
    PublishItem: --- Content will be saved to C:\Users\Administrator\AppData\Local\Temp\2\\kzfk4dzk.yiy\install_flash_player_16_plugin.msi.$$<Updates Publisher><Tue Feb 24 12:48:37.757 2015.12><thread=12>
    PublishItem: Download Content: file was downloaded successfully.$$<Updates Publisher><Tue Feb 24 12:48:57.68 2015.12><thread=12>
    PublishItem: Successfully retrieved content for software update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')' to local file: C:\Users\Administrator\AppData\Local\Temp\2\\kzfk4dzk.yiy\install_flash_player_16_plugin.msi$$<Updates
    Publisher><Tue Feb 24 12:48:57.69 2015.12><thread=12>
    File C:\Users\Administrator\AppData\Local\Temp\2\\kzfk4dzk.yiy\install_flash_player_16_plugin.msi appears to be signed, retrieved certificate, checking signature...$$<Updates Publisher><Tue Feb 24 12:48:57.204 2015.12><thread=12>
    TrustChecker: User trusts file.$$<Updates Publisher><Tue Feb 24 12:51:30.548 2015.1><thread=1>
    PublishItem: --- SDP XML file for publishing created at C:\Users\Administrator\AppData\Local\Temp\2\tmp182E.tmp$$<Updates Publisher><Tue Feb 24 12:51:30.640 2015.12><thread=12>
    PublishItem: --- Calling update server API for publishing update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'$$<Updates
    Publisher><Tue Feb 24 12:51:30.752 2015.12><thread=12>
    PublishItem: --- PublishPackage call successful for update 'Adobe Flash Player 32-bit/64-bit Plugin 16.0.0.305 (UpdateId:'a2aa8ca4-3b96-4ad2-a508-67a6acbd78a4' Vendor:'Adobe Systems, Inc.' Product:'Adobe Flash Player')'$$<Updates Publisher><Tue
    Feb 24 12:51:59.290 2015.12><thread=12>
    PublishProgress: Publish operation completed.$$<Updates Publisher><Tue Feb 24 12:51:59.305 2015.12><thread=12>
    Publish: Background processing completed.$$<Updates Publisher><Tue Feb 24 12:51:59.306 2015.1><thread=1>
    WizardBase: closing Publish Software Updates Wizard wizard.$$<Updates Publisher><Tue Feb 24 12:55:37.211 2015.1><thread=1>
    Publications workspace: Publish wizard completed.$$<Updates Publisher><Tue Feb 24 12:55:37.234 2015.1><thread=1>
    I verified SCCM primary site but not able to trace published updates here. Please let me know how can I see published updates and how can I manage them as well.
    Thanks in advance!!!

    what does wsyncmgr.log,wsuscontrol.log and WCM.log says ? do they have any adobe related entries ? check if the published adobe products appearing in software update classification ?
    Eswar Koneti | Configmgr blog:
    www.eskonr.com | Linkedin: Eswar Koneti
    | Twitter: Eskonr

  • HT5567 I'm not sure how to download ios6 on my ipad 2.  There is no software update under my general settings.

    How can one download the ios 6 onto the ipad 2 when there is no software updates under general settings?  Do I need to reset network settings?

    You'll need to connect your iPad to a Computer running iTuines (Can be a Mac or a Pc doesn't matter) and follow the update prompts.
    You'll probably want to back up the iPad before updating though.
    iOS: How to update your iPhone, iPad, or iPod touch
    Scroll down to the section titled: Update your device using iTunes

  • I'm trying to update to IOS6 on my New Ipad through software update under settings, over Wi-Fi ....It keeps telling me that IOS is still up to date.....? Any advice?

    I'm trying to update to IOS6 on my New Ipad through software update under settings, over Wi-Fi ....It keeps telling me that IOS is still up to date.....? Any advice?

    Maybe you have a beta version of iOS6 in your Ipad. if is this, you have to put the ipad in recovery mode in itunes and then the update will start.
    To put the ipad in recovery mode, you have to turn of the ipad. In your pc/mac Itunes has to be running, and plug the cord, but when you do that you have to press the home button until a message shows up in itunes!!
    Regards!!

  • I have a dumb phone I am trying to update my operating system but don't have the software update under general setting. I've tried to do this on line but nothing! Help

    I have a dumb phone not a smart phone. It doesn't have the software update under general setting. I tried to upgrade online but nothing! Currently, I cannot get many apps because I need the upgrade. Help

    That's because you don't have iOS 5 or higher. See the following:
    Connect the phone to your computer. Open iTunes. Select your phone from the sidebar under Devices. Click on the Summary tab in the main window. Click on the Update button.

  • HT4972 I cannot find software update under general.  What does that mean,other than I am goofy?

    I cannot find software update under general. What does that mean,other than I am goofy?

    IOS 4 do not have Settings>General>Software Update.
    You have to connect your iPad to iTune (computer) and Check for Updates.
    Backup before you proceed with update.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%201/e0f22e92de98ebae10e 3fd537c16619e.jpg

  • I Phone 4 how do I get iOS if I don't have Software Update under my General settings

    I Phone 4 how do I get iOS if I don't have Software Update under my General settings

    You can only due an OTA update if your on IOS 5 or higher.  If not connect your phone with itunes and itunes should read that your phone needs to be updated.  suggest doing a backup of your phone prior to updating.

  • HT4623 My iPad does not show "software update" under "General" settings.  So I cannot update to IOS 6.1.3.  How do I update my operating system?

    My iPad does not show "Software Update" under General settings.  How do I update to the latest IOS 6.1.3 without this prompt?

    JudithKimball2013 wrote:
    My iPad does not show "Software Update" under General settings...
    That is only a feature of iOS 5 or later...
    You have iOS 4... See Here...
    http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

Maybe you are looking for

  • Darwin Streaming Server & Quicktime Broadcaster Problems

    recently upgraded to Darwin Streaming Server 5.5, and am having difficulty with it. I keep getting the following error when I try to change the settings under the Broadcaster sidebar menu item. Error - Perl execution failed Can't call method "state"

  • TO Creation wrt VAS Delivery

    Hi All Vas scenario: for Gift Wrapping If I create TO after the VAS delivery its not reaching the 923 storage Type & VAS workcenter, instead its going to 916 storage type, ie as normal outbound scenario.. 1. maintained packing reference material in m

  • File route in Spotlight?

    HI there, is there a way to make Spotlight show the route of a file by placing the cursor on it? It would be convenient to have the spotlight window with a display line or a bar at the bottom to show where to locate the selected file. Thanks.

  • Can I rename a Nano?

    Can I rename a Nano? I received a replacement from Apple due to potential battery issue and they send it already named.

  • Zen Stone Plus on Macint

    Hi! I have new ZEN Stone Plus 2GB Black but i have a question - about charging - I have Mac OsX and when i connect it to computer the charging icon appears on the display, but I has been charging for few hours now and still there is steady blue light