Crosstab/Pivot queries.  How can I edit using Apex?

Hello, all.
I currently have a report within Apex that displays the results of a crosstab/pivot query as shown below. This works fine.
What I now need to do is provide edit functionality on each row. The row does not have an individual ID column per sé as each row is the result of the crosstab query.
What is the best way to offer the edit functionality using Apex?
Thank,
S>
QUERY:
SELECT vendor, product,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JAN', amount, NULL)) AS JAN,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'FEB', amount, NULL)) AS FEB,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'MAR', amount, NULL)) AS MAR,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'APR', amount, NULL)) APR,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'MAY', amount, NULL)) MAY,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JUN', amount, NULL)) JUN,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'JUL', amount, NULL)) JUL,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'AUG', amount, NULL)) AUG,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'SEP', amount, NULL)) SEP,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'OCT', amount, NULL)) OCT,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'NOV', amount, NULL)) NOV,
     MAX (DECODE (TO_CHAR(valuedate, 'MON'), 'DEC', amount, NULL)) DEC
FROM (SELECT v.NAME AS vendor, p.NAME AS product, vt.NAME AS valuetype,
          e.datetime AS valuedate, e.VALUE AS amount
          FROM pfm_entry e, pfm_vendor v, pfm_product p, pfm_value_type vt
          WHERE e.vendor_route_id = v.route_id
          AND e.product_id = p.ID
          AND e.value_type_id = vt.ID
          AND e.value_type_id = 1
          AND e.datetime BETWEEN '01-JAN-07' AND '31-DEC-07')
GROUP BY vendor, Product

Hello, Steven
Maybe you can use collections for that.
Create a new collection which store your select statement.
Each member of the collection have a unique id so you can use edit functionnality.
And create a PL/SQL process which update your original table when the elements
of your collection is updated.
You can look at this doc. It may be useful.
http://www.oracle.com/technology/oramag/oracle/06-nov/o66browser.html
Mike

Similar Messages

  • How can I edit a PDF file using Adobe assistant?

    How can I edit a PDF using Adobe assistant?

    The is no PDF editor called Adobe Assistant. What did you actually buy (check your invoice for the name if you can't otherwise tell)?

  • How can I edit excel with my iPad?  Doesn't let me see pivot tables or drill downs...

    How can I edit excel with my iPad?  Doesn't let me see pivot tables or drill downs...

    Read https://discussions.apple.com/thread/4956673?start=0&tstart=0
    Allan

  • How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

      How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

    Contacts are synced with a compatible programme in the computer; in the iCloud or with Yahoo and Google Mail. You can directly "edit" a contact on the phone and/or within the programme that you are syncing your contacts with.
    Have you configured/setup mails on your iPhone? If yes, check the contents of the mail account(s) individually. (including iCloud)  from SETTINGS - MAILS, CONTACTS, CALENDARS
    "Contacts" if chosen from the mail account (s) would add email addresses to your contacts.
    http://support.apple.com/kb/HT1296

  • How can I edit photos on iPad 1? Rotate photos, crop photos. Used to work before OS5 update.

    How can I edit photos on iPad 1? I want to rotate photos, crop them, etc.  Is there a specific mode that I have to be in to edit? I believe it used to work before I "upgraded" to ios5. Would like any help here. Thanks

    Editing photos in the Photos app is not supported on the first gen iPad - and didn't exist prior to iOS 5.
    Edit - iOS 5 features by iPad version : http://support.apple.com/kb/HT4559

  • How can i edit a photo to a specific height & with . Using photoshop elements 4.0

    how can i edit a photo to be a specific height & width using photo shop elements 4.0

    Use the crop tool. Enter the dimensions on the tool's option bar.

  • How can I start using Oracle Express Edition

    Good afternoon, how can I start using Oracle Express Edition? I have it installed it but I can not enter any user or key that allows me to manage the program from the Internet. I have understood that this version is free.
    Correct me I'm wrong and please do noted me. In my country this course very expensive and I'm looking to learn on my own.
    Edited by: user12301712 on 03-dic-2009 9:46

    Hi
    During installation wizard asked you about password for SYS and SYSTEM user, you had to set it. If you forgot you can loggin to ORACLE via SQL plus without password:
    c:\>SQLPLUS / sys as sysdba
    after connect you can set new password for any user, for example (SYSTEM user):
    ALTER USER SYSTEM identified by NEW_PASSWORD;
    After this you can login to APEX (Internet enviroment)
    Remember Oracle it's not only Internet frontend, it's huge tools with many functions. If you need study Oracle you need many time and zest but it is worth-while.
    Yes Oracle XE is free (read licence agreement).

  • Hi sir im using fcp 7 for video editing in i mac, how can i edit mts files in fcp 7 without log n transfer, is their solution for fcp 7?

    Hi sir im using fcp 7 for video editing in i mac, how can i edit mts files in fcp 7 without log n transfer, is their solution for fcp 7?

    >No, you are not right.
    Going to question the biggest contributor to this forum?  (Yes, my ego is talking).  OK then...
    >Install the QT-Plugin, restart your Mac and you will be able to import and use .mts files in FCP 7.
    Sure...yes, that makes it POSSIBLE to read the files natively in FCP...if they come from a Panasonic camera. BUT...just try working with those files.  Right away the system won't be nearly as responsive as it would if they were ProRes. First...there are no sequence settings for that format...so you'll have to use ProRes and have a green render bar.  BUT, that's no big deal.  The big deal is trying to work with the AVCHD format, which is VERY processor intensive...inside an application that doesn't like to work with much outside of the FCP editing codecs.
    Is it possible? Sure? Will it work well...will you be as zippy and error free as if you converted to ProRes? Not by a long shot.  OH, but don't just take my word for it.  Go ahead...try it and see.  No skin off my nose...no waste of my time.  See how well this works. 
    I'm just here to relate real world working solutions to issues.  And yes, I did try that plugin, and boy, was editing a pain.

  • How can we edit the workbook

    hi
    how can we edit the workbook means i am having a workbook with some queries, i want to change the name of the workbook how we do this?
    Can any one provide me the solution
    Thanks in Advance.

    Hi,
    In our case, even though i change the name of the workbook using 'Change title' that is not reflected in the workbook if it is in a role. so, in that case, goto pfcg - enter the name of the role -> menu tab -> change the workbook name for the workbook of your choice.
    Thanks

  • How can 2 people use itunes in the same household? we both have iphone 4 and separate id but the same itunes? pleasehelp

           how can two people use itunes in the same household? i had a iphone before so alreday had an itunes account now me and my husband have upgraded and we now both have them. he has set up a username and i have mine yet when he logs in he seems to just get my account? please help

    Decide which iPhone will be keeping the current iCloud account.  On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.  If you are syncing Notes with iCloud, you'll also have to email your notes to yourself so they can be recreated in the new account as they cannot be migrated.
    Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The phone that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone.  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, to un-merge the data you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting your wife's data from your account, and vice versa).

  • How can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?

    Good afternoon friends.
    Please help me and tell how can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?
    I started using Apple ID in 2011 when iCloud was not exist and was forced to use non-apple e-mail adress as primary ID.
    So I used GMail mailbox.
    When iCloud was started I created my account but unfortunatelly can't remove this Gmail address from my Apple ID and replace it with icloud mail address.
    I was VERY dissapointed because I don't want to use "outside" mailbox to get letters from Apple and ny ID.
    In fact I see the Apple old users and fans discrimination.
    When creating new user accounts are free to create a box on the iCloud mail and use it as a primary ID, and the only ONE.
    At the same time the old user is obliged to keep third-party mail box like Gmail etc. as the primary and can not get such an opportunity, as a new user
    This is extremely inconvenient and a VERY strange logical.
    For example, now I want to stop using this mailbox on Gmail but I can not do that because in this case I lose access to my ID, or run the risk that someone in the future will create a box with the same name on Gmail (when name will be free and available) and will automatically get access to my accounts on Apple and to my Apple ID.
    Now, to avoid this, your team, I offer the only way out: ID, create anew.
    Of course it's possible, but then:
    - I lose all my purchases for 3 years and will be forced to make them again and pay money for the second time for my purchases
    - Lose access to the familiar iCloud e-mail address who now serves as secondary ID because this e-mail address is almost no longer available and will never be released in future.
    And now answer me for ONLY TWO questions:
    - WHERE IS LOGIC?
    - WHAT ABOUT TO BE FRIENDLY FOR YOUR USERS AND FANS?
    Thank you!
    Hopefully for your GOOD answers.

    You cannot make your @icloud.com address the login address for the ID. However you can change your ID, currently a Gmail one, to any other functioning non-Apple email address. The Gmail address would then no longer access your account, and so even if someone were to obtain posession of it (is that even possible) it wouldn't allow them to get into your account.
    If you want to change your ID to another email address please follow the procedure outlined below, particularly noting the first step.
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Create a new email address, for example  at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
    Enter your new address and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.

  • How can i edit contacts in bulk

    Bought an iPhone 5 and transfered contacts from my old phone and my phone contacts first and last name were reversed. How can I edit my address book contacts in bulk instead of one at a time? And then have these updates in my iPhone 5?

    to any1 that wants to use the scripts and have them work just type "save" on the next like after end tell and itll do it........

  • How can I edit multiple clips with different frame rates on the same timeline

    how can I edit multiple clips with different frame rates on the same timeline

    You do not want to edit material from different frame rates on one timeline. You CAN do this, but it is a very bad idea - and this is why.
    Once you establish the sequence frame rate - lets say it is PAL material at 25fps, any material that you drop into the sequence other than 25 fps will have to be changed to play at 25 fps. If the material you add is NTSC (29.97), FCP will DROP 5 frames per sec to bring the frame rate down to 25 fps. Which 5 get thrown away? Every 6th one. This yields a funky cadence that becomes even more complex as as there are also interlaced fields (DV/NTSC is an interlaced format). Oh, and by the way, the image sizes are different as well. DV/PAL has 576 lines of resolution and DV/NTSC has 480. FCP has to scale up the NTSC to fit the PAL frame.
    You do not want FCP adjusting these things on the fly. You want to do a thoughtful (and time consuming) conversion so that you end up with all your material in one format with the best possible image from the conversion process. Compressor can do an adequate job with Frame Controls turned on. The Natress Standards Conversion FCP plugin is another way to go. A third option is to find a post house that can do the conversion for you using a hardware based process.
    The good news is, once everything is in the same format, editing it will be painless and the output process very quick.
    Whatever frame rate/ image size you select, I'd suggest using ProRes for the codec. It is 4:2:2 color and will withstand color correction and composting with much more grace than any variant of DV based codecs.
    Have fun.
    x

  • How can I edit lightroom 5 smart previews on mac book pro (mbp) when the lightroom 5 master image files are on my external hard drive is disconnected from the mbp

    How can I edit lightroom 5 smart previews on mac book pro (mbp) when the lightroom 5 master image files are on my external hard drive is disconnected from the mbp? So far when I try to disconnect the external HD from the mbp, I get the following pop up window: The disk "external hard drive A" couldn't be ejected because "Lightroom" is using it. Quit that application and try to eject this disk again. When I do that and restart Lightroom 5, the Adobe Photoshop Lightroom - Select Catalog screen pops up but doesn't list my external hard drive A as a choice.
    I've reviewed Adobe's Lightroom Help | Smart Previews Lightroom 5 web page and still haven't been able to figure what I'm doing wrong. Any help would be appreciated.

    Your internal HDD. by default, is named 'Macintosh HD'. From what information you supplied, it looks like there is already a Lightroom catalog installed on you local (internal) HDD using the standard naming convention Adobe uses as well as a Lightroom catalog on your external drive which you created. To be sure of which catalog Lightroom is loading when it starts up, To do this, start Lightroom as you normally would. After it starts, select the Lightroom menu item, then select the Catalog Preferences item and finally, navigate to the General tab. The Location information will tell you exactly what catalog Lightroom is opening by default. This will likely be the Photography Mac Book Pro Versions catalog on your external HDD. Once that is confirmed, you are ready to proceed. As an additional test/verification, you can shut down Lightroom and, this time, start Lightroom while holding down the ALT/OPTION key. This will cause Lightroom to pause and display a screen which will allow you to chose a different catalog to open. Navigate to the /Users/[user name]/Pictures/Lightroom folder and select the Lightroom 5 Catalog.lrcat file. When Lightroom comes up, there should be no previews or folders as this catalog should be empty. Now you can be certain which catalog is being used and which catalog has all your data and you are ready to migrate your current catalog. Shut down Lightroom.
    To migrate your current catalog, use Finder to locate your Photography Mac Book Pro Versions folder on your external drive. Select the folder and select COPY from the context menu. Next, use Finder to navigate to the /Users/[user name]/Pictures/Lightroom folder on you internal HDD. You can start at the Macintosh HD level and work your way down by opening each level (Macintosh HD/Users/[user name]/Pictures). Select the /Pictures folder and then select PASTE... from the context menu. When the COPY/PASTE is complete, you should see the following files on the Macintosh HD:
    Macintosh HD/Users/[user name]/Pictures/Lightroom/ and
    Macintosh HD/Users/[user name]/Pictures/Photography Mac Book Pro Versions
    The Macintosh HD/Users/[user name]/Pictures/Lightroom folder will contain the empty default catalog the Adobe created when Lightroom was installed and Macintosh HD/Users/[user name]/Pictures/Photography Mac Book Pro Versions will contain a copy of the catalog you created on your external HDD.
    You are almost done now. Make sure your external drive is still attached for this step. Restart Lightroom using the ALT/OPTION key again. When the Select Catalog screen appears, select the Choose a Different Catalog button (lower left side). When you do, a Finder window will open to allow you to navigate to a catalog of your choosing. Navigate to Macintosh HD/Users/[user name]/Pictures/Photography Mac Book Pro Versions and select the file Photography Mac Book Pro Version.lrcat. This is the copy you just created. Select the Open button and Lightroom should start. You should see all of your previews and settings just as before. Also, in the left hand panel, all of your folder should show up and none of them should be dimmed and none of your previews should display a small exclamation point badge. Either a dimmed folder name or an exclamation point badge indicates that Lightroom can't find the associated image file. If everything looks good, go to the Lightroom menu, select Preferences and then select the General tab. Under Default Catalog, select an option to either load the LAST catalog opened or select the Users/[user name]/Pictures/Photography Mac Book Pro Versions catalog from the drop down. Shut down Lightroom and then restart it normally. This time, when Lightroom starts, you should be viewing the new copy of your catalog. You can confirm this by looking at the General tab on the Catalog Preferences screen (Lightroom/Catalog Preferences menu items). Shut down Lightroom once again and this time, eject your external drive before restarting. This time, your folders in the left hand panel will be dimmed but you should be able to work with your smart previews. If Lightroom should display a Select Catalog screen with the external drive detached, double check your settings as it indicates Lightroom is still looking at the copy of the catalog on the external drive rather than the new copy you made.
    Finally, if you are seeing dimmed folders and/or exclamation point badges with the external drive attached, this indicates a problem. You can select any folder and select Update Folder Location from the context menu. This will allow you to navigate to the copy on the external drive and select it. Lightroom will then update the catalog (select to synchronize the content). This will not only clear the dimmed folder problem but also remove the exclamation point badges for all photos in that missing folder. However, it may indicate that not all went well with the copy of the catalog so make sure to verify all went well. You can use the Get Info option on the two folders. You should see the same number of files/folders for both the copy on the internal drive as well as on the external drive but you can't rely on the byte count because of the possibility of differences between the geometry of the two drives. Hope this all helps!

  • Set up apple Id with invalid email so can't validate new account. How can I edit account  info when I can't sign in for anything? Thx

    Set up apple Id with invalid email so can't validate new account. How can I edit account  info when I can't sign in for anything? Thx

    Hi Franklin777,
    If you are having issues with your Apple ID, this article will get you started.
    Frequently asked questions about Apple ID
    The first step is to find and edit the Apple ID you created:
    Apple ID: Finding your Apple ID
    If you need to reset your security questions this article will help ... 
    The rescue email address is a different address than the one you use for your Apple ID. 
    Rescue email address and how to reset Apple ID security questions
    You can edit or delete your rescue email address at My Apple ID. To edit your rescue email address:
    Navigate to My Apple ID using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    Hope you get back on track soon!
    - Judy

Maybe you are looking for

  • How to upgrade from OS X 10.4.11 to mountain lion?

    i recently got a macbook and it is quite an old one because its second hand, and it has software version 10.4.11 on it. i've had troubles downloading things because no programs are built for such old software. i think the only way to get past this is

  • FMS RED HAT LINUX PROBLEMS

    Hi, I hope that someone can help me. I am having so much trouble getting FMS to work it is unbelievable. We have installed FMS onto virtual server running Red Hat Linux Enterprise 3. We have managed to get FMS running but cannot get a connection to w

  • Re-syncs same 4000 items every time I open Itunes....

    I am having this issue every time I open itunes. There are about 4000 items that sync every time I open itunes. They are the same songs and podcasts. Why won't these items just stay on the ATV? Also, I have songs in my itunes library that I transfere

  • When my friends dial my skype number it is always ...

    When my friends dial my Skype number, it ia always engaged.

  • Error in a simple example

    Hi I'm trying to make a simple example working. The example was taken from director 11.5 scripting reference pdf. The code is in the function called BuildPolygons whithin a Movie Script. I also added a 3D window to the cast (menu Window/Shockwave 3D)