• 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
confusion -
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

confusion -


  • Subject: confusion -
  • From: Jesse Tayler <email@hidden>
  • Date: Fri, 18 Mar 2011 21:21:05 -0400

Can't get ERRest to include attributes along a keypath?

I show the attributes of the "invitation" relationship, but I wanted this filter to include attributes for "invitation.author" - I can only get the type and id for "author"?





	public WOActionResults inboxAction() {
		EOQualifier qual = InvitationUser.USER.eq(user());
		ERXRestFetchSpecification<InvitationUser> fetchSpec = new ERXRestFetchSpecification<InvitationUser>(InvitationUser.ENTITY_NAME, qual, null, queryFilter(), null, 25);
		ERXKeyFilter filter = ERXKeyFilter.filterWithAll();
		filter.include(InvitationUser.INVITATION).includeAttributesAndToOneRelationships();
		return response(fetchSpec, filter);
	}






(
	{
		"id" = "1";
		"invitation" = {
			"author" = {
				"type" = "Person";
				"id" = "1";
			};
			"status" = "<com.webobjects.foundation.NSKeyValueCoding$Null>";
			"mtly" = {
				"type" = "Mtly";
				"id" = "27";
			};
			"id" = "1";
			"active" = "true";
			"created" = "2011-01-10 05:00:00 Etc/GMT";
			"type" = "Invitation";
			"name" = "<com.webobjects.foundation.NSKeyValueCoding$Null>";
			"adjusted" = "2011-01-10 05:24:01 Etc/GMT";
		};
		"type" = "InvitationUser";
		"user" = {
			"type" = "Person";
			"id" = "1";
		};
	},
	{
		"id" = "2";
		"invitation" = {
			"author" = {
				"type" = "Person";
				"id" = "1";
			};
			"status" = "<com.webobjects.foundation.NSKeyValueCoding$Null>";
			"mtly" = {
				"type" = "Mtly";
				"id" = "27";
			};
			"id" = "1";
			"active" = "true";
			"created" = "2011-01-10 05:00:00 Etc/GMT";
			"type" = "Invitation";
			"name" = "<com.webobjects.foundation.NSKeyValueCoding$Null>";
			"adjusted" = "2011-01-10 05:24:01 Etc/GMT";
		};
		"type" = "InvitationUser";
		"user" = {
			"type" = "Person";
			"id" = "1";
		};
	}
)

 _______________________________________________
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

  • Follow-Ups:
    • Re: confusion -
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Re: The requested document was not found
  • Next by Date: Re: confusion -
  • Previous by thread: Re: The requested document was not found
  • Next by thread: Re: confusion -
  • Index(es):
    • Date
    • Thread