How to obtain parent record from child record in relationship using API

Hi,
I have a record in the main table that is the child in a parent/child relationship to another main table record.  Using the Java API, how would I obtain the parent record in the relationship where I am starting with the child record?  In the API there seems to just be calls for getChildren, but not a getParent type call.
Appreciate any immediate help that can be provided.
Thanks,
Eddie

Hi Eddie,
Please follow the below steps to retrieve only parents of a child Record.
1. Create RetrieveRelationshipsCommand.
2. Set the parameter RelationshipId.
3. Set the parameter Anchor Record and Anchor Record Id. In this case the child record for which parents records to be retrieved.
4. Set the parameter setGetChildren as false . This retrieves only the parent records for the specified child reocrd.
5. Execute the RetrieveRelationshipsCommand.
6. Retrieve member records from above step.
Hope it helps
Regards,
Neeharika

Similar Messages

  • How to select first several records from a database table by using select?

    Hi,
       I want to select first 100 records from a database table by using select clause. How to write it?
       Thanks a lot!

    hai long!
                 well select statement is used to retrive
    records from the database.
    following is the syntax to be used.
    1) select *  into corresponding fields of itab from basetable where condition.
    endselect.
      ex: select * into corresponding fields of itab from mara
                where matnr >= '1' and  matnr <= '100'.
           append itab.
          endselect.
    select * is a loop statement.it will execute till matnr is less than or equal to 100.
    note: you can also mention the required field names in the select statement otherwise it will select all the field from table mara.
    note: itab means your internal table name.
    hope you got the required thing.if it really solved u r problem then award me the suitable points.<b></b>

  • How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?

    How can a parent restrict a child's access to a PARENT'S PRE-EXSISTING iTunes account via iCloud's Family Sharing Program?  To explain further... I have a young son who is on my iCloud family sharing program... I am excited to be able to share SOME of my music in my iTunes library, but there are some songs and music videos that are not age appropriate for him and currently there is no way to restrict him from viewing and downloading anything off of my iTunes library.  Yes, I suppose I can delete the songs he shouldn't have access to, but I don't think I should have to do that... I paid for them and still like them and listen to them while I work out or am without my kids.  Is there a way for me to personally select which songs/videos I would like to "hide" from my children in an effort to shield them from inappropriate content?

    Hello ggg39,
    Welcome to the Apple Support Communities!
    I understand that you have some content in your iTunes library that you would like to restrict access for the child set up on Family Sharing with you. To do this, you can set restrictions on the child’s device as described in the attached article. 
    Family Sharing - Apple Support
    Now kids under 13 can have their own Apple IDs. As a parent or legal guardian, the family organizer can create an Apple ID for a child and add the child to the family group automatically. Ask to Buy is turned on by default, and the organizer can also limit the content kids have access to on their devices through Restrictions on an iOS device or parental controls in OS X and iTunes.
    For more information on restrictions and how to set them up, please reference the next attached article. 
    About Restrictions (parental controls) on iPhone, iPad, and iPod touch - Apple Support
    Have a great day,
    Joe

  • How do i transfer music from one ipod to another using itunes

    how do i transfer music from one ipod to another using itunes

    Welcome to the Apple Community.
    There is more than one way, but to get it all on all devices, connect the first device to iTunes and choose to transfer the music from the device from the file menu. Once everything is in iTunes connect the second device, select the device in the device list, navigate to the music tab and check the content you wish to sync, click apply/sync.

  • How can I transfer photos from my pc to iPad using iTunes?

    HOw can I transfer photos from my pc to iPad using iTUnes?

    Connect and select your iPad on the left-hand side of your computer's iTunes, and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which photo folders to sync to the iPad. There is a bit more info on this page (though it looks like Apple are doing some maintenance at the moment so the link isn't working). You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad - not including photos in a subsequent sync is how you delete them from the iPad (synced photos can't be deleted directly on the iPad).

  • How to restart base station from airport utility? I used to be able to do it remotely  I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose t

    How to restart base station from airport utility? I used to be able to do it remotely
    I currently use a Mac Pro 10.8.4 and have a time machine for wireless 6.3 (630.34). Sometimes I cannot connect to the internet and use network preferences to diagnose the issue. This results in being told to restart the wireless. The airport utility includes the drop down option of restarting but is not clickable so I can't choose it.
    With my prior macbook and same time capsule, etc  if i had problems connecting to the internet I would run network diagnostics to help out. This included clicking on the airport utility ---> base station --> restart. This worked most of the time.
    Bottom line, is there something I am missing in not being able to restart the wi-fi remotely? ]
    Thanks in advance

    You are likely forgetting a step.
    Open AirPort Utility
    Click on the Time Capsule icon
    Click Edit in the small window that appears
    Now click the Base Station menu.....top of the screen....not the Base Station "tab" in the center of the screen
    Click Restart

  • How can i stream video from mac os x 10 using roku to my tv?

    how can i stream video from mac os x 10 using roku to my tv?

    Welcome to Apple Support Communities
    OS X can't write in NTFS disks. If you want to write in NTFS drives, you have to use a third-party app like Paragon for NTFS, being this application the best one to write in those disks.
    Another option is to format the external disk in FAT32 or exFAT on a PC, so you will be able to read and write in Macs and PCs without having to use third-party apps. Do it on a PC and copy the files of your external drive to the internal disk first

  • How do I get files from multiple DVDs that are using thesame file names?

    How do I get files from multiple DVDs that are using thesame file names? Message says "file already exists in catalog"
    Message was edited by: marcr56

    marcr56
    I am viewing your question from different perspective, that is, the issue that you face when you are ripping VOBs from a second DVD-VIDEO on DVD disc using Premiere Elements,
    It is best to give the Premiere Elements version and computer operating system that it is running on. In the absence of that, I will generalize.
    Assuming that you are using
    Premiere Elements 12
    Add Media
    "DVD Camera or Computer Drive"
    Video Importer
    Typically the Video Importer Save In: is C:\Users\Owner\Videos
    Each of your DVD discs is going to have the same names for the ripped VOBs (VTS_01_1.VOB and so on depending on the duration of the movie). Consequently, after the ripping of the first DVD's VOBs and their save to Videos, you will end up with that "files already existing..." block for the ripping of the VOBs from the second DVD.
    The answer is, for each DVD disc VOB ripping, to plan ahead and create and set for different folders in Videos in the Save In field of the Video Importer.
    Please review and then let us know if that works for you. Please do not hesitate to ask if you need clarification on anything that I have written.
    Thank you.
    ATR.

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do i add contacts from address book to iPhone using itunes 11.0.2

    how do i add contacts from address book to iPhone using itunes 11.0.2

    Check the manual http://manuals.info.apple.com/en_US/iphone_user_guide.pdf, but it is done via the syncing process with iTunes or iCloud.

  • How can I upload photos from ipad onto facebook whithout using adobe flash player which I could not download onto my ipad?

    How can I upload photos from ipad onto facebook whithout using adobe flash player which I could not download onto my ipad?

    http://www.google.com/search?q=upload+photos+to+facebook+from+ipad

  • TS3720 how can i upload movies from Sony pj580v camcorder to use with imovie11?

    How can I upload movies from Sony pj580v camcorder to use with imovie 11?

    Transfer it to your computer and import into iTunes, make sure it's in a compatible format. Then simply sync with the iPad. If you have a camera connection kit and you know the footage is compatible you can connect it directly.
    Follow the link to see formats
    http://www.apple.com/ipad/specs/

  • How do I get photos from iphone 3G to PC using Vista?

    How do I get photos from iphone 3G to PC using Vista?

    This should explain it.  http://support.apple.com/kb/ht4083

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • Hierarchy query showing  parent and their child records

    I'm a newbie on Oracle using Tora,
    I'm Trying to run a query that will show me a hierarchical view of parent and child records in a table.
    So far I"ve found a query format like this, but its not working
    SELECT employee_id, last_name, manager_id
    FROM employees
    CONNECT BY PRIOR employee_id = manager_id;
    but when running it with my tables and columns I get an error message
    saying something 'cannont run CONNECT BY in subquery'
    Any ideas?

    Thanks for all the help, I'm getting the error message
    'ORA-01473: cannot have subqueries in CONNECT BY clause'
    Here's my actual query
    select           resource_id, lname, org_id
    from           std_resource
    start with      resource_id = 413783
         connect by prior resource_id = org_id;
    I'm trying to display a hierarchical list of user resource_id's, last names, and org_id's from the std_resource table starting withe resource_id 413783

Maybe you are looking for

  • Will I lose my Unlimited Data plan?

    Hi, I currently have an LG Vortex, which I got sometime in June of this year when I was scheduled for an update. Obviously, my phone isn't ready for an update yet, but if I take in a phone I already have (such as my father's, which he's giving me bec

  • SLS_PACKAGE_INFO is unknown

    Hi,    when i try to import a SP (SAPKB70106) SPAM stop at DDIC_ACTIVATION, and the logs display a dump. When I go to ST22 tcode i see this dump. Runtime Errors         SYNTAX_ERROR Date and Time          25.02.2011 11:13:23 Short text      Syntax er

  • Cannot find purchased TV shows on iTunes

    I purchased TV shows but cannot find them anywhere on my iTunes list. And cannot play them or buy them again, because they are marked as purchased. Where are they? I can see other TV shows I've purchased ..

  • Audio cuts out when using Interfaces

    Just recently bought my first iMac, with plans to use it for multi-track recording. The audio is cutting out when using FireWire or USB interfaces to record and/or play audio. For instance, with an Edirol FA-66, even iTunes experiences brief periodic

  • BigDecimal conversion

    Hi, We are fatching data through R/3.One column data is 100,00(Big Decimal) from R/3 end. but at webdynpro table it is showing 100. Can any one help me to retrive data as it is at webdynpro Table??