• 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 qualifier to filter related objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using qualifier to filter related objects


  • Subject: Re: Using qualifier to filter related objects
  • From: Luiz Alfredo Carrara Bertusso <email@hidden>
  • Date: Mon, 22 Aug 2016 10:26:39 -0300

Thank you.

2016-08-19 18:21 GMT-03:00 Matthew Ness <email@hidden>:
Hi again Luiz,

You mentioned you know you can do this manually, that's the only way I know of apart from overriding the parser to look for patterns in the key string.

I generally create custom ERXKey -> methods for this.

You could also (as you also mentioned) just use the qualifier in your request URIs to filter out Address objects.

--
Matt
http://logicsquad.net


On Wed, Aug 17, 2016, at 03:28 AM, Luiz Alfredo Carrara Bertusso wrote:
Hi.
Can I filter to-many relationships using a qualifier in REST controller actions?

I have an object named Party that has a list of Addresses, this Address has a field that can either be null or it can have be filled, when I try to list the addresses related to a party I'd like getting only the addresses that have a certain field filled. 

Can I use qualifier to restrict my result? I know i can handle this manually, but is there an existing way of getting the filtered list?

Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden.com)
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.com)
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 qualifier to filter related objects (From: Luiz Alfredo Carrara Bertusso <email@hidden>)
 >Re: Using qualifier to filter related objects (From: Matthew Ness <email@hidden>)

  • Prev by Date: Re: Weird classloading issues - only in deployment
  • Next by Date: derived attribute to sum a relationship?
  • Previous by thread: Re: Using qualifier to filter related objects
  • Next by thread: Weird classloading issues - only in deployment
  • Index(es):
    • Date
    • Thread