How to get master key for strong composition detail

Hi all,
My Offline Database Diagram that I have drawn with JDeveloper uses the cascading delete option in foreign keys. When the master will be deleted, its details should be deleted as well. This has resulted in strong composition relationships between master and details.
These relationships are covered by ADF BC Entity Associations and View Links.
But what strikes me is that both AppModule tester and the JHeadstart first-cut application are not able to insert a new detail? They respond with:
JBO-25030: Failed to find or invalidate owning entity
I found an article of Steve Muench discussing this topic with a bare BC4J Java sample. How do I get this in my master/details Entity Impl's context? How can I get the key of the selected master in the create() method of the detail (Steve Muench selects the first row in the table)?
I can't get rid of the strong association relationship in the Entity Association. It is automatically switched on when I switched it off.
Anyone to help?
thanks in advance,
Martijn Peters

Hi Markus,
Thanks for your reply. Your hints describe how to manually set up a master-detail relationship at the View Objects level.
Does this also work for master-detail entity objects that have a strong composition through CASCADE DELETE on the foreign keys in the database?
What surprises me is that the BC4J wizard uses different approaches for creating a master with details with or without CASCADE DELETE.
I would not expect different behavior for the create() operation in BC4J. I would only expect different behavior for remove() operations.
Moreover it is strange that the generated View Objects can not be altered and that we depend on a workaround you described.
Is their no risk for BC4J corruption when the master is deleted with the BC4J tester and that the database CASCADE deletes the details?
JDeveloper 10.1.2 provides a pretty tool for designing and maintaining a database schema though an Offline Database Diagram.
It shows the CASCADE DELETE option on foreign keys as a strong composition in an object oriented fashion.
The ADF BC wizard is very powerful in making an object oriented abstraction of the database schema.
However it seems to me that ADF BC does not seamlessly fit regarding compositions.
Switching on CASCADE DELETE in the database causes master-details pages in JHeadstart to disfunction.
Need this be improved in BC4J or am I wrong in the implied concepts?
What Java code can I add in the create() methods of my Entity Object subclasses to get the same behavior of regular master-detail objects creation?
Martijn Peters

Similar Messages

  • How to get the "Key" for Dimension in SSAS.

    Hi
    How to get the "Key" for Dimension in SSAS.
    (Below value is the PPSParameters table XML column value in PPSDatabase in SharePoint.
    Below three key values are belongs to "Dimension". I have tried to find the key but I could net get it.)
    <NewDataSet>
    <UserValues><Key>16A201A9E75128559F947D58E6D187A9</Key></UserValues>
    <UserValues><Key>7FBEA449A6ED5606973306445839619E</Key></UserValues>
    <UserValues><Key>A8F75F9720817BCD2E1DFC1C1CF1E678</Key></UserValues>
    </NewDataSet>
    Thanks & Regards
    Poomani Sankaran

    To Be Honest there is not one straight Cmdlet that atleast I have come across 
    The best way would if you have Lync monitoring server 
    Using the Lync Server 2013 Monitoring Server
    If you have the Monitoring Server role configured in your environment, and for Lync Server 2013 everyone should!, you can use information contained in the LcsCDR database to pull back the last time a user signed in.  You can run the following query* to
    pull back the user's SIP URI and their last login time:
    USE LcsCDR
    SELECT dbo.Users.UserUri, dbo.UserStatistics.LastLogInTime
    FROM dbo.UserStatistics
    JOIN dbo.Users ON dbo.Users.UserId = dbo.UserStatistics.UserId
    ORDER BY UserUri
    Which produces the following output:
    The advantage to using the Monitoring Server to obtain this data is that unlike the information contained in the rtcdyn database, the information from the LcsCDR data will persist even when the user isn't signed into Lync.
    To get approx count of users enable for Lync Server in your organisation 
    Get-CsUser -Filter {Enabled -eq $true} | MeasurE
    Please not the above command let will give you an approx number not exact 
    From the Monitoring report yet the SIP account that signed in and then from count find out how many user havent signed in this is manual task 
    Hope this is helpful 
    Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • How to get the keys for a field in the dropdown list?

    The dropdown list of payment terms on an account is unfortunately very big, containing al lot of different values, in our system and therefore very confusing for the user working with Web UI version 5.2 to pick the right one. The keys (code like e.i Z077 or ZO23) are not stated in the list available for user. Is there any way in the system to flag if the different fields should show boths the keys(codes) and the description of the values in the field as Payment terms, etc.
    In the ERP SAP Gui it is possible to activate if you want the keys should be shown in all drop down list.
    If this is not possible for all the fields at one time, what can be a solution to have the keys in the drop down lists, any suggestion will be very valuable for us.
    Kindly regards
    Camilla

    HI Joost
    No it is not that simple, that is not a solution for us. The fields are maintained i our backend system and replicated to CRM, and these fields descriptions are also printed at Order confirmations and invoices, and we do not want the keys that do not give any meaning  to be visible to customers.
    BR
    Camilla

  • How to get Access key for ABAP Program development in HANA Studio

    Hi,
    I have got instance for ABAP on HANA development system.
    But while creating new program it is asking me for Access key, since I do not have user id pwd for service market place I couldnt able to create the access key.
    Can any one suggest the way to create ACCESS KEY??
    Thanks,
    Ram

    Dear Ram,
    it seems that you need to follow the chapter 6.1 in the documentation...:
    Kind regards, Stephan

  • How to get master data for 0Customer Info object.

    Hey Frieds,
    I have infoobject 0customer and 0Comp code , I want to get the 'address' field of it .
    I checked in master data and found that address field is not populated ,so is there any standard data source to get it , or any other way to get it.
    Please respond
    Thanks

    Hi Anurag,
    you will get the address in the 0customer_attr datasrc.
    You can populate address as an attribute of 0customer object from here.
    hope it helps...

  • How to get F4 help for Standard Text Key of a operation based on Order type

    Hi Experts,
      How to get F4 help for Standard Text Key (STK) of a operation based on Order type entered in selection screen. The F4 help should give the STK of related order type. At the same time the F4 help for Task Types based on Notification type. How to acheive the above two. Please provide the table names or any search help name if exists or Function modules...
    Thanks in Advance.
    Regads,
    Bujji

    Hi Guys,
       Any help on this...
    Regards,
    Bujji
    Edited by: Bujji on Dec 22, 2008 12:42 PM
    Edited by: Bujji on Jan 5, 2009 2:00 PM

  • How do I get license key for trial app, now that I have joined Creative Cloud ?

    how do I get license key for trial app, now that I have joined Creative Cloud ?

    after trying again, the signin process worked and activated my trial copy for me.

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • How to get the ItemKey for a Workflow triggered by an event in Oracle Apps

    Hello,
    I have added a custom sub process to the seeded "OM Order Header" workflow. The process sends a notification. There are a few attributes in the body of the message tied to this notification, to which I am trying to assign values to using the syntax:
    SetItemAttrText (itemtype, itemkey, attrname, attrvalue).
    I have the internal names for the item type and attribute name, but don't know how to get the value for the item key. I understand the item key is supposed to be unique for each item type and is automatically generated by the workflow engine when the work flow fires. Is there a built-in function or some means to get this value?
    Regards,
    Smita

    Have you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
    bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
    Thanks,
    Hussein

  • How to get the Key value in the value help?

    Hi All,
            I am using dropdown by key to display the values from the RFC. I am able to get the text by,
    ISimpleValueSet div = wdThis.wdGetContext().getContext().getModifiableTypeOf ("Header.VH_BUnit").getSVServices().getModifiableSimpleValueSet();
    return div.getText(wdContext.currentHeaderElement().getVH_BUnit());
    Please say how to get the key ?
    Thanks & Regards,
        Mugundhan

    Hi,
        Thanks for ur reply. wdContext.currentHeaderElement().getVH_BUnit() is returning the value in the dropdown only.
    Consider this line..
    return div.getText(wdContext.currentHeaderElement().getVH_BUnit() );
    More simillarly return div.gettKey(................); is there. What value should be given inside. if i gave wdContext.currentHeaderElement().getVH_BUnit() means, it sowing "Cannot convert from object to String " error.
    So i created an object like this,
    Object attributevalue = wdContext.currentHeaderElement().getAttributeValue(IPublicReportrtComp.IHeaderElement.VH__B_UNIT);
    But this too not accepting..
    Thanks & Regards,
       Mugundhan

  • How to get master data records that do not have transaction data in a query

    Hi,
    How to get master data records that do not have transaction data in a query output. Can we create a query or any other way to get the master data records that do not have transaction data?

    Hi,
    Create a multiprovider which includes transactional data target and master data info object. Make sure that identification for this master data info object is ticked on both the provider.
    Create report on this multiprovider , keep the master data info object in rows , and now you should able to see all the values which are there in master data info object irrespective of transaction happened or not .
    Next you may create condition showing only zero keyfigure values , ie. master data without any transaction.
    Hope that helps.
    Regards
    Mr Kapadia

  • Why can't I get a key for the Office Consumer Technical Preview now?

    So.. I tried for many times to get a key for my new office 16 technical preview but failed all the times. Now the office on my PC is running out of time. So I cannot use it now. How could I get a key to let it work?

    Hi CNysl,
    This forum is for developers discusing devloping issues about
    apps for Office.
    As suggested by jackafx, I also suggest that you contact the Office team via the blog, you can send an email by following link like figure below:
    The next chapter of Office on Windows
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I use iPhoto and want to know how to get the 'key photo' i select on my MacBook Pro to be the one that gets used on my iPhone when i sync them. Any ideas? also, i want the events to appear in the order i choose on my MacBook too

    I use iPhoto and want to know how to get the 'key photo' i select on my McBook Pro to be the same one that gets used on my iPhone 5s when i sync. i also want the events to appear on the iPhone in the same order i have them on my macbook. any ideas there too?

    Killerfinch wrote:
    My new yahoo account nestles comfortably in iCloud on the mine iPad.
    No, your Yahoo account is not in iCloud (which only handles iCloud mail), it is in Yahoo, and the Yahoo mail account is on your iPad.
    But the MacBook Pro will have none of it! I write this question now as I fear that I will be totally demented very soon and unable to formulate my thoughts clearly!
    Get the correct settings for your account from Yahoo and set it up manually.
    By the way, I also find the "password" issue problematical. It seems Apple want my Apple password rather than my eMail password. All very confusing.
    That would depend on what you are trying to do.

  • Nnot Get Session Key for Authentication

    I found in trace file of my application
    (TRACE_LEVEL_CLIENT = SUPPORT in sqlnet.ora):
    ORA-28035 Cannot Get Session Key for Authentication
    Cause: Client and server cannot negotiate shared secret during logon.
    What is the session key and how to obtain it?

    DISABLE_OOB = ON
    NAMES.DEFAULT_DOMAIN = domain
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    SQLNET.CRYPTO_SEED = P9EBHPQFLEIAJNUFAZHQP8JBNES8EBEEHS895LCWW9UZKO9HR2R2E5GDN7JV15T27QJO97D89BQAWSRF
    # SQLNET.CRYPTO_CHECKSUM_SERVER = requested
    # SQLNET.CRYPTO_CHECKSUM_CLIENT = requested
    # SQLNET.ENCRYPTION_SERVER = requested
    # SQLNET.ENCRYPTION_CLIENT = requested
    SQLNET.RADIUS_AUTHENTICATION = ad1.domain
    # SQLNET.RADIUS_AUTHENTICATION_PORT = (PORT)
    SQLNET.RADIUS_AUTHENTICATION_TIMEOUT = 5
    SQLNET.RADIUS_AUTHENTICATION_RETRIES = 3
    SQLNET.RADIUS_ALTERNATE = ad2.nlmk
    # SQLNET.RADIUS_ALTERNATE_PORT = (1645)
    SQLNET.RADIUS_ALTERNATE_TIMEOUT = 5
    SQLNET.RADIUS_ALTERNATE_RETRIES = 3
    SQLNET.RADIUS_SEND_ACCOUNTING = ON
    # SQLNET.RADIUS_SECRET=(path/radius.key)
    SQLNET.AUTHENTICATION_SERVICES = (NTS, BEQ,RADIUS)
    # TRACE_LEVEL_CLIENT = SUPPORT
    # TRACE_LEVEL_SERVER = SUPPORT
    domain is the name of my windows domain
    TNSNAMES.ORA
    SERVER.DOMAIN =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server.domain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = server.domain)
    )

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

Maybe you are looking for

  • Camera set to sRGB, Opens as Adobe RGB

    I have a Canon 5D, color space set to sRGB. When opening RAW file in Camera Raw 5.0, it opens as Adobe RGB. How can I fix this? Thanks!

  • I want to know VendorID of pci devices in system.

    Hi. I have a question. I want to display vendor ID & device ID of My pci devices in solaris system. in windows driver... #define VENDORID          0x1234      #define DEVICEID          0x5678      for( bus = 0 ; bus < 256 ; bus ++ ) for( slot = 0 ; s

  • CRM Tables and Relationships Document - New Request

    Hi all, If you could please send the document to my gmail account: [email protected], points will be gladly rewarded. Many thanks! Leon

  • Exit button in GUI

    hi every pro, can teach me write a statement to implement my "EXIT" button by using ActionListener in GUI? thx so much ^^

  • Cannot connect to Itunes store on Game of War.

    If anyone knows how to fix this problem i would greatly appreciate it. When I am trying to purchase gold in the application called Game of War, I get an error message saying (cannot connect to Itunes store). I have tried everything to resolve this is