Two entities in one view

hi
I have got two enitities in one view in bc4j. a master and detail. When I insert a new record in this view I want to insert both entities. The master and the detail entity. Is this possible in bc4j without writing code?
Gr,
Erik

The ordering by default is based on which entity was modified first and placed into the transaction's validation list.
The framework manages the order if two entities are involved in a composition association and master's validate calls super's validateEntity during the master's validation cycle.
Otherwise, you may implement such ordering in subclassed validateEntity() method by invoking validate on the related entity.

Similar Messages

  • Hi. I am having an issue with music on my Ipod. It would probably be easier to explain my specific issue: I have songs by Band of Horses from Cease to Begin. When viewing my albums through cover flow, it shows Cease To Begin as two separate albums, one wi

    Hi. I am having an issue with music on my IPod. It would probably be easier to explain my specific issue: I have songs by Band of Horses from Cease to Begin. When viewing my albums through cover flow, it shows Cease To Begin as two separate albums, one with only Islands on the Coast, and the other having Islands on the Coast with 3 other songs. If I delete the album with only one song from my IPod, it deletes the song from the other "album" as well. If I go to "All Songs" by Band of Horses, it only shows one Islands on the Coast, so it is not a duplicate issue. Also, in Itunes, it only shows one album. I just recently updated to iOS5 on my 4th Gen IPod Touch, if that helps.

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • Two MessageArea UI in One View

    Hello. !!
    My problem is the following one, I have two MessageArea UI (one to the final result, and the other for validacion of input file empty). and I need that these messages  appear in two MessageAreaUI different from different location inside the View ¿How I can establish when a this enable and the other desable) since the message always shows it in the first one that find enable. 
    I need a simple solutions...Regards !!!

    Hi Antonio,
    Error messages are always displayed in the first instance of the Message Area created/loaded in the memory. Even if you disable/hide the message area, it will still show it in the first instance.
    A simple solution is to create the message area dynamically at the position you want.
    Say you have two Transparent Containers (with id TC4 & TC5)in which you want to these message area depending on your condition.
    In your wdDoModifyView do something like this
    view.resetView();
    if (Condition){
              IWDTransparentContainer tc4 = (IWDTransparentContainer)view.getElement("TC4");
              IWDMessageArea messageArea = (IWDMessageArea)view.createElement(IWDMessageArea.class, "MessageArea");
              tc4.addChild(messageArea);
    else{
              IWDTransparentContainer tc5 = (IWDTransparentContainer)view.getElement("TC5");
              IWDMessageArea messageArea = (IWDMessageArea)view.createElement(IWDMessageArea.class, "MessageArea");
              tc5.addChild(messageArea);
    You have to make sure that you view is being reloaded otherwise this will not work since the wdDoModifyView is only called when the view is being loaded/refreshed/reloaded again.
    Regards,
    Shubham

  • Creating new entities through updatable view

    I am trying to create 2 entity records through an updatable view. There is one primary entity which is joined to an another entity (which is an association table).
    The secondary entity is updatable and all it's attributes are updatable. But I get the following exception as soon as setAttribute() is called on the first attribute of the second entity
    SEVERE: oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute set for FpsgFoId in view object FolderByName failed
    javax.faces.el.EvaluationException: oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute set for FpsgFoId in view object FolderByName failed
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:204)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
    Here is my code
    ViewObject vo = findViewObject("FolderByName");
    Row folder = vo.createRow();
    vo.insertRow(folder);
    Sequence seq = new Sequence("FOLDERS_SEQ", this);
    Number foID = new Number(seq.getValue());
    folder.setAttribute("FoId", foID);
    folder.setAttribute("Name", name);
    folder.setAttribute("Description", description);
    folder.setAttribute("Type", type);
    folder.setAttribute("ParFoId", parFolder);
    folder.setAttribute("OwnerId", owner);
    folder.setAttribute("FpsgFoId", foID); **** fails here ***
    Pranab

    Thanks, but my scenario is little different. I have two entities with many to many association through an association table. Entity at one end of the association already exists. I am trying to create an entity at the other end of the association and the entity for the association record, all in one trasaction through an updatable view. The updatable view spans across the relevant entities.
    ADF is trying to create the association records before creating the record for the main entity and running into foreign key constraint viloation. It should do the inserts in the opposite order.
    Pranab

  • I have two phones on one apple ID. After one updated yesterday on icloud it automatically took my contacts off and put the other ones on there. They still show up if I actually type them in when texting but not in the list.

    I have two phones on one apple ID. My son updated to icloud last night and when he did it took my contacs off of my phone and put his in there. When I go to text the numbers I can still find but when I click on the contacts they do not show. Is there a way to change this without restoring the last back up?

    You'll have to migrate one of the phones to a different account, then delete the other person's data from each account (you can continue to share the same Apple ID for purchasing from the iTunes and app stores). 
    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. 
    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, go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't from each account.

  • How to include one view into another view

    Hi SDN's,
                   Could any please tell me,How to include one view into another view.
    In my requirment.I want to create a 'Z' view for an interface .In that  view i have to take,
    1) Ship-to-email adrr by
                              LIKP-KUNNR -> KNA1-ADRNR
                              KNA1-ADRNR -> ADR6-ADDRESNUMBER.
    2) E-mail addr of person who created the document.i.e
        LIKP-ERNAM -> USR21-BNAME.
        USR21-ADDRESNUMBER ->  ADR6-ADDRESNUMBER 
        USR21-PERSNUMBER -> ADR6-PERSNUMBER.
       In both the case we have to pass ADDRESSNUMBER to ADR6 table.
    If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
    So i created two which fetches only the email addr of  person who created the document.and another view fetches Ship-to-email addr.
    Now i want to include the second view into first view . Is it possible?or please
    tell me someother way to get these email addresses in a single view.

    hi
    as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
    regards,
    shamim

  • How to move an itab from one view to another??

    Hi,
    Quick. I retrieve a range from select option in one view? How can i move this range table to another view?
    Currently, this is what I am trying,
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      RANGE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'TEST' ).
      RANGE->BIND_ELEMENTS( <FS_CARRID> ).
    In the contexts of the two view involved and the component controller i have a node 'TEST' with an attribute range that is declared type ref to data.
    No syntax error, but when i read the context node 'TEST' in the other view, the value is initial.
    Thanks for your quick responses and bright ideas!!
    ALI

    Hi Thomas,
    Here's what I did now. Created an assistance class 'ZCL_WD_COMPONENT_ASSISTANCE' derived from 'CL_WD_COMPONENT_ASSISTANCE' with an attribute, 'my_range_table type ref to data'.
    I assign/attach this class 'ZCL_WD_COMPONENT_ASSISTANCE' to the webdynpro component, by inserting it as an attribute in the component controller. As follow:
    <b>ZWD_ASSIST Type Ref To ZCL_WD_COMPONENT_ASSISTANCE</b>
    Now in the view one I insert code.
    <b>  DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ZWD_ASSIST TYPE REF TO ZCL_WD_COMPONENT_ASSISTANCE.
      CREATE OBJECT ZWD_ASSIST.
      ZWD_ASSIST->MY_RANGE_TABLE = RT_CARRID.
    </b>
    In the view 2.
    <b>  DATA: WD_ASSIST TYPE REF TO ZCL_WD_COMPONENT_ASSISTANCE.
      create object wd_assist.
    rt_carrid = wd_assist->my_range_table.
    </b>
    rt_carrid is still initial.
    Please sort out, if I am not doing correctly.
    Thanks.
    Ali

  • HOW TO GET THE SELECTED VALUE IN A ROW FROM ONE VIEW TO ANOTHER VIEW?

    hi all,
    I  have a small issue.
    i have created two views.In the table of the first view i'm selecting a row and pressing the button it will move to next view.
    i am adding some fields manually in the table of the second view and pressing the save button.Here all the values should get updated corresponding to the field which i have selected in the first view.
    I want to know how to get the particular field in the selected row from one view to another view.
    Kindly help me.

    Hi,
            Any data sharing accross views can be achiveved by defining CONTEXT data in COMPONENT CONTROLLER and mapping it to the CONTEXT of all the views. Follow the below steps.
    1. Define a CONTEXT NODE in component controller
    2. Define same CONTEXT NODE in all the views where this has to be accessed & changed.
    3. Go to CONTEXT NODE of each view, right click on the node and choose DEFINE MAPPING.
    This is how you map CONTEXT NODE and same can be accessed/changed from any VIEW or even from COMPONENT CONTROLLER. Any change happens at one VIEW will be automatically available in others.
    Check the below link for more info regarding same.
    [http://help.sap.com/saphelp_nw04s/helpdata/EN/48/444941db42f423e10000000a155106/content.htm]
    Regards,
    Manne.

  • Insert two photos on one slide in iMovie 11?

    I'm fairly new to iMovie but have had experience with Powerpoint presentations.
    I am doing a project that has a lot of picture elements inserted in it. Is there a way I can place two photos in one frame and have them transition onto it? To make this clearer...one photo say goes to the left in frame, says in the shot, then the next photo pans right and both can be viewed on the one slide??
    ~Thank you

    While you can use Photos in iMovie... it does not excel at it. You would be better off with something like Photo to Movie then importing that as part of your video project. BUT even with that tool it really does not support have 2 or more pictures on the screen at one time.
    http://www.lqgraphics.com/software/phototomovie.php
    You could use a program like Photoshop and do it there and use those photos or use Final Cut are the (2) ways I can think of.
    -- Dan
    Keeper of TheUnofficialiMovieFAQ.com

  • How to include two different tables in view concept..

    I have to make the innerjoin between these two tables.. i.e, BUT000-PARTNER = PA0002-PERNR.. here PARTNER is CHAR(10) and PERNR is NUMC(8)..in this i had two probs..one is how to convert this PERNR into CHAR(10) and second is how to match those fields..in VIEWS concept..
    regards
    ravi..

    Kiran,
    Usually Views are created where there are two columns of the same type exist in the JOIN CONDITION. In this case your results when you create a VIEW in SE11, you cannot specify the offset so that it considers only the last 8 chars.
    So, in this case , you are better off taking care of this in the code, where you can mentiond to consider the first / last 8 chars of the string.
    Regards,
    Ravi
    Note :Please mark all the helpful answers

  • Linking two DCs using interface views and return the value

    Hi,
    I have two webdynpro DCs. DC1 & DC2, each contains one view.
    Point 1:  From the DC1-->DC1View1 ,when I click a button , It should call  DC2(This is happening).
    Point2: When the DC2 is executed it should return to DC1-->DC1View1, value from DC2 need to be passed to DC1 also.
    How to acheive  point2. How anyone help on this .
    Regards,
    Muhammed Nishad J.

    Hi,
    You would have created a inbound and outbound plug between DC1-->DC1View1 and DC2 ->View.
    Now you will have to create the same for DC2 ->View and DC1-->DC1View1
    1) create an inbound plug on DC1-->DC1View1 and outbound plug on DC2->view.
    2) Now create a link as you would have in the first case.
    3) create a parameter in DC2->view for outbound plug, and also the same in inbound plug of the DC1->view
    4) Now in the method that was created for the outbound(public void onPlug<name of plug> )pass the value into the parameter created
    5) in the inbound method(public void onPlug<name of inbound> get the value of the parameter in a variable.
    I hope this solves your problem.
    Thanks and Regards,
    Narayani

  • How to use layout of one view(some part) in another view

    Hi All,
                 I need how to use a layout of one view(some part) in another view.if anybody knows, help me.
    Ex : I took two views.but some part of layout in first view is also needed in second view.Is it possible.
    Thank You,
    Anupama.

    Hi,
    Whichever common ui elements you want to put in both views. Keep them in one view.
    Now create two views which You want to display.( i.e you have to create three views in that two only will be used for display purpose ) In that both views add viewcontainer ui element and embedd that view which has common UIs. And Then add rest uncommon UIs in both views.
    I hope it helps.
    Regards,
    Rohit

  • Join two tables to one recordset with nested table?

    Hello all!
    I want to "de-normalize" two tables into one for presentation reasons. For example:
    CREATE TABLE foo(id number)
    CREATE TABLE bar(foo_id number, value varchar2(4))
    And with some data:
    FOO:
    1
    2
    BAR:
    1, 'gaz'
    1, 'boz'
    2, 'blah'
    Now I want to create a view that holds the value of the BAR table in a nested table, if possible and efficient enough..
    VIEW:
    1, nested_table('gaz,'boz')
    2, nested_table('blah')
    Any clue for creating such a view? I would prefer a view, because this view will be joined with other tables later.
    Thanks in advice!

    Or
    SQL> with foo as
      2  ( select 1 id from dual union all
      3    select 2 id from dual
      4  ),
      5  bar as
      6  (
      7    select 1 foo_id, 'gaz'  value from dual union all
      8    select 1 foo_id, 'boz'  value from dual union all
      9    select 2 foo_id, 'blah' value from dual
    10  )
    11  --
    12  --
    13  select id,
    14         cast(multiset((select value from bar where id=foo_id)) as sys.dbms_debug_vc2coll) value
    15    from foo
    16  /
            ID VALUE
             1 DBMS_DEBUG_VC2COLL('gaz', 'boz')
             2 DBMS_DEBUG_VC2COLL('blah')or from 10g on
    SQL> with foo as
      2  ( select 1 id from dual union all
      3    select 2 id from dual
      4  ),
      5  bar as
      6  (
      7    select 1 foo_id, 'gaz'  value from dual union all
      8    select 1 foo_id, 'boz'  value from dual union all
      9    select 2 foo_id, 'blah' value from dual
    10  )
    11  --
    12  --
    13  select id,
    14         cast(collect(value) as sys.dbms_debug_vc2coll) value
    15    from foo, bar
    16    where id=foo_id
    17    group by id
    18  /
            ID VALUE
             1 DBMS_DEBUG_VC2COLL('gaz', 'boz')
             2 DBMS_DEBUG_VC2COLL('blah')Edited by: michaels2 on Oct 8, 2008 2:27 PM

  • Before I downloaded Lion every time I would upload a pic from iphoto there would be two files.  One that was 1.8MB and another that was 50KB.  Now I can only find the 1.8MB one.  Did this option disappear with Lion?

    Before I downloaded Lion every time I would upload a pic from iphoto there would be two files.  One that was 1.8MB and another that was 50KB.  Now I can only find the 1.8MB one.  Did this option disappear with Lion?  I really need this option!

    Sorry but this is not clear.
    When you would "import" what?
    two files would show up in "images".
    Do you mean in the All Images search in the Finder?
    IF so:
    1.Never interact with photos that are in iPhoto via the All Images Search. This does not understand the iPhoto Library and it's very, very easy to damage the library this way.
    2. What you were seeing was the original file you imported and the thumbnail created by iPhoto for viewing on the iPhoto Window. That thumbnail is not designed for user access.
    What are you trying to do ultimately?
    Regards
    TD

  • Passing Multiple table row from one view to another view

    Hi,
    How to Passing Multiple table row from one view to another view in Web Dynpro Abap. (Table UI Element)
    thanx....

    Hi Ganesh,
    Kindly do search before posting.. this discussed many times..
    First create your context in component controller, and do context mapping in two views so that you can get values from
    one veiw to any views.
    and for multiple selection, for table we have property selection mode.. set as multi and remember context node selection
    selection cardinality shoud be 0-n.
    so, select n no of rows and based on some action call sec view and display data.( i think you know navigation between veiw ).
    Pelase check this...for multi selection
    Re: How to copy data from one node to another or fromone table to another table
    for navigation.. check
    navigation between the views
    Cheers,
    Kris.

Maybe you are looking for