Multiple entities

Hi !
I'm a OPA beginner, and I've tried to create multiple entities in different levels
I've tried but I got not get it to compile.
I wonder if the following is possible and appropriate in OPA:
1. The parent is global with a relationship to the child
2. The child is an entity with a relationship to the parent (and the child's pet?)
3. The child's pet is an entity with a relationship to the child
So far I've only seen solutions regarding several entitys but at the same level such as:
1. The parent is global with a relationship to the car
2 The car is an entity with a relationship to the parent
3. The tie is an entity with a relationship to the parent
Many thank's in advance !
Bo

Hi Bo,
Yes, this is definitely something that OPA is well suited to.
If you create a new project in OPM and add a new properties file. Create an entity called 'the child' and an entity called 'the pet'. Assuming you use the default Global entity as the Parent, then you will be able to define relationships between the three entities in the manner you described.
Once you have, you can chose View -> Data Model from the OPM tool bar and look at your entity structure.
Cheers,
P.

Similar Messages

  • Comparing fields from multiple entities in the same report (report builder 1.0)

    Created a model that contains 2 entities. I open that model in report builder 1.0.  When I drag a field from one of the entities into the design area, i can no longer see the other entity or use any of the fields from that other entity. 
    I need to use fields from both entities in the same report (join tables).  In management studio i would simply write a query and join tables but i cannot figure out how to do this in report builder.  Once i select a field from one entity
    how do i select fields from more than one entity and drag them into the same report.

    Would it be possible for you to send me instructions for this? I am not that familiar with SQL coding but I can definitely figure it out. I have been wanting to get information on reports from multiple entities for a very long time! The only way I can
    currently do it is have our document management software people write the report for me for quite a large fee. I would much rather do this myself. Right now I can select a few fields from one entity (the main one), some from a second entity under that one,
    but I cannot add any fields from a third entity! Quite annoying and hindering! Thank you :)

  • Insert data into multiple entities at once using a view object

    Hi,
    I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
    Is this possible? And how (if it is)?

    Hi,
    I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
    Is this possible? And how (if it is)? Peter:
    This is definitely supported and tested. Please send us the exception stack trace. You must running into other problems. A few things to note:
    A) You have to mark the entities as both updateable (not read-only) and not reference-only.
    B) If you're not seeing an exception stack, turn on diagnostic. Here is how:
    To turn on diagnostic, go to the IDE,
    1. Select the project.
    2. Do right mouse click and select "Project Settings..."
    3. On the Settings dialog, select Configurations/Runner.
    4. In the righthand side pane, you should see a textbox for "Java
    Options". Please add the following JVM switch:
    -Djbo.debugoutput=console
    Then, rerun. The run command should include
    -Djbo.debugoutput=console as in
    "D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
    You should now see a lot more output on the IDE's message window. Here you should see the exception stack trace.
    If you invoking your app directly from command prompt, just add "-Djbo.debugoutput=console" after your "java.exe".
    Thanks.
    Sung

  • SetProperty on OData model - update multiple entities before submitChanges on batch

    I have a list in my application:
    This data is bound to an OData model.
    If I perfrom call I can retrieve the data fod the "fridge" item:I can retieve the OData for item 456.
       this.getView().getModel().getProperty("/Items(BookingId='123',ItemId='Fridge')")
    Therefore I can set the couonter like this:
    this.getView().getModel().setProperty("/Items(BookingId='123',ItemId='Fridge')"+"/ItemCount", 6)
    But once I have done this "SetProperty" call I am now unable to set any other properties on any of the other items!
    What I want is to be able to change as many items as I like and then on SAVE do a batch OData PUT to update the values in the backend.
    If I'm honest what I really want is to be able to do a DEEP INSERT into my OData provider, which contains a Booking, with nested sub-items..
         Booking 1:m Items
    How can I do this whilst also using the "setProperty" method?
    setProperty is great in regards to if I make changes and then hit "CANCEL" I can call "resetChanges" to undo any changes.. but at the moment I can only change ONE of these counters before commiting my changes...
    Surely this must be a common requirement, to make many changes in the front-end to multiple entities and then POST/PUT them all at once?
    Thank you for any advice

    A seemingly bug in SAPUI5 ODataModel setProperty() funtion

  • One ViewObject with multiple Entities -- killing me

    Guys.....
    Any thought why postChanges is not being called on a View object with Multiple Entities........
    When i click on createinsert button and then save......(without making any changes to VO fields)...... no records are being saved and thus postChanges is not being called.....
    anything I can do to fix it.....
    -R

    Timo and Biag
    Thank you for your response....
    You have a good point but still i would love need to implement a validation that if all columns are empty; prompt an error message.... kind of a thing.....
    Entity.setNewRowState(Row.new) doesn't mark this row as new row...... what is the best way to force the new record event from VO?
    may be will implement something before Commiting on that page.....

  • Updating Multiple entities Programmatically in LightSwitch Html Client 2013

    hi,
    How to Update Multiple entities When Updating One entity in Server Side ?
    Thanks in Advance...

    You'll probably need to give a little more information about your particular scenario but if you're doing this update server side using the updating method of your entity then you have access to do what you like with any record/entity.
    If the entities are related then it may just be a case of a statement like:
    YourEntity.YourRelatedEntity.SomeProperty = "Hello world.";
    Or you could call a entity specifically from another table and update it accordingly:
    AnotherTable ent = DataWorkspace.ApplicationData.AnotherTable.Where(r => r.id == 5).FirstOrDefault();
    if (ent != null)
    ent.Description = "Hello World.";
    Hope that helps you.
    Paul.

  • HANA XSODATA Create multiple entities with associations in single LUW

    Hi all,
    Is it possible to create multiple entities with associations in a single LUW.
    For e.g. we have a Sales Order and Item. This is modelled as 2 DB tables and 2 entities.
    In XSOData I have defined association relationship between them.My XSOData definition is like this...
    "XSDemo.DB::SO"    as "SalesOrder"
       navigates ("SalesOrder_OrderItem" as "SOItem");
       "XSDemo.DB::ITEM" as "OrderItem";
       association "SalesOrder_OrderItem" principal "SalesOrder"("OrderID") multiplicity "1"
       dependent "OrderItem"("OrderID") multiplicity "*";
    My post URI is
    http://server:port/SODemo.xsodata/SalesOrder
    My data is as follows
      "ID": 1,
      "Customer": 123,
      "Desc": "Test SO",
      "SOItem": [
          "Material": "MAT1",
          "Qty": "10",
          "Item": "10"
          "Material": "MAT2",
          "Qty": "20",
          "Item": "5"
    From the post, I get a response 201 (Created). However, only the Sales Order is created. The Items are not created.
    My question is:
    1. Is it possible to create Order and Item together in a single post call ?? If yes, how. What is the syntax of XSOData / Post Request
    2. If it is not possible to create Order and Item together in a single post call, then how do we ensure atomicity of the transaction.
    For e.g. What is Order creation is success and then the Item creation fails ...
    How can we ensure that all is committed or none is committed.
    3. From the documentation I understand that this might be possible using modification exits... However, I want to achieve this without using modification exits...
    Is this possible or not ?

    Hi Thomas,
    Actually the problem is that Sales Order and Order Items are modeled as different entities... So, XSOData allows creation of Sales Order Item independently WITHOUT creation of a sales order header.
    For e.g. URL : http://server:port/SODemo.xsodata/OrderItem
    Ideally, the XSOData should implement a logic that a Dependent entity cannot be created without a Principal entity.
    For e.g. using a Sales order BAPI you cannot create a sales order item alone !
    Similarily, since XSOData is the end point service for the consumer, the XSOData should have the logic to ensure that both principal and dependent entities are created together.
    Otherwise, in the UI the developer has to ensure that the post body is build correctly...

  • Reporting for multiple Accounts by Partner dimension for multiple Entities

    Hi all,
    I have a report in Reporting Studio which uses a Sum column formula to add data for all the members selected in a prompt for the Entity dimension (which is in the columns of the report).
    In the rows I have 2 dimensions, Partner and Account. I have the report set up to display the children of Partner and multiple accounts for each Partner. The issue I am having is that I would need to actually calculate one of the account totals (it is a Yield account) since summing the yields for partners is not valid.
    I can't just pull out and calculate the Yield accounts though because the accounts need to be listed by Partner.
    Is there a way to group two rows so that I can pull out and calculate the Yield account but still display the accounts by Partner?
    So I was thinking:
    Partner A Account 1, Account 2
    Partner A Yield
    Partner B Account 1, Account 2
    Partner B Yield
    I can't hardcode this as there are hundreds of Partners. If there is a way to set up auto-calculate to Average only the Yield accounts, that would work as well in theory.
    Any help would be appreciated. If any clarification is needed just let me know.
    Thanks.

    Hi Mehmet,
    There are too many possible department combinations to actually create member formulas for each one.
    The formula for Yield is Revenue/Units. So an example would be $100,000 revenue divided across 1,000,000 units gives a Yield of 0.10.
    The more I think about this problem, the more I realize that this may not possible. If a manual calculation is required I would need to have it so that I'm able to match up the children of Revenue with the children of Units in order to calculate the various Yields. From my experience this isn't possible. I am staying away from hard-coding in the report as it would create issues down the road.
    If there is some way to utilize auto-calculation that may be the only solution.
    Any other thoughts would be appreciated though.
    Thanks.

  • How to use ServerApplicationContext to do a remote query across multiple entities

    Hello everybody,
    My data model is like this:
    "Case" -> one-to-many -> "Document"
    Document has  the fields:
    - "IsFinalised" (boolean)
    -  File (large binary)
    My business rule is: 'a Case is closed if all its documents are finalised'.
    I am trying to do a query which returns whether a case is closed using ServerApplicationContext, but I don't want the query to load the large binaries for each Document into memory for given case.
    Does this do the job?
    int IsCaseClosed(int caseId)
    using (var sac = ServerApplicationContext.CreateContext())
    var relevantCase = sac.DataWorkspaces.ApplicationData.Cases.FirstOrDefault(c => c.Id = caseId);
    return relevantCase.Documents.All(d => d.IsFinalised);

    I think what you have is pretty close.  I would probably write it like this:
    bool IsCaseClosed(int caseId)
    bool isClosed = false;
    if caseId > 0
    using (var sac = ServerApplicationContext.Current ?? ServerApplicationContext.CreateContext())
    isClosed = sac.DataWorkspace.ApplicationData.Cases_Single(caseId).Documents.All(d => d.IsFinalised);
    return isClosed;

  • Multiple user entities in OIM?

    Hi, everyone,
    Just getting my feet wet with OIM 11g, and I have a situation where I need different categories of users to have different user attributes associated with them. The Oracle docs don't seem to tell me how to set this up. Can I define more than one user entity, each with its own set of attributes?
    Thanks,
    - Ariel Anderson, Senior Business Analyst

    OIM uses a single user entity unlike some other IDM products (i.e. IBM TIM).
    There really isn't any easy way to handle multiple entities. You could get some functionality by using different organizations and you could add UDFs to the user form that you could interpret differently in your business logic. You could also use custom resource objects to contain this kind of information.
    Best regards
    /Martin

  • Lack of conformity with ID3V2.3 standard as regards multiple artists

    Hi there!
    It is defined in the informal standard for audio tags ID3V2.3 (http://www.id3.org/d3v2.3.0) that multiple artists can be listed as independent, coequal lead performers in the text information frame TPE1 ("lead artist(s)/lead performer(s)/soloist(s)/performing group"). The "/" character is meant to be used to seperate the individual entities.
    In this regard both the iPod an iTunes do not adhere to the ID3V2.3 standard and misinterpret audio tags which have been formated as described above: multiple artists in the TPE1 frame are mistaken for a single entity, thus leading to problems with the sorting of tracks. Example given: a duet by John Doe and Jane Roe (TPE1: "John Doe/Jane Roe") is not listed under John Doe on the one hand and Jane Roe on the other hand, but credited to the non-existing new artist "John Doe/Jane Roe".
    Other text information frames seem to suffer from the same erroneous (or lack of) interpretation of the "/" character, or rather from the failure to support multiple entities in a text frame.
    In various scenarios workarounds such as characterizing songs to belong to a "compilation" or defining an "album artist" are not helping and they generally cannot make up for the non-compliance with the open and widely accepted ID3V2.3 standard.
    Can one expect Apple to fix this and to establish ID3V2.3-conformity in this matter?
    With kind regards!

    We are all just your fellow users here and have no inside knowledge of Apple's plans. As you did point out, it's an informal standard, one that seems rather loosely followed.
    Submit your feedback to Apple directly:
    http://www.apple.com/feedback/itunesapp.html
    Your post was very well thought out and written, so you'd be a great person to make such a suggestion.
    Best of luck.

  • Split file into multiple Instance of an IDoc .

    My file (only one file) in the file system contains multiple entities(lets say sales order).Now using File adapter I want to transfer this file into XI and want XI to create multiple instance of an IDoc(for each sales order) and send them to the target system one by one.
    Alternatively can I split the file into multiple entities(sales order) in the file adapter (using dispatcher for e.g) and send multiple message to the configured XI automatically.
    Is any of the alternative possible in XI20.
    Any responce would be highly appreciated.
    Regards,
    Bikky.

    Hi,
    You can get the file adapter to split the file without the need for a dispatcher user exit.  The config goes a little like this:
    mode=FILE2XMBWITHSTRUCTURECONVERSION
    xml.recordsetStructure=SALES_ORDER,1
    xml.recordsetsPerMessage=1
    This last parameter ensures each sales order is posted to the integration engine as a separate message.  Therefore a separate Idoc is created for each.
    Hope this helps.
    Jason

  • Is it possible to Merge Entities in Logical Model ?

    Hi,
    There is an option to merge mutiple tables in a Relational Model.Similarly is there an option to merge multiple Entities in a Logical Model?
    Thanks in Advance
    Regards

    There is no option for consolidating folders into one.  Why would you want to would be my question, but since you think you do, then you can drag-and-drop a group of selected photos to a new folder if you want and repeat this for each subfolder.
    You can also just turn on View Photos in Subfolders option to see all of the photos in one grid or thumbnail strip without physically moving them around.
    It might also work to turn on viewing of photos in subfolders and then highlighting all of them and dragging and dropping them into the consolidation folder.  I haven’t tried this, nor do I intend to, though.

  • Multiple O365 Tenants, Single Authentication Scenario, AD-FS, Azure Questions

    I have a customer scenario which is a group company with multiple companies within it. Here are the different questions that I am supposed to answer them.
    They have multiple entities each having their own O365 tenant
    Each of them their own On-Premise AD and have their AD-FS Configured, so users are able to login through their AD Usernames to their O365 Subscription
    Now they want to setup up a Central Workspace (assume it is setup as a new O365 – SharePoint Online tenant) – which all of these companies can post and share data with, there is a Group Head Office, which controls this and they have their own AD as well
    In this central workspace, there will be documents shared, tasks created, discussion forums, surveys, social features etc.
    They do not want to do any AD Consolidation – so they are asking me – how will the authentication work in the future – each of the group company users should be able to login with their AD Username itself
    Is this possible? If so, How can we do this?
    Also with respect to Performance, it will be around 2000 users using this central workspace – so will O365 – SharePoint Online automatically scale or is there any special configuration that needs to be done?
    In the future, they are looking at extending this to 3<sup>rd</sup> party companies as well to share information with – so there is a question as to how they can get authenticated as well (External Sharing is not really their preference)
    so is there like an FBA – Claims (Custom Login Page) we can setup along with Self-Registration capabilities?
    Again, when around 10000 users use this later, how will O365 – SharePoint Online perform?
    In the future, how will Yammer and the new Office Groups work? Will Yammer go away? What is the direction that Microsoft is taking?
    Would be great to get your responses at the earliest possible. 
    Karthick S

    I have not seen this on here yet....http://dailycaller.com/2015/07/29/top-feminist-issues-stunning-rebuke-for-medias-total-silence-on-pl...http://www.salon.com/2015/07/29/camille_paglia_takes_on_jon_stewart_trump_sanders_liberals_think_of_...fta: A major feminist author and former Planned Parenthood member shredded the U.S. media Wednesday for its “shockingly unprofessional” failure to cover the release of secret videos showing alleged trafficking in fetal organs by employees of Planned Parenthood. ... .. Now let me give you a recent example of the persisting insularity of liberal thought in the media. When the first secret Planned Parenthood video was released in mid-July, anyone who looks only at liberal media was kept totally in the dark about it, even after the second video was released.also fta: I regard Donald Trump as an art...

  • Reference entities in View Objects

    Hi,
    I have several questions related to the use of multiple entities in a View Object.
    Suppose I have three entity objects: Product (N) <-> (0..1) Manufacturer (N) -> (1) State.
    (In a state there are several manufacturers, and each manufacturer makes several products. Of several products the manufacturer is unknown, so that's why there's a 0..1 on the manufacturer side)
    I want to create a view on products, ProductView, and I want to display the manufacturer name and the state name, so I've added these as reference entities to the ProductView.
    When doing so, several questions popped up:
    1) The View Object Wizard did not generate a where clause. If this is because I use more than one reference entity, then I don't understand why it wouldn't be able to generate the proper whereclause, since I've selected the associations between the entity objects, so it should be able to derive a proper whereclause from that.
    2) Left outer joins can only be performed by adding '(+)' to the query. However I would like to use the LEFT OUTER JOIN clause, since that is a bit more flexible (because I can add several expressions to the ON() clause. I can only use a LEFT OUTER JOIN if I create an expert mode query and do it myself. It would be nice if jdeveloper supported this type of query.
    3) In the query tab, the query uses weird aliases for the fieldnames. Since there was already an Id attribute in the base view object, the primary key of the second and third entityes had been named Id1 and Id2. I immediately renamed those to manufacturer_id (as I've read in one of the howto's on this forum). Still, the query uses the aliases ID1 and ID2 ('Manufacturer.ID AS ID1'), which makes the whereclause that I must right unreadable. Again, the only way to change this is to write my own query in expert mode.
    Thoughts?
    Greetings,
    Ivo

    [list]
    [*]Would be nice if BC4J supported left outer joins
    We do. This is exactly why the Expert Mode Query feature is there.
    In addition to LEFT OUTER JOIN there are hundreds of possible
    database query tricks that developers want to leverage in their SQL
    statements. Expert Mode gives you a generic way to handle all
    of them.
    [*]Weird aliases in the query
    Did you check the attribute settings in your VO to see what aliases are specified there at the bottom of the panel? These are what gets used by the query when BC4J "calculates" the query for you (i.e. when it's not an expert mode query).
    [*]The where clause didn't contain the '(+)' thingees, so the view did not perform an outer join
    Outer joins require expert mode. BC4J doesn't by default ever generate outer-join queries itself.
    [*]Derived view worked in the tester, but JClient master/detail generation didn't work
    This is Bug# 2684863 that we're looking at for 9.0.4
    [*]ViewLink inherited from base object doesn't show up for inclusion in datamodel
    This is Bug# 2684866 that we're investigating for 9.0.4
    You can create a new view link between the extended VO and either the existing destination view, or a VO extended from it, and it should work in the data model window.
    [list]

Maybe you are looking for

  • 23EL933G HDMI image quality issue

    Hi!, I recently bought this TV, im really happy with the performance using VGA, DVB,... but when i plug my laptop using one of the hdmi port, the image (1920x1080 resolution) is a little bit "blurred", the definition is far from being great. Is it no

  • Early watch report ( Trcd. SBIW setting ) - Updated

    Hi All We have received the early watch report for BW and in that It has mentioned to do SBIW ( IMG ) activity as follows: System name Parameter name Current value Recommended value APPCLNT001 maxprocs 05 4 BWPCLNT800 maxsize 000000 20000 BWPCLNT800

  • How  to  create  adhoc  chain  in process chain

    how  to  create  adhoc  chain  in process chain

  • New PowerBook Ti User Wants Input on BEST Carrying Case

    Just got a beautiful 15-inch Titanium, hardly used! I'm so excited, but have become quickly confused about choosing a PowerBook Case and additional accessories. This is my first notebook, so every case, stand, pad, skin, protector I read about sounds

  • Nokia 808 Problem with Adobe flash player.

    I have problem playing video or just see the pictures. There will be one small F logo on the top left and corner. For eg. website like  espn.go.com/nba sometimes I cannot even click on anything inner browser page which looks hang but  5 gray toolbar