Re: Using ERRest to update object with compound key
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,
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:
_______________________________________________
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