As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Is there anywhere some sample working project with relational data that I can download and start with?
I tried to take a sample code from guides "Data Store" page and copy it to my solution.
The only changed I made are:
- changed the invitations property on Event to be (nonatomic, retain)
- allocated the NSMutableSet for invitations
- created an invitation and added it to event instance with addObject
After these changes I can't save the event due to the error 400 "The request body is either missing or incomplete".
Good morning Art,
Could you please provide me with a snippit of your code so we can take a look at it for you?
I solved it by replacing of KCSAppdataStore with KCSLinkedAppdataStore.
The guide is talking about this change by-the-way and it wasn't so obvious for me that I need to use an other storage provider...
But by the opportunity we are talking about, might I ask you an other question, please?
I've implemented the sample from the guide and mentioned the strange thing: despite of the hierarchy I've implemented, save of the Event object doesn't save the changed on the Invitations linked to the event. Is it correct behavior or I missed some thing?
The scenario I used is as following:
- created an invitation object and saved it with automatic id
- created an event object and added previously created invitation
- changed the status of the invitation
- saved the event
As a result event was saved with reference to the invitation but invitation status wasn't changed.
I'm glad that you figured it out. I'll note this as a deficiency in our guide for when we do an update to it in the future.
That's great )!
Any comments regarding to my question?
Art: With regards to your question, its hard to say definitively without seeing any of your code, but we believe that the item would be saved if you used the referenceKinveyPropertiesOfObjectsToSave method, which is outlined in the guide at http://devcenter.kinvey.com/ios/guides/datastore#relationaldatasaving
Did you use that method? If so can you share your code?
Regarding to your question: yes, I used this method with no changes in a result.
I've mailed you all sources of the project to the mail stated in the second post of the thread.
Thank you ahead for your help!