Get parent entity

Hi,
In CRM sales order component i needs to do some validation in the pricing assignment block (CRMCMP_PRC) component.
from here i want to get the sales organization value. While debugging i can able to view the value but while coding i cannot able to get the relationship. can anyone please give the way to get the sales organization value.

Solved myself

Similar Messages

  • How to implement parent entity for core data

    Hi there.
    I am starting a document-based Core Data application (Cocoa) and developed the following data model;
    The 'invoice' entity is a parent entity of 'items', because ideally I would want there to be many items for each invoice. I guess my first point here is - is what I am trying to do going to be achieved using this method?
    If so, I have been trying several ways in Interface Builder to sort out how to implement this structure with cocoa bindings. I have made a Core Data app before, just with one entity. So this time, I have two separate instances of NSArrayController's connected to tables with relevant columns. I can add new 'invoice' entities fine, but I can't get corresponding 'items' to add.
    I tried setting the Managed Object Context of the 'item' NSArrayController to this;
    I thought this would resolve the issue, but I still have found no resolution to the problem.
    If anyone done something similar to this, I'd appreciate any help
    Thanks in advance,
    Ricky.

    Second, when you create a Core Data Document Based application, XCode generates the MyDocument class, derivating from NSPersistentDocument. This class is dedicated to maintain the Managed Object Model and the Managed Object Context of each document of your application.
    There is only one Context and generally one Model for each Document.
    In Interface Builder, the Managed Object Context must be bound to the managedObjectContext of the MyDocument instance: it's the File's owner of the myDocument.xib Nib file.
    It's not the case in your Nib File where the Managed Object Context is bound to the invoiceID of the Invoice Controller.
    It's difficult to help you without an overall knowledge of your application, perhaps could you create an InvoiceItem Controller and bind its Content Set to the relationship of your invoice.

  • Rules - Parent entity not rolling up from base calcs

    What's the problem: Parent Entity member is calculating with a number for a certain account, even though I've specifically excluded this from happening in my rule. I don't want the parent entity to calculate
    What should happen: Parent Entity member should just add up the result of its children for that account
    Hi guys,
    I have a calculation that is designed to specifically run at base entity level only. So I'm expecting that the parent result for a certain account should just be the addition of the results in its child entity members for that account
    You can see from the code snippet below that I'm running the statements only when they're enclosed by the vIsBaseEntity conditional statement.
    I want to get the required number, a simple A-B calc which looks at the change from prior year (but flips the sign if it's an equity account) into the SBS_MOVE custom 1 member.
    If vIsBaseEntity then
         For Each vBSMoveAcct in HS.Account.List("","CalcBSMovementAccounts")
              If HS.Account.UD2(vBSMoveAcct) = "Equity" Then
         HS.Exp "A#" & vBSMoveAcct & ".C1#SBS_MOVE." & All_NONES_XC1C2C4 & " = A#" & vBSMoveAcct & "." & ALL_TOPS_XC2C4 & " - A#" & vBSMoveAcct & ".Y#Prior.P#Last." & ALL_TOPS_XC2C4
              Else
              'Standard Calculation
              'C1#SBS_MOVE = Prior Year End Amount - Current Period Balance Sheet Amount
              HS.Exp "A#" & vBSMoveAcct & ".C1#SBS_MOVE." & All_NONES_XC1C2C4 & " = A#" & vBSMoveAcct & ".Y#Prior.P#Last." & ALL_TOPS_XC2C4 & " - A#" & vBSMoveAcct &"." & ALL_TOPS_XC2C4
              End If
         Next
    end if     
    However what actually happens is that whilst the base entities do calc, as specified in the rule, the parent entity does as well for a few accounts, even though that's not specified anywhere in my rule (or in my rules file anywhere else)
    The parent entity for a certain account (Pl reserves), instead of giving me the result of (Current Year YTD minus Prior Year YTD), just gives me the result of Current Yr YTD, or just the A part of the A-B.
    The above code is the only place where SBS_MOVE calculates.
    I've tried to use a HS.Clear to clear that parent intersection first but to no avail.
    So the intersection doesn't have any erroneous data left in it, it actively calculates a result for that parent member when I've specifically told it not to! Why???
    Please help!
    Thanks,
    Sal

    To expand a little on this for newbies who may look for this problem:
    The aggregation operator never aggregate means that nowhere in your application will any intersection containing this member aggregate so if this is your problem the symptoms will be:
    1. Dynamic Calc doesn't work.
    2. Any aggregation scripts that are aggregating on intersections with that member will not work
    eg. for example you have a member "no project" and you set it to never aggregate, then any parents in any dimension where they intersect with "no project" will fail to show data, whether they be dynamic calc or you are running a script.
    If you have months or quarters the easiest way to see this is that suddenly the automated sums on the forms where you are using your "no project" member stop working so that your period data doesn't roll up into quarter or year.
    Agnete
    Edited by: Agnete on Oct 8, 2012 7:58 PM

  • Unable to view ECA and PCA value dimension for Parent Entity

    Hi,
    Situation: There is a parent Enity in (INR) with about 5 children Entity ( also in INR). Application default currency is USD .
    Parent has ' allowadjfromchildren' selected and Children have 'allowAdjs' selected .
    When I pull up a data grid with Parent and children for a particular POV , I can see data in < Entity currency > , < Entitty curr Adj> , <parent curr> , <Parent Currency Adj> for all children , However I dont see the <Entity curr Adj > or < parent curr Adj> at the Parent Level .
    I can only see <entity currency> <entity curr total> and <parent curr>, <parent curr total> for the Parent .
    qs. 1 . is this standard functionality ? Since Adjustment was not made at parent level , those intersection of ECA and PCA for parent will remain empty ?
    qs 2 : Is there a way to roll up the sum of all children values in ECA into ECA at parent level ? rule change may be ?
    eg . If child 1 has 10 , child 2 has 20 and child 3 has 30 in ECA , then their Parent to have 60 in ECA.
    Currenty in our Appsettings we DO NOT have the Consolidationrules parameter selected .
    Not sure if i was clear , Will appreciate some thoughts and direction on this .
    Vik.

    Hi,
    Seeing that the currency is the same for the parent and children in your example, you will not see a difference between the children's <Entity Curr Adjs> and <Parent Curr Adjs>. In other words, if you post $10 to Child1 <Entity Curr Adjs>, you will also see that same amount in the <Parent Curr Adjs> - that is normal behavior and the child will only contribute the $10 to the parent. Because you have selected AllowAdjFromChildren HFM will allow you to post to [Parent Adjs] and [Contribution Adjs].
    Q1: Yes, the adjustments are made to the child and will form part of the <Entity Currency> amounts in the parent. The parent's adjustment value members will store journals to the parent.
    Q2: The sum of all the [Contribution Total] value members of the children will make up the <Entity currency> of the parent.
    Q3: No, you will see the 60 in <Entity Currency> of the parent -- the way it works in more detail below:
    EC + ECA = ECT;
    Trans to Parent currency and seperate journals to PCA;
    Security defines access to the [] nodes and if the parent has AllowAdjsFromChildren then [Parent Adjs] will be available;
    Rules apply to [Proportion] and [Elimination] giving [Contribution];
    Final adjustments allowed to [Contribution Adjs] to get to [Contribution Total]
    Parent <Entity Currency> is the sum of children [Contribution Total];
    Process starts again for the parent.
    Regards,

  • JBO-26019: Attempting to remove a parent entity without removing all childr

    Hello,
    I am working in PMS module. I have extended one view object i.e. oracle.apps.per.selfservice.objectives.server.PerObjPerfRatingsVO.
    Its working fine as expected. I am getting the extra rows which i wanted to show. This VO is associated with EO.
    When i am trying to delete a row am getting the below error:
    oracle.jbo.RemoveWithDetailsException: JBO-26019: Attempting to remove a parent entity without removing all children entities.
    Is there anything wrong in VO extension which i did or some extra steps are needs to done to achieve this.
    Please reply me soon. Its really urgent.
    Regards,
    murali

    Hi,
    But i have already extended VO. so how to use pl/sql code to delete the row. Becaouse VO which i have extended that is associated with some EO. which is taking care of DML operation.
    Regards,
    murali

  • Deleting parent entity of oneToMany does not delete children first,

    I have two entities related with a bi-rdirectional OneToMany relationship. When I delete the parent, I want eclipseLink to automatically delete the child entities first before deleting the parent entity. I have implemented what I understand all the documents are telling me I should implement, but I can not get it working.
    When I try and delete the parent I get an SQLException as the foreign key constraint has been violated as there are child records for the parent I am trying to delete. It was my understanding, that if you have all the annotations correct on my Entities, then all i have to do is delete the parent and eclipseLink will delete the children first and therefore i should never get the SQL exception.
    Here is some snippets of my code.
    Entities
    @Entity(name = "PARENTS")
    public class ParentEntity {
         @Id
         @Column(name = "PARENT_ID", nullable = false)
         private String parentID;
         @Column(name = "DISPLAY_NAME", nullable = false)
         private String displayName;
         @OneToMany(mappedBy="parent", orphanRemoval=true, cascade=CascadeType.ALL)
         private Collection<ChildEntity> childEntities;     
    @Entity(name = "CHILDREN")
    @IdClass(ChildIdentifier.class)
    public class ChildEntity {
         @Id
         @Column(name="ITEM_ID", nullable=false)
         private String itemID;
         @Id
         @ManyToOne()
         @JoinColumn(name="PARENT_ID", nullable=false)
         private ParentEntity parent;
    public class ChildIdentifier implements Serializable {
         private String itemID;
    private String parent;
    Tables created from these entities
    PARENTS
    Name Null? Type
    PARENT_ID NOT NULL VARCHAR2(36)
    DISPLAY_NAME NOT NULL VARCHAR2(255)
    PrimaryKey = PARENT_ID
    CHILDREN
    Name Null? Type
    ITEM_ID NOT NULL VARCHAR2(36)
    PARENT_ID NOT NULL VARCHAR2(255)
    PrimaryKey = ITEM_ID,PARENT_ID
    ForeignKey = PARENTID = PARENTS.PARENT_ID
    Code to delete a parent
         public void deleteParent(String id)
              ParentEntity e= em.find(ParentEntity .class, id);
              if (e!= null)
                   em.remove(e);
    Exception seen
    javax.persistence.RollbackException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120119-r10715): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLIntegrityConstraintViolationException: ORA-02292: integrity constraint (MYSCHEMA.CHILDREN_FK_P_PARENTS) violated - child record found
    Error Code: 2292
    Call: DELETE FROM PARENTS WHERE (PARENT_ID = ?)
    I have added eclipse logging entries in my persistence.xml to try and see what is going on
    <property name="eclipselink.logging.level" value="FINE"/>
    <property name="eclipselink.logging.parameters" value="true"/>
    And in my jdev console when running my test, i do not see any queries of CHILDREN before it tries to delete from PARENTS.
    Am I missing something really obvious?
    Thanks in advance.
    Edited by: smaslin on Feb 20, 2012 9:20 AM
    Edited by: smaslin on Feb 21, 2012 5:26 AM

    "optional=false" only affects DDL generation, not runtime JPA behavior. PrivateOwned is similar to orphanRemoval in that it should cause the removal of child entities when they are dereferenced from the parent (ie remove them from the parent's collection). Cascade remove or cascade all should be all you need, but PrivateOwned+orphanRemoval should still cause the collection to be removed, as long as there are entities within the Parent's list of children to remove.
    The only case where I can see this not occuring is if you have not been maintaining the bidirectional relationship. That is, if you have added Child entities and set a parent, but not updated the Parent's collection of children to reflect that change. A simple test is to refresh the parent before removal - call em.refresh(e); right before the em.remove(e);. If this works, then you will need to change your application so that when you add parents to a child you also add the child to the parent's list of children - JPA does not maintain relationships for you and not doing so will keep the cache inconsistent with what is in the database.
    Best Regards,
    Chris

  • HFM Entity detail report - aggregated journal information for parent entity

    Hi,
    Anyone know if it's possible to view all the journal details that contribute to a parent entity? The entity detail report shows only journal details for the selected entity and I would like to see all journal ID's that contribute to a selected parent entity. Tried also with journal reports, but it's not possible to utilize the entity hierarchies in this way.
    Thanks!

    In addition to my confusing baffle above would the below solution work?
    If I setup an entity group total "G"- 100% ownership
    Under this total I have the main trading company "A" - 51% owned by our group
    then also under this "G" total another group "I" which will consolidate the 3 investment companies 100% owned by the main trading company "A" but give this group an ownership of 51% so that when I take the consolidated values of group "G" I only have my 51% iroll up into our group accounts.
    So it will look like this in the entity hierarchy:
    Consol group accounts
    --G group
    ----A entity - 51% owned by Consol group
    ----I group
    --------B entity - 100% owned by A
    --------C entity - 100% owned by A
    --------D entity - 100% owned by A
    At the consol level I only want 51% of this new group. Can someone please confirm that if I allocate ownership to "A" entity and "I" Group 51% ownership then I will get the correct results.
    Also, if we do not have management control of "A" entity do I also tag this as Associate as well as "I" group?
    Many thanks
    LG
    Edited by: jamdom on Aug 6, 2012 9:26 PM
    Edited by: jamdom on Aug 6, 2012 9:28 PM
    Edited by: jamdom on Aug 6, 2012 9:29 PM

  • Problem with Jtree to xml tranform..how to set/get parent of a node?

    Hi,
    I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
    It is workin fine.
    I got stuck with removal of selected node and save it as a new xml.
    I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
    thanks
    -bala
    Edited by: r_bala on May 9, 2008 4:44 AM

    there's no way anyone can help you without seeing your code.

  • Data at base level not consolidating to the parent entity

    HI All
    I have an issue with data which exisits at the base level but do not consolidate to its parent entity.
    For example,
    2000
    2001
    2002
    2003
    Here only 2002 has data, but that is not appearing at 2000. I have checked the accounts and there we have set the IsConsolidated property.
    The consolidation happens for other entities like 1000 & 3000. The problem is only with 2000.
    Has anyone come accross this before and what is the best way to fix this?
    Thanks,
    Appu

    Is it possible that you have not activated consolidation of the entities for the period you want to consolidate? Check out the Ownership Management screens for the entity 2000. Are all child entities set to Active? Is the proper Method set? Is the PCON = 100?
    Also have you tried to select one of the child entities (e.g. 2001) and run the Force Calculate Contribution? What does this entity return at the +[Contribution]+ level?

  • Changing the name and currency of a parent entity.

    Hello Experts,
    Just looking to confirm the impacts of changing a parent entity name as well as the default currency. I am assuming since it is not a base entity I will just need to reconsolidate all historical years across all scenarios and unpost and update any PCA journals as well as any report, dataform, grid changes and if the entity is mentioned in the rules. Updating metadata child parent association. Are there any other items I am not considering such as Process Management, etc...?

    Hi,
    changing the reporting currency has realy quite an impact. So the biggest recommendation would always be to use a test-system first :-)
    I think, that you mentioned most of the items.
    - yes, reconsolidate, because all [Parent], [Proportion], [Elim], [Contrib] items will be los
    - all journals on other elements than <Entity Curr Adjs> --> thats important! Even if you change back the currency to the original one will not enable the journals again!
    - P-Mgmt --> if you change the reporting currency of an entity, you cannot change the P-Management if it is different than "not started". So you should reject all periods, where the P-Management of that entity was started. (there, if you miss one, you can load MD with the old currency and it will work again).
    - please also consider if you have somewhere historic rates which you might need to adjust as well.
    good luck!

  • Get Parent node from Base member

    Hi ,
    My user select base member from CV .
    I want parent node for that base member .
    I am using =EVPRO( App name , memmber id , "PARENTH1" ) .
    I am not getting parent member from this funcation .
    Pls let me know any other way for this ?
    regards,
    PSR

    Hi,
    EVPRO for getting the value for PARENTH1 of any member should work. Please check whether you have included all the parameters of this function inside double quotes.
    EVPRO("APPNAME","MEMBER_ID","PROPERTY")
    Hope this helps,
    Regards,
    G.Vijaya Kumar

  • Get parent window in webutil

    Hi,
    I am trying to migrate 6i libraries to 10g in Orcle forms, in one of the pll it is using below procedure.
    In this it is calling wi_api_utility.get_parent_window procedure, which is part of d2kwutil.
    Now I have to use webutil instead of d2kwutil, becuase d2kwutil will not supported for webforms.
    Is there any same procedure avaialble in webutil to replace win_api's get_parent_window?
    If anyone knows solution for this please help me.
    Thanks.
    PROCEDURE Window_On_Top (Window_Name IN WINDOW) is
    hWnd PLS_INTEGER;
    hParent PLS_INTEGER:=1;
    iRC PLS_INTEGER;
    BEGIN
    hWnd := to_number(get_window_property(Window_Name,WINDOW_HANDLE));
    hParent := win_api_utility.get_parent_window(hWnd,TRUE,FALSE);
    IF hParent <> 0 THEN
    hWnd := hParent;
    END IF;
    iRC := i_SetwindowPos(fh_SetWindowPos,hwnd,-1,0,0,0,0,19);
    END;

    Hi,
    Solved.
    If alias name of parent databank always remains same, then you can directly use +"{{db.aliasName.ColumnName}}"+
    Otherwise, to get parent databank alias name use
    ScriptPackage parentScript= utilities.getCurrentVUSer().getParentUser().scriptPackage;
              ArrayList<String> parentDB = parentScript.getDatabankAliases();
    +info(eval("{{db."+ parentDB.get(0) + ".ColumnHeader}}"));+
    Regards,
    *Deepu M*

  • Get parent Collectionset in create Collection

    Hi All,
         In Create Collection, How to get parent collectionset.
    Thanks,
    Dung

    I think you want to post this in the Photoshop Lightroom forum (this is the Lightroom SDK forum, for plugin authors).
    Or have I misunderstood the question? (collection:getParent() to get parent in lua code).
    Or are you trying to call the catalog function to create a collection, but don't know what to use for parent collection set? If this is the case, then you will have to create a collection set if you can't find something suitable to act as parent (e.g. a selected collection set obtained from catalog:getActiveSources()). Reminder: parent parameter is optional - if omitted, then collection will be created in root of catalog (or publish service) - that's another option.
    Most of my plugins that create collections create a collection set in the root, named after the plugin, and put all sub-collections/sets in it.

  • Get parent databank in a child scipt

    Hi All,
    Is there any method to get parent databank in a child script. Currently I'm using variables to pass data from parent script to child script.
    Appreciate if anyone helps me to solve this scenario.
    Regards,
    Deepu M

    Hi,
    Solved.
    If alias name of parent databank always remains same, then you can directly use +"{{db.aliasName.ColumnName}}"+
    Otherwise, to get parent databank alias name use
    ScriptPackage parentScript= utilities.getCurrentVUSer().getParentUser().scriptPackage;
              ArrayList<String> parentDB = parentScript.getDatabankAliases();
    +info(eval("{{db."+ parentDB.get(0) + ".ColumnHeader}}"));+
    Regards,
    *Deepu M*

  • Get parent component

    Hi all,
    Is there any method to get parent component (container) of a jcomponent?

    Did you think to look at the API? Some method names are obvious. Other are not. The least you can do is try. All you had to do was find any method with the word "parent" in it.

Maybe you are looking for

  • How to check table difference QUICKLY?( symetic check, hash check, or ...)

    Hi. Everyone. I would like to know whether or not there is a difference between tables. The two tables are located at the differerent location, and network speed is very bad. I am considering this two ways as belows. 1. symeteric check (select * from

  • Can i import or copy photo to ibook on iphone 5

    can i import or copy photo to ibook on iphone 5 or can i open photo attachement in ibook on iphone5

  • Logon screen buttons missing

    I installed Lion when it came out... so far, so good.  Little quirks but it's all working out. I just put it on my second Mac and discovered that the logon screen should have 3 buttons on it (Sleep, Shutdown, Restart).  My first install is missing th

  • IOS7 will not let me transfer music to my phone. Please help

    Hello, I currently have version 10.6.3 for iTunes. After downloading the new IOS7 software, my phone will not let me transfer music to it without version 11.1 of iTunes. I have gone through and downloaded the missing versions of iTunes (10.6.8, 10.7)

  • Flash 11.3 ActiveX stopped working on IE 9

    Hi all, Frustrating issue with the latest Flash 11.3 ActiveX on IE 9. This is happening on several PCs that got updated over the past few weeks. This was previously working, but stopped (not able to pinpoint exactly when though). It only affects the