Need update in view

Hi all i have a view and i want to update it through forms please guide
create or replace view v_ready_stock as
SELECt prod_id,style,color,region,rack_no,
                sum(case style_size when 'XS' THEN qty else 0 end) as xs,
                sum(case style_size when 'S' THEN qty else 0 end) as s,
                sum(case style_size when 'M' THEN qty else 0 end) as m,
                sum(case style_size when 'L' THEN qty else 0 end) as l,
                sum(case style_size when 'XL' THEN qty else 0 end) as xl,
                sum(case style_size when 'PCS' THEN qty else 0 end) as pcs from ready_stock
group by prod_id,style,color,region,rack_noThanks ANd Regards
Vikas Singhal
Edited by: vikas singhal on Dec 9, 2010 4:38 PM

i think because of the aggregation you can not use the block property Key Mode=Automatic: an update with primary key or rowid is not possible. try following settings for the block:
Enforce Primary Key : No
Query Allowed : Yes
Query Data Source Name: [name of the view]
Insert Allowed : Yes
Update Allowed : Yes
Delete Allowed : Yes
Key Mode : Unique
btw.: you have to do the INSTEAD-OF-INSERT trigger to update the underlying table, NOT the view!

Similar Messages

  • Update maintenance view data by FM .

    Hi friends,
             I want to update Maintenance view data  not by using sm30,sm34,transactions . i want to update by FM . i will pass the data and view name  so that it should update the data in views( and corresponding tables ) .
    and  we need these changes should be stored in change request also .
    Regards,
    Shiva.

    you can use FM
    VIEW_MAINTENANCE_NO_DIALOG
    with action parameter = 'SAVE'
    just do a where used list of this FM to check how this can be used
    Regards
    Raja

  • Creating a role to update a view

    Hi.
    Oracle 10.2.04. Linux 4.
    I have been reading about updating views. The Oracle documentation http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/views001.htm#i1006887 states that:
    The owner of the view (whether it is you or another user) must have been explicitly granted privileges to access all objects referenced in the view definition. The owner cannot have obtained these privileges through roles. Also, the functionality of the view depends on the privileges of the view owner. For example, if the owner of the view has only the INSERT privilege for Scott's emp table, then the view can be used only to insert new rows into the emp table, not to SELECT, UPDATE, or DELETE rows.
    This is helpful, but doesn't resolve my issue.
    A role has been created to allow access to a view called SALES_RESULTS:
    create role update NOT IDENTIFIED;
    GRANT INSERT, SELECT, UPDATE ON SALES_RESULTS TO update;
    GRANT update to user;
    When user tries to update the view however, an error is returned. (Sorry, I dont know the error just yet!!)
    In essence, my question is: in order for the updates to work, does the user 'user' need explicitly granted priviliges on the underlying objects, as stated in the Oracle doc extract above - which was discussing the owner of the view?
    Thanks.
    DA

    You have an actual example that shows it does not work. Also, it is stated in the documentation.
    What else do you need?
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Updatable Materialized View and Master Table on same database

    Hi all,
    My first question - Is it possible to have an Updatable Materialized View and the associated Master Table located on the same database?
    This is the requirement scenario:
    One unique database D exists.
    A is a batch table. Only inserts are allowed on Table A.
    M is an updatable materialized view on Table A (Master). Only updates are allowed on M (no insert or delete).
    Requirement is to push updates/changes from M to A periodically and then get the new inserted records from A into M via a refresh.
    Is this possible? What other approaches are applicable here?

    John,
    My question is related to the implementation and setup of the environment as explained in the above example. How can I achieve this considering that I have created an updatable m-view?
    If possible, how do I push changes made to an updatable m-view back to it's master table when/before I execute DBMS_MVIEW.REFRESH on the m-view? What is the procedure to do this if both table and mview exist on the same database? Do I need to create master groups, materialized view refresh groups, etc.?
    One more thing.. Is there a way to retain changes to the m-view during refresh? In this case, only newly inserted/updated records in the associated table would get inserted into m-view. Whereas changes made to m-view records would stay as-is.
    Hope my question is directed well. Thanks for your help.
    - Ankit

  • Scheduling updatable materialized view

    Hi everybody,
    As you may know I have a solution in which I have 5 sites .One master site with 4 updatable materialized view sites.
    I want to know that is it correct if I dont set up schedule push to run periodically and set it up to do continuous push ?
    I want in at least 2 minutes all sites become update and I have to mention that at first I tried multimaster but our client doesn't want that because they want if one special site becomes unavailable they others can not transfer data to eachother.
    I appreciate your help in advance.

    Your requirements are a bit unclear...
    1) In general, if you are looking to have sites updated within a minute or two of the original transaction being committed, you are better off looking at something like Streams rather than using materialized views.
    2) Architecturally, when you set up multi-master replication (which it sounds like you are attempting to do here), you need to choose between synchronous and asynchronous replication. Synchronous replication means that a transaction cannot commit until it has been pushed to all the other nodes, which is great for latency but horrible for performance, scalability, and availability. Very, very few people really want synchronous replication. That leaves asynchronous replication, which would require you to schedule jobs to replicate changes. Some folks who think they want asnychronous replication really want another technology entirely (i.e. DataGuard, RAC, etc).
    3) Are you sure about the requirement "they want if one special site becomes unavailable they others can not transfer data to each other"? That says that if one site fails, they want all transactions everywhere to fail. That pretty much defeats the purpose of setting up multi-master replication. If the system is only available as long as every node is available, and you're going to incur the overhead of synchronous replication on every change, you would be far better served consolidating everything into a single data center and potentially using RAC to create a multi-node cluster to spread the work among nodes. There would be very little benefit to offset the complexity of configuring and maintaining a multi-master replication environment if you didn't want the nodes to be able to continue in the event that one of them failed.
    Justin

  • Update Power View reports properties using custom code

    Is there any way to update power view reports uploaded in SharePoint 2013 shared data source link using custom code?
    Best Regards,
    Sameer Salunke
    MCTS-Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    Someone out here must have an answer????   I know that SharePoint 2013 saves the view created in Power View therefore the metadata must be accessible somehow?  Can someone explain
    how to find that metadata in the SQL tables maybe?  I would be surprised to find out I am the only one who needs this?
    Ken Craig

  • Asynchronous update and View customization

    Hello!
    I faced with an issue: I have a custom view of the some list with about 9 columns with long header title. For best viewing in properties of header cells we unchecked No Wrap option. And that view became looks good. After that we enabled Asynchronous update
    option with refresh interval, and after that action my view in browser was looking like I don`t unchecked No Wrap option. But when I open that view in SP Designer for editing it looks properly, instead browser.
    When I disable Asynchronous update my view became looks properly (with word wrapping in header cell). Can you advise to something to help me solving this issue.
    Thank You in advance!

    Hi,
    See you can develop reports of fetch it from standard transactions.
    Also for your info, you can fetch it from tables. Ir you run tables like VBRK, VBRP by entering revelant data you can find the previous as well as current sales data.
    For finding returns sales data, you need to pass the necessary return document type (returns memo etc) in the above said tables.
    Hope this helps you
    Regards,
    Dhananjay

  • Forms always marked as need update in Sharepoint designer 2010

    Some of the automatically generated task forms in Sharepoint designer are marked 'needs update', when I open them in Infopath I get the dialog that says:
    One or more fields in the workflow form have changed. InfoPath will now update the set of available fields. You may need to modify your form view to add or remove the updated fields.
    Making a change and publishing it gives a 'publish sucessful' confirmation dialog but the modified date on the form in Sharepoint designer doesn't update and is still marked as needing an update even after I refresh it. Closing and reopening it gives an updated
    modification date but the form is still marked as needing an update. What am I missing here?

    Hi ,
    I understand that some task forms in your workflow are marked ‘needs update ’even though you have published the changes in InfoPath designer . Can you have a test like this :Create a new workflow with the ‘Start Approval Process ’ action .Publish the workflow
    .Then open the task form in InfoPath designer to see whether the ‘need update’ message will show up .
    I have met this situation once ,after I restart SharePoint Designer and InfoPath .The problem solves .
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Oracle Streams vs. Updatable Materialized View

    Does anyone have an idea in which cases Oracle Streams is better than Updatable MV or visa verse?

    Are you really talking about Updatable Materialized Views? Or multi-master replication? Personally, I'm rather hard-pressed to come up with a situation where updatable materialized views would be useful unless you're taking the next step and doing multi-master replication.
    In general, Streams is going to put less load on the source system than materialized views and is going to replicate data more quickly. The downside tends to be that it's a relatively new technology, so it's not appropriate for environments that have older versions of Oracle. Going along with that, you'll find a lot more people/ organizations/ setups using materialized views than Streams, which can be a good thing if you need to hire new staff/ get support from a local user group/ etc. Streams also tends to be more flexible, which can be a good thing, but also tends to make things a bit more complicated.
    If you can outline the particular problem you're trying to solve, we can probably be a lot more specific...
    Justin

  • Need update numbers 2.3

    I need the last Numbers 09 Update 2.x

    Hi,
    OS X 10.10.1 (14B25)
    MacBook Pro (13 Zoll, Mitte 2012)
    2,9 GHz Intel Core i7
    8 GB 1600 MHz DDR3
    Intel HD Graphics 4000 1024 MB
    I work with numbers 09 version 2.0 and OS Yosemite.
    I want to update numbers to version 2.3 to fix some problem, but I can’t update it.
    I only can get a update to numbers 3.5, but I don’t want the Version 3
    Can you help me?
    Am 20.12.2014 um 09:04 schrieb Apple Support Communities Updates <[email protected]>:
    You received a reply
    Yellowbox <https://discussions.apple.com/people/Yellowbox?ac_cid=op123456> has replied to your question. You can view the full discussion <https://discussions.apple.com/message/27321301?ac_cid=op123456#27321301> in Apple Support Communities.
    need update numbers 2.3 <https://discussions.apple.com/message/27321301?ac_cid=op123456#27321301>
    Hi Soundpat,
    We need more information. What machine, what operating system? What is not working for you?
    Regards,
    Ian.
    Correct Answer <https://discussions.apple.com/email/thread/6733559/correct/27321301> Helpful Answer <https://discussions.apple.com/email/thread/6733559/helpful/27321301>
    Use the buttons above to tell Yellowbox and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to Yellowbox, go to the discussion <https://discussions.apple.com/message/27321301?ac_cid=op123456#27321301> in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile <https://discussions.apple.com/user-preferences!input.jspa>.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved <http://www.apple.com/legal/> | Privacy Policy <http://www.apple.com/legal/privacy/> | Terms of Use <https://discussions.apple.com/docs/DOC-5952> | Apple Support <http://www.apple.com/support/>

  • How to install OS 9.2.1 on G3 with no OS; says needs updated firmware, how?

    I am trying to install OS 9.2.1 in an old G3 which at present has no OS in it.
    The screen says it needs updated firmware to do so. When I try to follow instructions, it tells me the CD is locked, which is obvious since it is an installation CD. Other instructions seem to assume there is already an older OS in the machine to update. Anyone with an idea of how to break this log jam?
    [email protected]

    Hi wmarina !
    Welcome to the Discussions, and Happy Thanksgiving!
    The only G3 that will give you a Firmware Update warning when trying to install OS 9, is a Blue & White G3 tower.......
    If that's what you have, then getting OS 9 onto it is a bit of a Catch-22, Can o' Worms, P.I.T.A., or whatever other favorite sayings you may have for a difficult job........
    "Other instructions seem to assume there is already an older OS in the machine to update."
    Very astute observation, and 100% correct.
    The OS that is assumed to be on the B&W's drive is MINIMUM 8.5.1, and therein lies the Catch-22.....
    A BOOTABLE 8.5.1 Install CD is NOT available as a RETAIL CD........
    The Retail CD is 8.5 install, with the 8.5.1 UPDATER, which is also on the CD.......
    The 2nd part of this problem is that the Firmware Updater (which is on the OS9.1 CD) MUST be run from the booted Hard Drive with 8.5.1 on it.........
    Your options are:
    1. Find a set of the ORIGINAL SOFTWARE CDs that shipped with a Blue & White G3, and install the original OS from there.........
    2. Do what I had to do. Take out the Hard Drive and move it to an older Mac (i.e. Beige), and install OS 8.5 on it, and update it to 8.5.1, take the Hard Drive out and re-install it into the B&W again, boot to it, and do the Firmware update at that time.........
    Note that NO Mac can boot to an EARLIER version OS than it shipped with when new, which is why you will have to use a beige to install 8.5.1 to that hard drive........
    As a secondary note, to avoid more problems, get a new Pram battery (1/2 AA 3.6V).
    Available at any Radio Shack.
    Good Luck !
    Kevin
    G3 1.1Ghz B&W, Digital Audio G4 Dual 533,G3Beige,8600/G4-800, 7600/G3-300, 6200 Ret.   Mac OS X (10.4.3)   ATI RADEON MEs: 7000, 9200, 9800, nVidia ? 64MB

  • I am signed into the App Store on my iphone 4 and one of my apps need updating and my brother was signed into it but its like its locked to his Apple ID I have tried signing out and turning my phone off its just not working

    I am signed into the App Store on my iphone 4 and one of my apps need updating and my brother is signed into it because I didn't have any credit to make an ID so he signed in so I could download apps but its like its locked to his Apple ID I have tried signing out and turning my phone off its just not working please help.

    Apps are locked to the Apple ID that was used to download them. You will have to sign in as your brother in order to update it.

  • My ipod touch is telling me that the skype and twitter apps need updating. When I try to run them they fail. I have tried deleting the apps via itunes but it doesn't work and I have tried updating the apps via itunes and it says they are updated.

    My ipod touch is telling me that the Skype and Twitter apps need updating.  When I try to update them they both fail. I have tried numerous times.  I have tried connecting the ipod to itunes and removing the apps, to reload them but that does not work either.  If I try and update the apps through itunes the system tells me they are updated.  Can anyone assist please?

    - Try a reset. It cures amny ills
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Have you tried deleting them from the iPod and then redownloading them dorectly to the iPod?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Hi why when i plug in my ipad to my macbook the apps wont update that need updating on macbook and ipad

    Hi i am baffled as to why when i have apps sitting in my Itunes on the Macbook that need updating used to start straight away once i plugged in the ipad or iphone ,now all updates on ipad or iphone i do manually same with the macbook .Any help would be most grateful thanks guys..

    Hi, I had the same problem. I finally figured it out. Plug in the USB cord to your ipad, but beofre plugging it into your computer make sure your ipad is not in the locked or sleep mode. Once I did this, my photos showed up and started downloading. Hope that helps you!

  • I just installed Mozilla Firefox 3.6. This is the first time have have installed Firefox. My problem is I no longer have the screen which lists which plugins need updating and researching. How can I find out which plugins need updating or researching?

    After installation it told me to update or research several plugins. I updated Silverlight and JAVA. I was instructed to shut down and restart my computer to test the JAVA installation. I did this and the installation is fine. At this point I no longer had the screen with the list of plugins that need updating or researching.

    THis is probably the page you saw.
    http://www.mozilla.com/plugincheck/
    You can also access it from the Firefox menu by clicking "Tools -> Add-ons -> Plugins" and then clicking the Find Updates button at the bottom.

Maybe you are looking for

  • Acrobat Toolbar in Word 2008?

    I have Acrobat 8 Professional and Office 2008 installed. I want to convert a Word document to PDF format *with bookmarks*. I'm a recent switcher from Windows, and on Windows I had an Acrobat toolbar in Word that did this with a single mouse click. Al

  • JSP Scope Limits

    I'm just starting with JSP. Can someone tell me why I can query the database and output the first occurance of lastName, but not the 2nd occurance (noted by comments in caps)? Are there scope limits between the action sections? Is there a better way

  • Quality operation confirmation check point

    There are 3 operations in routing, out of that 2nd operation is quality check. If QA person does final confirmation for 2nd operation by accepting 9 nos out of 10 and scrapping one number due to quality issue. During final operation confirmation and

  • Any interest in a medical repo?

    Hi all, As a med student with an interest in linux I was wondering if there was any interest in a medical repo? I have made a few packages for personal use, mostly DICOM viewers and libraries, one of which is in AUR and the rest of which will follow

  • TS1702 How to stop an app download when hit accidently

    How do you stop an app download when you accidentally hit the download button on iPad 3?