• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using ERRest to update object with compound key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using ERRest to update object with compound key


  • Subject: Re: Using ERRest to update object with compound key
  • From: Matthew Ness <email@hidden>
  • Date: Sat, 20 Aug 2016 07:18:20 +1000

Hello Luiz,

Unsure, but you may need to build a custom piece in your rest delegate for this.

Take a look at IERXRestDelegate.objectOfEntityWithID

Regards,

--
Matt
http://logicsquad.net


On Wed, Aug 17, 2016, at 01:12 AM, Luiz Alfredo Carrara Bertusso wrote:
Hello, I've been trying to use ERRest to update an object that has compound key but I've not found a way to do it, is it possible?
For example a have a contact that has an address ant his address has a a type named Work with the keys 55 and 2.  I`d like to update it, but due to the compound key it has'n been possible. Here's an example:


    {
        "id": 1,
        "typeClass": "Contact",
        "fullName": "John Doe"
        "addresses":
        [
            {
                "id": 2,
                "typeClass": "Address",
                "city": "Rio",
                "country": "Brazil",
                "state": "RJ",
                "streetName": "Av. Atlantica"
        "addressType":
                {
                    "id": [55, 2],
                    "typeClass": "Tag",
                    "type": 5,
                    "value": "Work"
                }
            }
        ]
    }

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
 
This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Using ERRest to update object with compound key (From: Luiz Alfredo Carrara Bertusso <email@hidden>)

  • Prev by Date: Re: how to enable secure session cookies?
  • Next by Date: Re: Using qualifier to filter related objects
  • Previous by thread: Using ERRest to update object with compound key
  • Next by thread: Using qualifier to filter related objects
  • Index(es):
    • Date
    • Thread