Validate Parent Entity Row when Child Entity Row got changed

Guys,
I want to Validate Parent Entity Row, when a child Entity Row got changed.
How can i do it?

As I said before, define an accessor from child to parent. now you are able to navigate from the child to the parent and can do the validation. Here are some links into the docs:
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcentities.htm#sm0133
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcrules.htm#CJADEHJD
Timo

Similar Messages

  • DMEE : how to make parent node disappear when child node is empty

    Hi Friends ,
    Currently i am working on DMEE , I have a problem . When Child node is empty I donot want the parent node to appear in the tree.Here I am uisng a field via exit function module for childnode. so not a fpay* strucutre field to write a condition.
    Is there any other way for this ?
    Please help.
    Komaravolu

    I'm not sure if this can be done in DMEE tree, but there is BADI DMEE_BADI_01 that can be implemented to perform any kind of postprocessing right before the file is created. I used it, for example, to replace separators with tabs. I believe this can also be used to eliminate the unneeded nodes.

  • Is there a way to find out when the user password got changed last time?

    thanks.

    To sweeten the deal, you can get confirmation from this metalink doc,
    ORA-28002 On User Connection Immediately After PASSWORD_LIFE_TIME Changed
    Doc ID: NOTE:162818.1

  • Updating a Multi Entity view object to add row only to child entity

    I have a View object VO1 made of multiple entities e.g. EO1 and EO2 which have a composition association with cardinality 1 is to many EO1 being the entity corresponding to parent table and EO2 is the child table. All the entities in the association are updatable.
    The data is displayed using VO1 on the page. So for each row in child table, parent table attributes are dispalyed correctly due to the join condition.
    If I create a new record on the VO1 iterator using the create operation binding and save it, it correctly saves a new record in header table and related child table.
    Now I need to provide with one more create operation on the page such that when user can add a child row for the existing header row using the same screen.
    Essentially I need a create operation which, on selecting a row from the displayed table which is based on VO1 , creates a new row in the VO1 iterator such that the EO1 attributes are pre filled with the header table information from the selected row and the child attributes can be added by the user and submitted.
    Tried Using create with params on VO1 by passing the header information, this lets me enter the data on screen just the way its required ,but this obviously only tries to add a new record to header table with the existing primary key itself and the operation fails on save giving duplicate key error for the header table.
    Unable to figure out where to change the default behavior to fetch a exisitng entity rather than create a new entity in the header table entity object for this multiple entity VO1.

    Hi ,
    So how do i send in the sample. Do i send in the code base don HR schema ..
    Or just explain the above with emp dept tables.

  • Update/Insert child entity record in siebel when a session is saved in WD

    Hi,
    We have a requirement where we need to create/update a child entity's record in siebel when user clicks on save session link in WD window after the rule execution. We are using IO mapping. Account is the parent entity and let's say B is the child entity.We are storing row_id of the new created B record in a field of Account BC(before the WD call we are creating a new B record).
    So, in the rule we need to update one field of B entity such that we can update the new created B record using EAI Siebel Adapter BS in the Policy Automation Save Session IO Post WF. We wrote like below.
    reason(B's field) = RejectionReason (Account's attribute) if
    ButtonOption = "Reject"
    and
    B's id = Account's field where B's row_id is stored for the new record
    but we found that we had to use rule table for this.
    We used the rule table like below(could not paste the table):
    rule_loop
    Reason
    RejectionReason     ButtonOption = “Reject”
    And
    B’s row_id = B’s row_id in Account
    Reason     otherwise
    It is setting B's Reason field for the particular record of B, but for rest of the B's records it is setting Reason to null although we do not want to change the Reason for rest of the B records.
    Could you please help us on this? Also how to navigate to the question screen directly if any attribute value is null? We added the screen flow but now it is directly showing the summary screen even if the attribute value is null.
    Thanks in advance!
    Regards,
    Subhradeep

    Hi Frank,
    Yes, the parent entity is "Account" and the child entity is a new entity(B).One Account can have multiple B records(1:M relationship).Before calling WD one B record is created for the Account and we are storing the row id of that record in Account BC.
    In WD screen we have dropdown where user can select "Reject" option for the product offered to him.
    user selects "Reject": in the next screen he will select the Rejection Reason and when he saves the session the Reason field of the new B record will be updated.
    We have created an IO to send data to OPA where Account is the primary BC.So if we can update the Reason of B in the rule(for the new B record) then we can directly use the IntegrationObject returned from OPA and use EAI Siebel Adapter BS to update that B record in Policy Automation Save Session IO Post WF.
    So we need:
    Update Reason for the new B record, do not update the Reason for rest of the B records.We had written in a rule table like below:
    rule_loop
    Reason
    RejectionReason     ButtonOption = “Reject” and B’s row_id = B’s row_id in Account
    Reason     otherwise
    (B’s row_id in Account, RejectionReason are global attributes for Account, Reason is the B's attribute)
    when we used the IntegrationObject in Siebel(after the save session) it is updating Reason of the correct B record(new one)...but for rest of the B records Reason becomes null(the otherwise condition). We do not need to update the Reason for the remaining B records.
    Please could you suggest us how to stop updating the Reason of the remaing B records in the rule itself?
    Thanks & Regards,
    Subhradeep

  • Error while deleting a row from the Entity Object

    Hi OAF Guys,
    i am unable to delete the newly created row from the entity object.
    let me explain my scenario.
    1. i have a table of which some of the columns are mandatory.
    2. I am writing the code in the validateEntity to check wether the user really enter anything into the fields.
    3. My problem is, when the user creates row and wanted to delete the row without entering any details, the validate entity of the EO gets fired which will not allows to delete the row.
    Is there any workaround for this problem.
    Regards,
    Nagesh Manda.

    Hi Tapash,
    I am very sorry for not providing you the complete details of my scenario. Here i am explaining
    1. what code you have placed while creating the row and in validation method on EOImpl.
    while creating a new row i am initializing the primary key of the EO with the sequence value.
    2.When you say, you are unable to delete the row, are you getting a error message ? if yes, custom message or fwk error ?
    its not the fwk error, its the custom message which wrote in my validateEntity method of EO to check whether the user had entered all the necesary columns or not.
    3.How are you trying to delete the row ?
    while the user clicks on the delete switcher i am getting the primary key of the row and searching for the row in the vo and finally deleting it.
    The problem arises when the user creates a row, and later doesnt want to enter the details and delete it. Here while deleting the row the validateEntity method of the EO gets fired and doesnt allow me to do so :(.
    Any way appreciate your help tapash.
    Regards,
    Nagesh Manda.

  • Is it possible to create Detail entity row before Master entity row?

    Hi All,
    I have a Master - Detail relationship. When I insert a row into the detail entity, I need to create a corresponding master record. Is this even possible? I've been fiddling with different association relationships, this.setNewRowState() commands, etc. for the past 12 hours and haven't made much progress. I came across this: http://adfjsf.blogspot.com/2010/12/row-statusinitialized-and-statusnew.html which gives me hope, but I can't for the life of me figure it out.
    Basically, I'm trying to override the Detail entity's create method with the following:
        RowSet addressId = (RowSet)this.getDocAddresses();
        NameValuePairs nvp = new NameValuePairs();
        Row row = addressId.createAndInitRow(nvp);
        row.setNewRowState(STATUS_INITIALIZED);
        addressId.insertRow(row);I get a "Detail entity Quotes with row key [null] cannot find or invalidate its owning entity" error. If I take off the composition association, I get an error saying the Qutoes row cannot be created.
    If you want to checkout my use case, you can do so here: How to create a master entity record from the detail entity.
    Any ideas?
    Will

    Here's another use case.
    In accounting software, documents such as Invoices and Deliveries create financial transactions. So say we have three tables: Deliveries, Invoices, Transactions. In the database, Transactions needs to be a Master table, Deliveries and Invoices the Detail table. This means that Deliveries and Invoices must have an associated financial transaction. To switch the dependencies around the other way (Order/Deliveries be the Master, Transactions the Detail) wouldn't work due to the foreign key dependencies i.e. The same transaction would have to be a child of both Orders and Deliveries, which would be incorrect.
    However, in the JDeveloper application an Invoice row (the Detail) would need to be created first, and then the Transaction (Master) would be created second. This seems like a logic sequence best created at the entity level. When I try to accomplish this, I get a row null or row cannot be created error. This is leading me to believe that in the JDev application, I will need to "lie" and reverse the association, putting the Delivery/Invoice as the Master and the Transaction as the detail.
    Is this the best way to go about solving this problem? I don't like putting in associations that don't match the database structure, but if I can't create a Master entity row from a Detail entity, it's looking like that's my best route.
    Will

  • How to update the field of a Parent enity (field is not visibe on the Form) from a Child Entity in MSCRM 2013

    Hi All,
              I m new to CRM customization. I have requirement like this..
    I have 3 entities.. Entity1 , Entity 2 and Entity3.
    Entity1 is the parent of Entity2 and Entity3. Entity2 is the parent of Entity3 and child of Entity1 ..
    In Entity1 I have a field eg:product1 which acts as lookup for Entity2 field availableproducts.  Now in Entity2 I have a field the quantity of products which acts as lookup for Entity3 as given below.
    In Entity3: fields:;; products==Lookup of Products(Entity1)
                                  quantity == Lookup of Quantity (Entity2)
    Now from Entity3 I need to update the fields of Entity1 like I have field named Price which is not visible on the Entity3 Form  but when I access this field from javascript I m getting null exceptions since the field is not in the context of the Entity
    on which it is defined. How can I update the fields of the Parent Entity1 from child Entity3  and also update the quantity field on Entity2 which are not avialable on the Entity3 Form.
    Any help is appreciated
    Waiting for the reply..
    FayazSyed

    Hi,
    To do it in JS you need to use oData, as wrote above:
    to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
    Your code will be about this:
    /// <reference path="rtb_XrmSvcToolkit.js" />
    XrmSvcToolkit.retrieve({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
    expand: [""],
    async: false,
    successCallback: function (result) {
    FieldNeedToUpdate= result.my_FieldNeedToUpdate;
    errorCallback: function (error) {
    Error = error;
    FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
    var InputEntity =
    my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
    XrmSvcToolkit.updateRecord({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    entity: InputEntity ,
    async: false
    Here are more samples:
    https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js

  • After creation related entity method, child entity's Parent GUID not popu..

    Hi All,
    I am creating related entity with method create_related_entity of BOL Entity,
    then doing some modifications to this created entity fields with SET_PROPERTY method,
    then with BOL_CORE->MODIFY is functioning then getting Transaction context of BOL_CORE and doing SAVE & COMMIT,
    but due to after created related entity, no Paret GUID is present for this entity & TERR GUID of entity too, so its not saving....
    what we can do....?
                                            PARTNER_GUID                                             00000000000000000000000000000000
                                            TERR_GUID                                             00000000000000000000000000000000
                                            TERR_ID                                             500050
                                            TERR_DESC                                       
                                            VALID_FROM                                             20110817
                                            VALID_TO                                             99991231
                                            BP_NODE_GUID                                             00000000000000000000000000000000
                                            DIRECT                                       
                                            OVERRIDDEN                                       
    here Partner GUID & TERR GUID are not getting generating, after created related entities,
    when we can do, so that this child get saved under proper parent...?
    Thanking you.
    Regards,
    VIJHYD
    Edited by: vjmhyd on Aug 17, 2011 3:38 PM
    Edited by: vjmhyd on Aug 17, 2011 3:39 PM
    Edited by: vjmhyd on Aug 17, 2011 3:45 PM

    Self

  • How I can know which row is parent item code or child item in matrix?

    Hi,
    In marketing document, when insert a item into contents page, if it is a BOM then all child item will be inserted into matrix automatically. My question is when i view the rows in matrix how i can know which row is normal master item and which row is a child item row? From the UI, i can only see the child item code looks readonly but how i can know it in my add-on code? I tried to get the edittext box object from item No. cell, but i can't find any difference.
    Thanks!
    Lan

    Sorry, i found an issue when i try to retrieve the BOM Type column value. I am in adding mode, when i insert a BOM with components, the bom type will appears as "Component of a Sales BOM". But in the event, when I try to get the value from this cell (it is combobox), it gives another value which is not same with the one it appears in the matrix. Is anyone know how to solve my problem?
    Thanks!
    Lan

  • Issue when inserting Child Entity (Notes) with Contact

    Hi,
    I am getting the following error message when inserting Contacts with a child entity i.e. Notes which is quite misleading
    SOAP fault from Item: OnDemandServicesObjMgr_eng_44477.log(SBL-DAT-00542)Method 'SetFieldValue' of business component 'Contact Note' (integration component 'Contact_Contact Note') returned the following error: "Access denied.(SBL-DAT-00542)"(SBL-EAI-04376
    As suggested in earlier post I have tried providing values for fields NotesID and ContactID as well and even though it gives this error message.
    Thanks
    Arif

    Hi, From the error message it looks like the access profile settings for the WS user doesn't have required privileges to create a note for contact. You make have to check access profile settings first and then try it
    -- Venky CRMIT

  • Inserting multiple rows in child table

    i have two entity beans (main and child) with relationship one to many .... when i insert one row in main table (ie when i make one object for main entity bean)... how to insert multiple rows in child table...

    Can anyone pls provide some sample code for the above.. how to pass a collection and populate it in the child table.
    1.Where to pass the collection, to the childbean directly or to the parent bean and then itereate to the collectio and create child bean.
    Much obliged if you could paste some code for the above..

  • Need to Set Current Row when Using Built-in Data Control Delete Operation?

    I have an af:table bound to a ViewObject (VO) collection (no Entity Object) - within each row, I include a column that contains a 'Remove' command button so the user can remove the row. I add the command button by dragging/dropping the built-in delete operation from the VO on the Data Control Palette. When I use this as is (no changes), the Remove button always deletes the first row in the collection, not the selected row. Do I need to add code to set the current row, and if so can someone please provide an example and specify where I need to add? thanks.
    ------ .jspx af:table with command button to remove each row ------
    <af:table value="#{bindings.ListView1.collectionModel}" var="row"
    rows="#{bindings.ListView1.rangeSize}"
    first="#{bindings.ListView1.rangeStart}"
    // note: I don't have any code added for selectedRow or makeCurrent - assuming this is built-in?
    selectionState="#{bindings.ListView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ListView1.collectionModel.makeCurrent}">
    <af:column>
    <af:commandButton actionListener="#{bindings.Delete.execute}"
    text="Remove"
    disabled="#{!bindings.Delete.enabled}"/>
    </af:column>
    ---------- corresponding pagedef file ------------
    <bindings>.....
    <action id="Delete" IterBinding="ListView1Iterator"
    InstanceName="SrchDataControl.ListView1"
    DataControl="SrchDataControl" RequiresUpdateModel="false"
    Action="30"/>
    </bindings>
    Note: I also tried solution posted on following thread, but again, only first row is deleted, not the selected row?: Delete and Commit
    Message was edited by:
    javaX

    I just want to delete (or remove) it from the VO. Data for this VO is not on the database.
    The function is doing what I want it to do (delete from the VO), its just always deleting the first row, versus the selected row. I select the command button next on a column next to an item further down in the list and it deletes the first row. The problem is setting the selected row to be removed - I thought setting the current row would be taken care of by the SelectListener?
    selectionState="#{bindings.MyIspListView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.MyIspListView1.collectionModel.makeCurrent}"

  • All rows in a Set get updated when only one row changes

    I have a complex object, which contains a Set of child objects. If i modify one of the child objects and put the object back in the cache, coherence will issue a sql update for each of the child objects, even though only one changed.
    I'm using hibernate, and when i do this in straight hibernate, that doesn't happen, only one sql update gets issued for the row in question.
    I found this because i have a timestamp column that automatically updates when the row gets updated, but since all the child rows are updating, this timestamp gets updated as well which breaks the biz logic.
    Am i missing something? Clearly it's inefficient to issue updates on all the child rows when just one changes. Is there some way to avoid this?
    Using coherence 3.5.3.
    Thanks.

    This turned out to be an issue with POF serialization of a Date object. It was doing it incorrectly, it would get the day correct, but the HH:MM:SS would be set to the current time. Since the object had been changed, when i persisted the parent, all of the child rows would persist as well since their "modify_date" attribute had been changed. Eg, if the date in the DB was "2010-07-14 03:10:00" when i read the object in, the value would change to "2010-07-14 HH:MM:SS" where HH:MM:SS would be set to the current hours/mins/secs.
    I changed the code to use my own serialization of a Date object (just used the long) and things worked fine after that.
    Is this a known issue with pof serialization?

  • Insert a footer row outside child column group

    Hi All,
    I am using a tablic in which I have used a parent and child colgroup.When I added the parent col group then it created a row with the col group(Expression is like =Ceiling(Fields!ColNo.Value/3)) . After that I added the child group(Expression is ColNo).
    This group is applying on the subsequence columns. Then the out put comes in the expected way. But the problem is I need to add a new row in the end of talix as footer with parent group. If I try to add then it is always adding in the child group.
    Any Suggessions?????????
    Regards, MRAPAKA

    Hi MRAPAKA,
    In Reporting Services, we can add or delete rows in a tablix data region. In a tablix data region, we can add rows that are associated with a group (inside a group) or that are not associated with a group (outside a group).
    When we add a row inside a group, a row that is inside a group repeats once per unique group value, and the added row will be close to the group. So in your scenario, if we click the last row to add a row (inside a group), then it will become the part of
    child group. This should be make sense. If we want to add a row as the part of parent group, we can refer to the suggestion posted by Visakh. Then the row will be added after the parent group, other than the last row in the tablix. This is by design.
    Thank you for your understanding. 
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • R5K Sound issues when installing Windows 8.1

    Hello everyone I installed Windows 8.1 Pro as downloaded. I used BCA > USB on my R5K to install Windows.. (Boot Camp drivers via BCA as well). Everything works fine except the sound when using Windows. There is sound, but it all... sounds disturbing,

  • Reading two files at a time

    Hi, My sender system sends two files 1.Header 2.Item I need to read both the files at a time. If only both the files are present in the directory,i want pick the files otherwise not. How can i do this validation in XI?? Thanks. Rushikesh

  • Is it Necessary to create a New Folder on my Scratch disk for new project?

    I am using a MACBOOK Pro with a 1tb scratch disk (loud) and am new to FCPS2. Someone told me to make a new folder on the scratch disk and then let the app build the rest of the folders it needs within it..Is there are reason for his? Do I have to bui

  • Import glitch green lines/green screen

    When I import a .mov file it ends up importing it with strange colored lines and areas of green (among other weirdness) - See above. Some video files seem fine, but others have had this. This represents the first time running into this, but someone b

  • PSE9 crashing

    PSE9 keeps crashing in while I am editing or saving.  Aplle ran diagnostics and it is not the computer.  Please advise.  Thanks! Carol C dds