Shuttle - update of the agenda

Hey all,.
I have a shuttle with the following query:
select ATT_NAME display_value, ATT_ID return_value 
from ATTRIBUTES
where comp_p='Y'
order by 1
and the rest of the update process:
declare
    tab apex_application_global.vc_arr2;
begin
    
    tab := apex_util.string_to_table (:P310_X);
    for i in 1..tab.count loop
    
    update Attributes
    set 
    
    ATT_ID = tab(i),
    comp_position=i
    where comp_p='Y';
    end loop;
    end;
I want only to achieve savings in the order of all the attributes with comp_p = 'Y'. I get no error sql or something.
But the process does not work. In the database, it is not all the values update...
Any ideas?

Create a hidden page element: p310_message and edit your PL/SQL block update for:

DECLARE
   tab   apex_application_global.vc_arr2;
BEGIN
   tab := apex_util.string_to_table (:p310_x);
   :p310_message := :p310;
   :p310_message := :p310_message || ' / ' || tab.COUNT;

   FOR i IN 1 .. tab.COUNT
   LOOP
      UPDATE ATTRIBUTES
         SET comp_position = i
       WHERE att_id = tab (i);
   END LOOP;
END;

Put the string

& P310_MESSAGE.

in the process success Message and see what you get. Make sure that the branching has the option 'include the success of process message' the checked value.

Your original PL/SQL block is not supposed. You are in loop x times and defining each

    ATT_ID = tab(i)

and

    comp_position=i

for all the comp_p where

    comp_p='Y'

!?

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

Tags: Database

Similar Questions

  • Hot Sync hangs at the agenda, agenda appears twice on the list

    I'm trying to migrate my Palm desktop to my new 64 bit Windows 7 PC.  The PDA is a Z22.  I've updated desktop to v6.2.2 and synchronization via infrared, as Win 7 64 bit does not support the Z22.

    When I try to do my first sync, Hot Sync hangs up on the Agenda (the only application that I checked for synchronization in the hot sync settings).  I ran DbFixIt2, who did find some files corrupted and deleted, but this has no effect on the next synchronization attempt, despite my once you have selected the setting "Pocket replaces Desktop.  I note that Agenda, address book, task list and Notepad appear twice on the list of State during the attempt to synchronize, but only once on the Hot Sync settings-Applications list.  During synchronization, the first quotation of Agenda indicates a successful synchronization (check mark), but it crashes on the second book to Date.  Tried to uninstall and reinstall office, without effect.

    Help!

    Thank you

    Jim

    Update... I didn't give it enough time.  Even on my PC new, great power, the initial synchronization (Agenda only) took 10-15 minutes.

    Jim

  • Shuttle point - save the changes

    The shuttle point integrated is a good way to view and edit data to multiple values. If the data comes from a single line and column (delimited), using the internal order process line Fetch and automatic DML to read/write, it work well.

    But what happens if the data from multiple lines in a source table? Say 10 lines are selected (right hand of shuttle) off a 50 LOV. The Source of the element of the shuttle has just the query to retrieve the 10 lines and the APEX engine automatically converts multiple values into 1 delimited value required by the shuttle.

    But when it comes to saving the changes in the shuttle, there is no easy way to identify what has changed. Say I deselect the option 1 and select 2 new items in the left side of the shuttle. Value of the element in the session state is delimited by colon 1 string containing the currently selected values. How this translates into the ELIMINATION of 1 and 2 INSERTs necessary against the base table?

    I can think of to save the front-subimit value in a hidden element, comparing it to the value of after-submit and stuff like that, but that seems a lot of work. What this kind of thing done effectively?

    Thank you

    HELEN wrote:

    But when it comes to saving the changes in the shuttle, there is no easy way to identify what has changed. Say I deselect the option 1 and select 2 new items in the left side of the shuttle. Value of the element in the session state is delimited by colon 1 string containing the currently selected values. How this translates into the ELIMINATION of 1 and 2 INSERTs necessary against the base table?

    I can think of to save the front-subimit value in a hidden element, comparing it to the value of after-submit and stuff like that, but that seems a lot of work. What this kind of thing done effectively?

    As the table changed with the values of the shuttle contains one column other than the PK and the shuttle update column, this can all be handled with reusable one DML MERGE statement and a utility function:

    begin
    
      merge into shuttled_states ss
      using (
      /*
        The merge source requires a set of matched pairs: the selected shuttle values
        against the corresponding values in relevant DB rows, for example:
    
        shuttle_st  db_st
        ----------  -----
        X           X       -- X is in both shuttle selection and DB rowset
                    Y       -- Y is not in the shuttle selection but is in DB rowset
        Z                   -- Z is in the shuttle selection but not DB rowset
    
        We therefore need to leave the X row in the DB unchanged, delete the Y row,
        and insert the Z row.
    
        This query should also contain other columns and values required in matching
        rows in the merge, or in inserted rows.
      */
        select
            shuttle.column_value shuttle_st
          , db.st db_st
        from
            table(string_to_coll(:p37_states)) shuttle
              full outer join shuttled_states db
                on shuttle.column_value = db.st) t
      /*
        Match conditions normally include matching PK and/or other values to get the
        relevant DB rowset, but the main requirement here is a predicate that matches
        using the DB value column from the shuttle/DB rowset pair.
      */
      on (ss.st = t.db_st)
      when matched
      then
      /*
        This is where the restriction applies. Although we don't actually want to
        update any matched rows as they are unaffected by the shuttle selection, the
        MERGE can only delete rows that have been updated. However we can't update
        any of the columns used in the match, so there needs to be at least one
        column available that can be set to the same value to mark the row as
        updated...
      */
        update
        set
            ss.state_name = ss.state_name
      /*
        ...which makes it possible to delete rows that are not selected in the shuttle.
      */
        delete
        where
            t.shuttle_st is null
      /*
        Where there's no match the value is newly selected in the shuttle and is
        inserted as a new row.
    
        (Other values required should be included in the query, or handled in a
        trigger.)
      */
      when not matched
      then
        insert
          (st)
        values
          (t.shuttle_st);
    
    end;
    

    This method uses to transform the selected values shuttle of a string delimited by two points in a set of SQL. The function provided by Oracle apex_util.string_to_table returns a PL/SQL associative array that is not appropriate for this. If it is possible to convert a string into lines purely using SQL, these methods are rather obscure and only can be reused by cutting-and-pasting. A simple function that returns a collection of standard SQL type can be used as a set of rows in a query through the SQL TABLE operator and is highly reusable:

    create or replace function string_to_coll (p_string in VARCHAR2) return sys.ODCIVarchar2List
    is
    
      l_table apex_application_global.vc_arr2;
      l_list  sys.ODCIVarchar2List := new sys.ODCIVarchar2List();
    
    begin
    
      l_table := apex_util.string_to_table(p_string);
    
      l_list.extend(l_table.count());
    
      for i in 1..l_table.count()
      loop
        l_list(i) := l_table(i);
      end loop;
    
      return l_list;
    
    end;
    

    For purposes of demonstration, this one uses the predefined sys . ODCIVarchar2List collection type. In real life, you would create your own, and of course the function would be in a package, not stand-alone.

  • Canon MG7100 prints but will not scan after update of the iMac? How to fix?

    Canon MG7100 worked very well with the iMac - scanning and printing. After doing the updates of the iMac and installation Siri scanning does not work. Always printing. The printer/scanner Canon said - Set PC to start scanning - I have MG7100 added on the iMac. I opened (and re-locked) firewall to let in the Canon UJ utility. I deleted the all-in-one Hi - and added MG7100.

    http://support-Asia.Canon-Asia.com/contents/Asia/en/0100535401.html

    doesn't look like canon has a printer that takes in charge the newer versions of Mac OS x, if I were you I would take contact them to see if they plan on support of new versions, apple made no drivers for the hardware they don't and if hardware manufacturers does not provide a working driver head can group with the new version of Mac OS x We have to rely on manufacturing to have a download on their page

  • The closed display mode is no longer works after update of the Sierra on my MBPro. Known bug?

    I use a vertical dock for awhile, so my MBPro retina works in closed with external display, KB and mouse display mode.

    But since I installed the update of the Sierra, the external display not Mac OS desktop.

    It only works when I open the built-in screen...

    The bug is known? Or y at - it a setting to adjust on the Sierra?

    Thank you in advance

    Hi darklemon,

    I understand that, since the update to Mac OS Sierra, you've been unable to use your MacBook Pro in closed view. I know it's important to use your computer in a way that suits you, then I'm happy to help you.

    Let's start by resetting your memory NVRAM and SMC which can often help with system display and related issues:

    How to reset the NVRAM on your Mac - Apple Support
    Reset the management system (SCM) controller on your Mac - Apple Support

    Once you have done this, follow the steps here to set up the closed display mode:

    Use your Mac laptop to view closed with an external display - Apple Support

    Thank you for using communities Support from Apple. See you soon!

  • Update of the bad experience of typing after Sierra

    After the update of the Sierra the typing experience is sub par.  He lags on the screen and sometimes the AutoCorrect intervenes before you finish typing, "correcting" the word after that I typed it correctly.  It sorts of predicted what I'm typing and corrects until I finished typing so that the end result is something like "unbelievablele" or "correcteded."

    Anyone with the same problem?

    You can disable the automatic correction of spelling and grammar until you are done typing and then allow him to do these things on your work completed. What you have described is Pages doing all this while you type. On the Edit menu.

    Uncheck all the features in the submenu, as I've shown here:

    When you are finished typing, then display spelling and grammar.

  • cannot select the disk to install the update of the Sierra (Macbook Pro 13 inch, late 2011)

    I downloaded the update of the Sierra and proceeded with the installation. However, I noticed that even if I could move the pointer autour, I couldn't make selections on tapping the trackpad. I managed to get past the first steps by using the 'tab' key (keyboard) to make selections and 'space' to make the confirmations. However, arriving at step 'select the disk where you want to install Mac OS', the 'Tab' and 'Space' technical has stopped working. Now I'm stuck here. Can someone tell me please how to go beyond this?

    Looks like it's a problem of trackpad? Or in any case a trackpad issue connected with installation of Sierra? I would take the MBP for a Genius Bar...

  • Time Machine does not work after update of the Sierra

    The time function machine my Mackbook Air 2011 stopped working... it has not been saved since update for Sierra, it only take screenshots every hour, it will perform a backup is no longer on my external HD as before.

    There is no problem with the way it is implemented or the hard drive, it's me that my iMac is working perfectly since the update for Sierra and it's backup via the time machine on the same hard disk.

    It is a hard drive and put in place I was in use for about 5 years with no problems.

    Also since the update for Sierra I noticed that my MacBook Air gets hot and the fans go wild, although there was nothing or performance other than the system is auto.

    I lost the use of my built in camera after the update to El Capitan, and now I've lost the use of time machine... I was wondering if I should go back to Yosemite that everything worked well then!... is this possible?

    Thanks for any help with this!

    Update:-just so you know, time machine is to find the back up ok drive (external hard drive), it then goes to "preparing backup" and that's all, he remains in this preparation save the scene for centuries, after a while it just stops and it is saved all... nothing!

    Also noticed when I checked in Time Machine full backup I have before update for Sierra disappeared, he disappeared, been deleted... I don't know what is happening with it!

    Overall since the update for Sierra my MacBook Air did not work properly, in addition to all that Safari does not load, just to get the wheel spinning, and now (with the demise of my old back ups) it seems I can't go back to a previous state.

    My Mackbook Air took it!... the last update took the camera and really Sierra in... material not compatible with all new software, none of the new features work on my iMac or MacBook Air (only Siri), so a useless upgrade for me really, wish I didn't!

  • Some problems of AppStore after update of the Sierra

    Hi, after update my Mac to Sierra, there are a few problems of the AppStore:

    1. The Pages app updated to v6 and numbers to v4, Keynote, but fails to Update v5 (iWork ' 09)
    2. I've been on the program of public beta for Sierra but have now updated to the release version, but the app store is still trying to download the last Beta of Sierra. I disconnected (e) into the beta program website
    3. The AppStore download iPhoto but the app shows the icon of the incompatible (white circle with bar diagonally) in the Application folder - how to uninstall it?
    4. Is does not work available on the AppStore - the previous Terminal command Debug menu for access to this

    Thank you

    Hello

    Safe Mode boot removes the system caches that can you help an update or upgrade.

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

  • Update of the Sierra did not update

    I'm under 10.11.6 on a 2013 11 "Air w / 8 gb and 92 GB of free space on my ssd.  This morning, before I went to have breakfast, I plugged the computer to the power brick and ran the update for Sierra.  When I came back home and connected to the computer I ran "about this mac" in the Apple menu and indicated that I was always running El Capitan.  I searched my ssd to see if there is perhaps a .dmg file or file install somewhere, but there was not.  I also looked in the section updates from the apple app store to see if she was still showing Sierra, but it wasn't.  Also, I rebooted the computer and no change.

    Can someone enlighten me on what happened here?

    Looks like there was a problem with the download, installation failed.

    Try to do it again and this time stay with her so that you can see what is happening.

    You do backup before the upgrade?

  • Update of the absent or invisible e-mails in personal folders from Sierra

    My emails have disappeared from personal folders in Mail since macOS Sierra update from the previous version of El Capitan, indeed personal files themselves seem to be absent or invisible.

    New e-mails that arrived later, for which I put rules in place to move the email to a subfolder in my personal files seem to re-create or reveal part of the hierarchy of folder necessary to reveal or recreate the destination magically subfolder AND reveal not only the new email but also all other emails which were previously contained in this file. However, enamel and her sisters in this subfolder are actually visible once I left and reopened the Mail App.

    Very weird.

    Someone else had a similar problem and / or found a solution?

    Installed Sierra (from Yosemite) Wednesday. First I noticed that my Mail signatures had disappeared. Called Apple's Support, first of all a failure, was transferred to an older person. Repaired permissions, restored from Time Machine - still do not work. Discovered yesterday that some of my mailbox folders were empty, some had old messages, but not recent. A vain another senior tech and reported it to the engineering team.

    I have since discovered that the missing messages are there, but they are invisible in the boxes to the letters. When I do a keyword search, 'invisible' messages are returned in the search results (list as being in their appropriate folder), and I can read the full message of the search window. But if I open the file, it does not show.

    Also, I read in the Inbox of messages disappear after I read the. Demented.

  • Installed Apps not updated in the App Store

    Updating macOS version 10.12 on MacBook Pro retina Sierra updates (end 2013) available in the App Store. When you try to update, receive the message "Apple Media Services terms and Conditions have changed. " ... To continue, you must read and agree to the new terms. I accept conditions and access updates. When you click on the app for the update, the same message again. Through accepting the terms and Conditions again and repeat the same cycle over and over again. May not know what is the problem?

    Start Safe Mode removes the system caches that can help.

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    Then try to update applications.

  • 10 update on the 5s iphone iOS

    my iphone 5s will not update to the most recent software update ios 10, I have the downloaded the update will be not only as a result of the update

    Greetings calebbunt,

    Thanks for posting in the communities of Apple Support. I see that you are not able to upgrade your iPhone to iOS 10. I know how it is important to be able to update in order to use all the new features.  I'll be more than happy to help.

    First of all, I recommend you take a look at this article:

    Get help with updates of live iOS - Apple Support

    If this does not help, it would be useful to update via iTunes using this article:

    Update the software on your iPhone, iPad or iPod touch - Apple Support iOS

    Finally, if you still have questions, this article will help you:

    If you are unable to update or restore your iPhone, iPad or iPod touch - Apple supports

    Have a great day!

  • Restrictions does not not after ISO put 10.0.1 update with the new iPhone 7

    Restrictions does not after ISO put 10.0.1 update with the new iPhone 7 any which option of ranking app I don't choose no changes are made.  All the patches?

    Thank you

    Hello Launcher,

    Thank you for bringing your question about Restrictions here in Apple Support communities. My understanding of your question is that you change the Restrictions, but no change is noticed. I tried the same on my iPhone 6 Plus running iOS 10 and noticed a similar situation. Please allow me the opportunity to explain how the Restrictions is designed to work. First, I put my limitations for applications, do not allow Apps and together 4 +, which basically means everything beyond 4 + will be blocked from buying. Then I went to the App Store and the first app that caught my attention was NCIS: hidden crimes. This app is rated 12 + and is definitely an application I would not want my toddler to help. It is that Restrictions come into play. When I type on NCIS: hidden Crimes, the Get option is grayed out. Restrictions does remove all apps, songs, books, etc. from view, but it will prevent the purchase, download, and install all applications rated above the setting you choose when you set up restrictions. It's the help article that discusses the Restrictions and prevent purchases: Use Restrictions in order to avoid buying on iPhone, iPad, or iPod touch.

    I checked on the restrictions help articles, and I understand where it can be a bit confusing. In the help article Use Restrictions on iPhone, iPad and iPod touch, it says "You can use Restrictions, also known as parental control, to block or limit specific applications and features on your iPhone, iPad or iPod touch." This means in fact that apps, features or services (rated above that helped you, or if you have turned off completely) can he no longer appears on the device if the restriction is activated and starts blocking them. I also tested this by activating Restrictions and turned the cursor for Safari to off. When I went back to the home screen, Safari doesn't show any more and I could no longer use it.

    I hope this helps to clarify how the Restrictions. If my understanding of the issue was not accurate to the issue that you are experiencing, I will be happy to pursue this issue with you. Please indicate exactly what you took measures, and what expectations you had or the some restrictions, applications, features, or services you are restricted. Thanks again and have a great rest of your day!

  • anniversary 10 Windows update breaks the bootcamp drivers

    I bought the home edition of windows 10 must be installed with bootcamp on my Mac Pro (latest version).

    After a few seconds the bootcamp drivers installation, I get a blue screen saying "kernel Security Check Failure. I tried to re-parititon and re - install windows with bootcamp 10 several times and the results are the same. I found an earlier version of windows 10 online and when I tried to install it, the problem goes away. but then when I update this old windows 10 with the update of the anniversary, the problem appears again. so I guess that the problem is related to that! in safe mode I get no blue screens. today I intend to try to uninstall the driver of each training camp in a tower, until I tell me what is the cause of blue screen. so far, I removed the graphics drivers, but the results are the same.

    If anyone can provide all the information on how to study this issue further away, or maybe even solve it, I'll appreciate it more! Thank you

    My Sepcs are:

    Graphics card: Dual AMD over-pants D300

    Processor: Intel Xeon E5 1620 v2

    Memory: 12GB DDR3

    I suggest you that stay with the working version. Please see Re: Windows 10 anniversary + Boot Camp = Assembly is more Mac partition for more details.

Maybe you are looking for

  • Photos on a disc burning

    I want to burn photos to a CD - R, something I have often done before.  My computer insists on the fact that there is no disc in the drive, he produced to eject one that I just put in!  By the way, how many photos on average will have a disc hold, I

  • SanDisk cruzer device error

    I opened the file of the sandisk cruzer, it has a message that says cannot work due to the I/o device error.

  • BlackBerry Facebook Z10 z10 Mobile client

    Facebook behaviour seems to have changed from this morning: at the start of the application, I get a message "no narrative not returned."  I tried a reboot hot, cold with the app restart reinstall nothing helped.  Then I came across of workaround: sa

  • Windows 7 is locked in the "upgrade" process. There seems to be nothing I can do to get past this window

    When I "woke up" my laptop, he said that it was up to date. " He was locked up on # 3 of 16 updates for hours. There seems to be nothing can I do to stop this process and I can't access my computer.

  • SQLDEVELOPER 4.1.3 - DBA Plugin

    Helloin the new version of sql developer, 4.1.3 when I try to open view-> plugin s/n, generates the following error:SEVERE1030org.openide.util.RequestProcessor$ ProcessorError in oracle.ideimpl.usages.UsagesTrackerImpl$ 3 RequestProcessorS/n plugin n