Insert to multiple tables while keeping the referential integrity

I would like to confirm whether we can have both updatable and reference for secondary entity. It seems to me that even though both updatable and reference can be checked for secondary entity, the secondary entity is not updatable.
There are some scenarios that I hope to create the "parent" and "child" at the same time in the UI. For example, Employee and ProductExpertise which is in m:m relationship. We have three tables: Employee, EmployeeProduct, and Product. We have two view object, EmployeeVO which contains EmployeeEO, EmployeeProductVO which contains EmployeeProductEO and ProductEO. This can display EmployeeVO as master, and EmployeeProductVO as detail. However when we add a new product for the employee, we can only associate an existing product. We would like to create a new product and associate the product with employee. This cannot be achieved by the current EmployeeProductVO.
I wonder if ADF supports inserting to multiple tables while keeping the foreign key reference integrity? In other words, in a 1:1..* (1 to 1 or 1 to many) relationship, must we have a master-detail view where we add parent first, then add child? Does ADF support adding both parent and child together with the correct foreign key assigned automatically for the child? Do we need to write code to do it?
Any insight is appreciated.

Hi,
Assuming you are talking about ADF Business Components, yes, the framework can handle a batch insert that inserts both parent and child records in the same transaction. A few things that you may want to review:
1). If you are using a database sequence for your primary keys (your question "Does ADF support adding both parent and child together with the correct foreign key assigned automatically for the child" made me think perhaps you were), have a read of the Fusion Developer's guide about the DBSequence type.
2). In the same guide, have a read of section 38.8 - it talks about the small bit of code you may need to write to ensure the parent record is posted before the children, and also discusses about associations that are based on DB Sequences.
Best,
John

Similar Messages

  • Remove Power Query queries while keeping the query output tables

    I use power query to load data from external sources into several excel tables. Before sending this excel to a client, I would like to remove all power query queries (M code) while keeping the output/query tables at place.
    My current workaround is:
    unload Power Query
    convert each table to range
    load Power Query
    delete queries (M code)
    Is there a better/faster way to achieve what I want?

    You can unlink the existing tables and remove custom XML data in Document Inspector. No need to duplicate the worksheet.
    exactly. and even unlinking the tables is not neccessary for DocInspector to remove the custom XML of PQ.
    Do you have any suggestion on how to trigger the cleaning of PQ XML code via VBA? 
    the following code does not work:
    ActiveWorkbook.RemoveDocumentInformation (xlRDIAll)

  • Insert into multiple table view

    I have a view with multiple table query and and INSTEAD OF trigger on the view that inserts into multiple tables. When I attempt to do a commit out of a ADF Creation Form, I get the following error: ORA-01779: cannot modify a column which maps to a non key-preserved table ORA-06512: at line 1.
    Has anyone had success inserting into multiple tables via a view that has more than one table?
    Thanks,
    Lisa

    Lisa,
    Sounds like your instead-of trigger may not be being called and you are trying to insert directly into the view.
    I did write a [url http://stegemanoracle.wordpress.com/2006/03/15/using-updatable-views-with-adf/]blog entry about using a view with instead-of triggers last year.
    John

  • How to I import Apple 'Pages' text into InDesign while keeping the formatting?

    How to I import Apple 'Pages' text into InDesign while keeping the formatting?

    I have imported the rtf file, but it shows up as only one line with a grey line after it, even though there are multiple lines

  • I cannot open iphoto- the message I am getting says Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this, quit iPhoto, and then reopen it while keeping the Option and Comma

    i cannot open iphoto- the message I am getting says Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this, quit iPhoto, and then reopen it while keeping the Option and Command-
    I tries and it doesnt work!!

    What version of iPhoto? Assuming 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Update LIKP table while saving the output type in VT02N transaction

    Hi All,
    I have a requirement where i have to update Delivery Priority(LPRIO) field in LIKP table while saving the output type in VT02N transaction. I am not able to use the BAPI "BAPI_OUTB_DELIVERY_CHANGE" or FM "WS_DELIVERY_UPDATE" because, when we save the output type the programs that are configured in NACE are triggered in update mode and hence i will get a roll back error.
    Let me know other ways of updating the table at the time of saving output type for shipment transaction VT02N.

    This could be a result of one of the following reasons:
    1: Incorrect smart form/routine assigned in the output configuration (NACE)
    2: Serial number range of the delivery expired
    3: The default settings of the user (SU01) processing the delivery is missing the default printer name.
    Hope this is helpful
    Manish

  • Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Valentine350z wrote:
    while keeping the Region to United Arab Emirates
    Not possible, I think.  Tell Apple how you feel about this at
    http://www.apple.com/feedback/iphone.html

  • How do you turn off the voice on a video while keeping the background music on?

    I have to watch an exercise video for training. You are supposed to be able to turn on and off the voice by going to the computer icon and toggle the voice on/off. However, that feature isn't on my ipad or ipod. How do I turn off the voice while keeping the music on?

    Hello. I am trying to watch a digital video exercise video in ITunes on my ipad and iPod. I am able to turn the voice on/off when I am watching the videos in iTunes on my Mac Pro, but I can't figure out how to on this feature. I saw it done on a YouTube video. i tried to follow the instructions but the voice on/off doesn't show under settings or under audio-subtitles.

  • Insert to multiple table using single DB Adapter

    Hi,
    I m using Jdev 11g Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Can anyone tell me how can we do insert and update operations to mutliple tables using single DB adapter.
    I want to do insert in 2 tables and update the third using same DB apater. Is it possible?If yes, how?

    Hi,
    You can write a PL\SQL (Stored Procedure) to do your operations and call the PL\SQL code from DB Adapter.
    -Senaka

  • Re-sizing, align right while keeping the menu fixed using flash AS2

    contact
    khuon
    mau
    My problem is recreating the align right effect while keeping
    the menu fixed using flash AS2 mostly for re sizing as well as
    different screen sizes.
    While i can do one or the other but both is just not
    happening.
    I have tried all sorts of weird and wonderful things but as
    yet, alas no easy/simple solution :(
    I must admit it has been a long time since i have been here
    but.. I thought if someone could have a quick look and maybe please
    give me a few pointers ??
    Anything at all would be better than what i have now ...
    Thanks for your time

    The link again is I forgot to add http to the link before, but it should have worked.
    http://www.lipowiec.org/test/index.php
    a) used Dreamweaver to create new site selected 1 column, elastic, centered, header, and footer
    b) used spry to add horizontal menu to header
    c) followed instructions from Spry Help
    http://livedocs.adobe.com/en_US/Spry/SDG/index.html?lang=en_US ->
    working with spry widgets -> working with the menu bar widget -> Customize the dimension of menu items as indicated
    To change the dimension of menu items by changing the width properties of the menu item’s li and ul tags.
    Locate the ul.MenuBarVertical li or ul.MenuBarHorizontal li rule.
    Change the width property to a desired width, or change the property to auto to remove a fixed width, and add the property and value white-space: nowrap; to the rule.
    Locate the ul.MenuBarVertical ul or ul.MenuBarHorizontal ul rule.
    Change the width property to a desired width (or change the property to auto to remove a fixed width).
    Locate the ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li rule.
    Add the following properties to the rule: float: none; and background-color: transparent;.
    Delete the width: 8.2em; property and value.
    Under IE it's broken, under the other browsers it works.
    There need to be more IE HACKS added.

  • Updating the VETVG table while creating the purchase order

    hi all,
       I have one requirement to calculated the delivery creation date while creating the Purchase Order. It is calculated based on the delivery date of PO. I have calculated that one but how to update it after calculation. Can any body give a user exit or BADI with implementation which will update the VETVG table while creating the PO.
    Thanks
    rajkumar

    hi sanjay,
    thanks for reply, I am using same BADI(ME_PROCESS_PO_CUST) and implementation(FIELDSELECTION_ITEM_REFKEYS). In this implementation i am setting the shipping data with SET_SHIPPINGDATA method . but after that the values are not updating the EKPV and VETVG tables but it is only showing in the screen. Can you give a idea where to pass these values so it will update the tables.
    thanks
    rajkumar

  • [svn:fx-trunk] 8303: This change tries to support legacy usages of StyleManager. setStyleDeclaration() while keeping the new "subject based" internal index of style declarations in sync with selectors.

    Revision: 8303
    Author:   [email protected]
    Date:     2009-06-26 07:50:46 -0700 (Fri, 26 Jun 2009)
    Log Message:
    This change tries to support legacy usages of StyleManager.setStyleDeclaration() while keeping the new "subject based" internal index of style declarations in sync with selectors. We no longer support the invalid usage of constructing a CSSStyleDeclaration with one selector but re-registering it with StyleManager.setStyleDeclaration with another selector.
    QE: Yes, look out for test cases that incorrectly create a CSSStyleDeclaration with a selector AND also use StyleManager.setStyleDeclaration(). I saw one invalid usage in the mustella test file: tests/Managers/StyleManager/AdvancedCSS/mixedSelectors/AdvancedCSS_MixedSelectors, specifically the "CSSStyleDeclaration_CSSSelectorKind_Type_method" test case.
    Doc: Yes, please remove any examples that showed a CSSStyleDeclaration being constructed with a "name" as that is incorrect. You only construct these instances with a selector, or nothing.
    Reviewer: Glenn
    Checkintests: Pass
    Bugs:
    SDK-21714 - Dynamically created styles are ignored by spark components
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21714
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleManagerImpl.as

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • How to make a photo black & White while keeping the photo subject in colour?

    I am new to PS but not photography
    I would like to know how i can make my scene in my photo black and white, while keeping the suject in the photo colour.
    any help greatly appreciated.
    Baba HT

    Hi Baba,
    Below are some step-by-step instructions that show you how to acheive this effect very easily with the Quick Selection Tool and a Black & White Adjustment Layer.
    1. Open up your image in Photoshop. In the toolbar, click on the Quick Selection Tool and select your subject.
    2. Go to Select > Refine Edge and use the dialog box to clean up your selection - I've enabled the Smart Radius option and increased the selection radius. When you're done, click OK.
    3. Go to Select > Inverse.
    4. Locate the Adjustments panel - by default, it should be located above the Layers panel (in CS6), but if you can't find it, go to Window > Adjustments. Click on the Black & White adjustment icon, as shown below. Your subject will stay in color, but the setting should turn black and white, as you can see below.
    For more on using Adjustment Layers, below is a quick video that goes over the basics:
    If you have further questions, feel free to post a reply!
    Cheers,
    Kendall

  • How can I turn off the screen while keeping the mac awake?

    I am using teamviewer to remote connect to my office Imac from home. However, every time I connected, my imac screen will turn on and everyone else in the office can see what my imac is doing..
    Is there some method to turn off the screen while keeping the mac awake, so I can remote connect to it?
    PS: I am using OSX 10.7.3

    Energy Saver, you can keep the computer awake while the screen saver shuts the monitor off but I'm not sure that would do it for you.

  • I want to bring in text from Word (and the web) that is already hyperlinked into InDesign. How do I do it while keeping the links active?

    I want to bring in text from Word (and the web) that is already hyperlinked into InDesign. How do I do it while keeping the links active?
    Whenever I copy/paste from web or Word it removes the hyperlinks.  And when I try to do it by "Place"ing a Word document into my InDesign project it keeps the formatting with it, the rectangles around the text.
    I have the latest version of InDesign.
    Any help is appreciated. 

    Copy-and-paste may not include formatting. A regular import using Place is the best way.
    The rectangles around the hyperlinks are just to indicate they are links -- they do not print, but they do show up in your PDF.
    You can remove them by double-clicking the hyperlink in the Hyperlinks panel and select "Invisible Rectangle" as type.
    Typically, Word hyperlinks are formatted -- blue text, underline -- with a Character Style. If you want to remove or change the formatting, all you have to do is change the character style. My experience, though, is you must check all hyperlinks because for no apparent reason sometimes they appear in the document without the character style.

Maybe you are looking for

  • Itunes 10.6.3.25 crash during sync with ipad

    After installing the latest iTunes 10.6.3.25, I can no longer fully sync my iPad 2. - after the sync has started, I see the backup complete but some time after that i will get one of a series of errors such as cannot write file to ipad, an unknown er

  • Error con el servidor de licencias

    Hola que tal! Instale SAP en mi servidor con WServer 2008 y en las terminales el cliente de sap y se podia conectar todo muy bien. Después se cambiaron las maquinas de dominio y entro un servidor Small Business y después de eso en el server se puede

  • Modify the default framework page

    Hi all, I need to create a new portal framework page. This needs to differ from the Default framework page only in the KM navigation links. I have a different KM folder to point to in the new framework page. I tried creating a separate page with my K

  • Trying to remove Adobe Illustrator CS3 for a re-install

    I am trying to remove Adobe Illustrator CS3 for a re-install but have come across some problems in the process. I am working in Windows XP SP2 When I go to uninstall, the Adobe screen won't let me proceed because updates have been made to the softwar

  • Question about the example hfm sdk project HfmEAExtractSample

    I am trying to open the hfm sdk sample project hfmeaextractsample,which is a vb.net project to call the extended analytic functions in vb. it referenced several hfm dll, including Hsvmetadata.dll,Hsvsession.dll,Hsvstarschemaacm.dll and hsxserver.exe,