Hi,
I try to create a REST interface for a application. And my problem know is i don't understand how to set relationships. I tried it like in the ERRestRouteExample with the updateAction.
ERXKeyFilter filter = ERXKeyFilter.filterWithAttributes(); filter.include( AppointmentRequest.TO_DECLINE_REASON );
AppointmentRequest request = appointmentRequest(); update( request, filter ); editingContext().saveChanges();
return response( request, filter );
My JSON data look like this. { toDeclineReason:{ oid: 2 } }
But now I got the message back that I have to provide the "Display Name" which is a attribute of the entity DeclineReason. Is there another way to set the relationships?
Gabor
|