How do I update a view with a join

I have a module with database block based on a view with joins, so I am not able to perform insert, update & delete directly.
Therefore I created an unbound item that can be changed. The relevant database record is searched and updated.
So, with above work around, insert, update & delete is possible.
This works just fine.
Now, the 'save icon' in the menu (diskette icon), does not get activated automatically when there are changes to be saved. This is because the view is not changed.
So, I enable the 'save icon' manually in the when-validate-item trigger. But now when I navigate to another record, the 'save icon' gets de-activated by QMS/headstart code. This is because the view is not changed.
So, I tried set_record_property (CHANGED_STATUS) to let the application
know there are changes to be saved.
But then, I get an error:
* FRM-40654: Record has been updated by another user. Re-query block to see
change.
What is the proper way to handle this problem?
null

Peter,
I think you've gone down the wrong track with your workaround.
You should base your form on the view and allow update and insert to the view just as if it was a table.
If you are using Oracle 8i, create an INSTEAD-OF trigger on the view in the database which redirects the DML to insert or update the appropriate table(s) instead of the view.
If you are pre Oracle 8i, in the form you can create on-insert, on-update, and on-delete triggers to redirect the DML to the appropriate table.
The only other tricky situation comes if you have items in your form that are server-derived (in the TAPI) of the table(s) in question. If so, you must explicitly code the form to retrieve these server-derived values. Also note that with a view, you cannot have a server derived primary key since there would be no way to retrieve it in the form. (Views don't have a rowid.) You must derive primary key columns in the form when the form is based on the view.
Regards,
Lauri

Similar Messages

  • How can i update my app with i tunes?not by my device.

    how can i update my app with i tunes?not by my device.

    Select Apps in iTunes sidebar. A list of all your apps should be displayed in the main window. At bottom right of the window is a Check for updates button. Click on it, then click to download the updated apps. It's also possible that iTunes checked for updatedin the background, in which case the check button will already display how many updates you have.

  • How do I update iphone 4 with ios 4.2?

    How do I update iphone 4 with ios 4.2?

    Do you mean that you want to update your iphone that currently has 4.2 to the newest software 4.3.2?
    If so, then update it as you always do, via itunes.  Click Check for updates.
    If you want to upgrade to version 4.2, then you cannot as 4.3.2 is the latest.

  • HT204266 how can I update my app with another account?

    how can I update my app with another account?

    kambiz.fakhr wrote:
    how can I update my app with another account?
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • HT4623 When I plug my new iphone 5 into my computer and click on itunes, I get a message that Itunes 10.7 is required on my phone. How do I update my iphone5 with itunes 10.7?

    When I plug my new iphone 5 into my computer and click on itunes, I get a message that Itunes 10.7 is required on my phone. How do I update my iphone5 with itunes 10.7?

    Thanks.  My computer is updated.  When I plug my iphone in, it does not pick up my iphone to sync and gives me the message indicated above.
    I cannot sync my new iphone with my computer.

  • Updatable View issues:  cannot select FOR UPDATE from view with DI

    Hi All,
    I have a simple view XY and an instead of trigger on that to insert data into one table which is used in the my view. When I do insert statement on view XY it is working fine from sql but when i used same thing with page process of " Process Row of XY Automatic Row Processing (DML) " i am getting following error. I am using APEX 3.0 . Please help me.
    ORA-20001: Error in DML: p_rowid=xxxx, p_alt_rowid=abc, p_rowid2=, p_alt_rowid2=. ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    Thanks

    James,
    are you already on 3.0.1.00.07 or 3.0.1.00.08? Have a look at the release notes, it says something about a bug fix for some occurrences of ORA-02014.
    Also have a look at the new substitution value/item FSP_DML_LOCK_ROW which turns locking off if you set it to FALSE. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_readme.html#CHDIDIAF and also http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/advnc.htm#BCGFDAIJ
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • How do you associate a view with a form?

    How do you associate a view with a form and make it accessible in the form?

    Try this
      <Field name='myview'>
                        <Display class='Text'>    
                            <Property name='title' value='My View'/>
                        </Display>
                        <Derivation>                       
                            <invoke name='getView'>
                                <ref>:display.session</ref>
                                <concat>
                                    <s>User:</s>
                                    <ref>accountId</ref>
                                </concat>                       
                                <map>
                                    <s>authorized</s>
                                    <s>true</s>
                                </map>
                            </invoke>
                        </Derivation>
                    </Field>           
                    <Field name='myview.waveset.organization'>
                        <Display class='Text'>    
                            <Property name='title' value='User Org'/>
                        </Display> 
                    </Field>

  • How can I crate a view with tables which require "Left outer join"?

    Hi guys,
    how can I define a view with tables which require "Left outer join"?. In SE11 "View",->tab "Join condition", it seems that it valid only for "Inner Join".
    Please give me some hint.
    Thanks in advance.
    Regards,
    Liying

    Hi
    Inner Join and Outer Join 
    The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join.
    With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view.
    With an outer join, records are also selected for which there is no entry in some of the tables used in the view. (ABAP allows left outer join.)
    The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join.

  • HT4865 i changed my apple id and password but how can i update my iphone with the new apple id and password?

    i changed my apple id and password but how can i update my iphone with the new apple id and password?i changed my apple id and password but how can i update my iphone with the new apple id and password?

    You have to delete the old account, provide the password for the ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use.  This deletes the account and your iCloud data from your device, but not from iCloud.  Provided you are signing back into the same account, your iCloud data will reappear on your device when you sign back in.
    To avoid losing photo stream photos that are not in your camera roll, save them to your camera roll before deleting the account (open your my photo stream album, tap Select, tap the photos, tap the share icon -- box with upward facing arrow, then tap Save to Camera Roll).

  • Updatable Materialized View with Union ALL

    (please don't ask about db structure)
    DB: 11gR2
    create table table_1  (
        id number primary key,
        val varchar2(100)
    create table table_2  (
        id number primary key,
        val varchar2(100)
    insert into table_1(id) values (0);
    insert into table_1(id) values (2);
    insert into table_1(id) values (3);
    insert into table_1(id) values (4);
    insert into table_1(id) values (5);
    insert into table_2(id) values (10);
    insert into table_2(id) values (12);
    insert into table_2(id) values (13);
    insert into table_2(id) values (14);
    insert into table_2(id) values (15);
    update table_1 set val='Table1 val:'||id;
    update table_2 set val='Table2 val:'||id;
    create view v_table_all as
    select * from table_1
    view V_TABLE_ALL created.
    select * from v_table_all;
    ID                     VAL                                                                                                 
    0                      Table1 val:0                                                                                        
    2                      Table1 val:2                                                                                        
    3                      Table1 val:3                                                                                        
    4                      Table1 val:4                                                                                        
    5                      Table1 val:5                                                                                        
    select column_name, updatable, insertable, deletable
    from user_updatable_columns
    where table_name = 'V_TABLE_ALL'
    COLUMN_NAME                    UPDATABLE INSERTABLE DELETABLE
    ID                             YES       YES        YES      
    VAL                            YES       YES        YES      
    update v_table_all set val='XXX changed' where id = 3;
    1 row updated.
    select * from table_1;
    ID                     VAL                                                                                                 
    0                      Table1 val:0                                                                                        
    2                      Table1 val:2                                                                                        
    3                      XXX changed                                                                                         
    4                      Table1 val:4                                                                                        
    5                      Table1 val:5                                                                                        
    rollback;
    select * from table_1;
    ID                     VAL                                                                                                 
    0                      Table1 val:0                                                                                        
    2                      Table1 val:2                                                                                        
    3                      Table1 val:3                                                                                        
    4                      Table1 val:4                                                                                        
    5                      Table1 val:5                                                                                        
    create or replace view v_table_all as
    select * from table_1
    union select * from table_2;
    view V_TABLE_ALL created.
    select * from v_table_all;
    ID                     VAL                                                                                                 
    0                      Table1 val:0                                                                                        
    2                      Table1 val:2                                                                                        
    3                      Table1 val:3                                                                                        
    4                      Table1 val:4                                                                                        
    5                      Table1 val:5                                                                                        
    10                     Table2 val:10                                                                                       
    12                     Table2 val:12                                                                                       
    13                     Table2 val:13                                                                                       
    14                     Table2 val:14                                                                                       
    15                     Table2 val:15  
    select column_name, updatable, insertable, deletable
    from user_updatable_columns
    where table_name = 'V_TABLE_ALL'
    COLUMN_NAME                    UPDATABLE INSERTABLE DELETABLE
    ID                             NO        NO         NO       
    VAL                            NO        NO         NO       
    trying update:
    update v_table_all set val='XXX changed' where id = 3;
    SQL-Fehler: ORA-01732: Datenmanipulationsoperation auf dieser View nicht zulässig
    01732. 00000 -  "data manipulation operation not legal on this view"
    *Cause:   
    *Action:
    drop view v_table_all;
    view V_TABLE_ALL dropped.all is ok before this point.
    now we want create a new materialized view with some query
    create  materialized view v_table_all
    as
    select * from table_1
    union all select * from table_2 ;
    materialized view V_TABLE_ALL created.
    select column_name, updatable, insertable, deletable
    from user_updatable_columns
    where table_name = 'V_TABLE_ALL'
    COLUMN_NAME                    UPDATABLE INSERTABLE DELETABLE
    ID                             YES       YES        YES      
    VAL                            YES       YES        YES       it seems to be ok with update.
    but...
    update v_table_all set val='XXX changed' where id = 3;
    SQL-Fehler: ORA-01732: Datenmanipulationsoperation auf dieser View nicht zulässig
    01732. 00000 -  "data manipulation operation not legal on this view"
    *Cause:   
    *Action:How can solve this issue??
    Any suggestion

    Looks like user_updatable_columns sort of thinks the MV is just a table - I don't know about that...
    An MV on a single table can be updated - I tried that and it works:
    create materialized view mv_table_1 for update
    as
    select * from table_1;I noticed [url http://download.oracle.com/docs/cd/E11882_01/server.112/e16579/advmv.htm#sthref294]examples stating the UNION ALL needs a "marker" so Oracle can know from the data which source table a row in the MV originates from - like this:
    create materialized view v_table_all for update
    as
    select 'T1' tab_id, table_1.* from table_1
    union all
    select 'T2' tab_id, table_2.* from table_2 ;But that also fails (the "marker" requirement was specifically for FAST REFRESH, so it was just a long shot ;-) )
    What are you planning to do?
    <li>Create the MV.
    <li>Update records in the MV - which then is no longer consistent with the source data.
    <li>Schedule a complete refresh once in a while - thereby overwriting/losing the updates in the MV.
    If that is the case, I suggest using a true table rather than an MV.
    <li>Create table t_table_all as select ... .
    <li>Update records in the table - which then is no longer consistent with the source data.
    <li>Schedule a job to delete table and insert into table select ... once in a while - thereby overwriting/losing the updates in the table.
    In other words a kind of "do it yourself MV".
    I cannot see another way at the moment? But perhaps try in the data warehousing forum - the people there may have greater experience with MV's ;-)

  • How to correctly update .indd files with incopy through adobe cc

    Hello,
    We have a group of users in our company that only have incopy. This is done both for a control (no one changes layouts by accident) and for cost savings of not haveing the full suite for every user.
    With this environment we have found that...
    After any change to text via incopy, a person with adobe InDesign will need to open the file and update links so the .indd file will reflect the text changes.
    This will need to happen after proofing or any other editorial changes along the way. This adds many steps to our workflow.
    Ex:
    Alyssa is editing a sustainability article with incopy (no indesign). She makes her edits and save the contents (copy fits, remove a punctuation etc). However, when viewing the .indd file in adobe CC, her changes are not reflected.
    Bill (indesign user) had to open the file with InDesign, click update links (this is a popup box upon opening) and then save the file again, before the file would reflect the text changes.
    Does anyone know of a way to get around this? It would be great if incopy could push the text changes to the .indd file without a seperate step.
    Thank you,
    Andy

    I'm a little confused. Are the InCopy users using InCopy to edit standalone files (they're opening ICML files)? Or are they opening up the INDD file (the layout) in order to edit the stories context of the design.
    If the latter, then there's no need for the InCopy user to wait for an InDesign user to do something. As they make their edits in InCopy, the layout view in InCopy gives them a pixel-accurate preview of how their changes will appear in the final layout. If other InCopy users are editing different stories in the same publication (layout), any user can update to view their colleague's edits on a story-by-story basis, or all at once.
    And when an InCopy user sits down to work and opens a layout from the server, InCopy automatically makes sure that they are seeing the current versions of all stories in the layout ... they don't get prompted to update the stories, it happens by default. Even if the InDesign user hasn't touched the file or updated the stories.
    FWIW, most of my InCopy/InDesign clients use this layout method.
    AM

  • How do I update my iPhone with the latest version of iTunes?, How do I update my iPhone with the latest version of iTunes?

    I'm trying to synch my iPhone with my laptop but I need to get the latest version of iTunes on my phone. How can I update iTunes on my iPhone ?

    No, your computer doesn't have the latest version of iTunes, and your iPhone is running an iOS that needs the newer version of iTunes to be on the computer.
    iTunes: How to install the latest version - Support - Apple

  • How can i create a view with jdevlopper 10132

    hi,
    i want to know how to create a view with JDeveloper 10132.
    thanks

    Sorry, but I had to jump in here.
    7rouz - you've certainly violated the 10 commandments for posting here...
    Do you want to:
    1). Create a database view directly in the database
    2). Model a database view using the database modeller
    3). Create an ADF BC View Object
    4). Create some type of visual object (web page, Swing panel)
    5). something else.
    Your question is too ambiguous to yield an answer, unless by luck.
    Regards,
    John

  • How to integrate 3D visual viewer with agentry android client

    Dear experts,
    I am working on SAP Work Manager 6.2,  integrating 3D visual viewer with agentry android client.
         - 3D Visualization is working with my WPF client
         - 3D Visualization is failing with my Android client (see below)
         - GIS is working on the same Android client.
    SAP® EAM and service mobile app SDK Installation Guide" version 1.0  indicates in step 5 to "Add Visual Enterprise libraries to the MobileAppsVELibrary project".  Could you confirm that this step is equivalent to copy contents of "DVL/Android/libs/" to libs folder of the MobileAppsVELibrary project? Is there other DLLs to copy in this step?
    3D Visualization on Android problem description:
    Code Levels:
    Eclipse => Luna 4.4.0 + ADT 23.0.4
    Agentry SDK => SMPAgentryClientFramework-Android-70.5.1.10.zip
    Mobile Apps Open UI SDK 1.0 => 51048778_5.zip
    SAP 3D SDK => SAP3DVisualEnterpriseApplicationsSDKv2_1.zip
    PB description:
    If I display VDS attachment, the screen is blank.
    ( If I display the 2nd attachment (image/jpeg), the image is displayed successfully on the Android device )
    ( If I click on the Locations link , the map is displayed successfully )
    I do not see an error the the android log.
    I am also getting some encrypted information on the Android client when I double click the blank screen and hit left/right arrows
    Regards.
    Regards.

    Hi Kunal,
    Thanks for your help. How do I checked that I have properly included the DVL libraries?
    I have implemented the following steps: (text in italic is extracted from the SAP® EAM and service mobile app SDK Installation Guide" )
    Thanks again. Didier.
    1. Add the Agentry SDK - Follow the instructions from the Open UI SDK documentation to set up the Android environment with Agentry Open UI projects in Eclipse.
    2. Add Common Library project in Eclipse
    3. Add VE Library project in Eclipse
    I have created the following projects from the files
    SMPAgentryClientFramework-Android-70.5.1.10.zip
    Mobile Apps Open UI SDK 1.0.51048778_5.zip
    b. Add MobileAppsVELibrary as a library in the AgentryAndroidClientSolution project.
    c. Copy the activities declaration
     AndroidManifest.xml
    4. Add VE Resources Library project in Eclipse
    5. Add Visual Enterprise libraries to the MobileAppsVELibrary project
    I have copy the libDVL.so files into AgentryAndroidClientSolition libs folder from the file SAP3DVisualEnterpriseApplicationsSDKv2_1.zip

  • If I used one Apple I.D to download an app, but no longer exists, how do I update the app with my new i.d?

    I downloaded The Pages app, and now need to update it. But the apple i.d i used to download the app doesnt exist and now i dont know how to update pages with my new i.d. How do I update my old apps!?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Apps can only be updated by the Apple ID used to buy them. Apple does not transfer content from one ID to another.Apple does not merge IDs. Unless you want to buy the app with the new Apple ID, you need to recover the old ID.

Maybe you are looking for