iMtG Server: Gathering

Gathering Forums => Help for iMtG => Topic started by: Rhazor on May 19, 2013, 05:18:07 PM

Title: Help on refining my search in binders
Post by: Rhazor on May 19, 2013, 05:18:07 PM
Hi there!

I need some help polishing up the code I use for searching in my binders.

The thing is that although the function of sorting by price is very handy, it sometimes returns some weird sortings (I don't really know why). I'd love if I could specify the app to show me only the cards inside a specific binder that are over a certain price (for example, low price is over 3$). As I have commented in other occasions, I have a huge collection, so this would be very handy to take those hidden gems off my collection and put them inside my TB.

Up to now I have this code:

QuoteSUBQUERY( binderentries, $x, $x.binder.name = 'General' ).@count > 0

Now, any idea if and how this idea could be implemented into the code?

Thanks a thousand in advance!

Rhazor

PS: If I didn't express my self too well, let me know and I'll try to elaborate or rephrase.  ;o)
Title: Re: Help on refining my search in binders
Post by: Piotr on May 19, 2013, 05:40:39 PM
Try SUBQUERY( binderentries, $x, $x.binder.name = 'General' and $x.cardprint.price > 1.0 ).@count > 0
Title: Re: Help on refining my search in binders
Post by: Rhazor on May 19, 2013, 05:46:04 PM
Quote from: Piotr on May 19, 2013, 05:40:39 PM
Try SUBQUERY( binderentries, $x, $x.binder.name = 'General' and $x.cardprint.price > 1.0 ).@count > 0

Thanks for the fast reply!!! Very helpful!!!
Title: Re: Help on refining my search in binders
Post by: Piotr on May 19, 2013, 05:55:17 PM
Glad to be of service ;)
Title: Re: Help on refining my search in binders
Post by: Rhazor on June 20, 2013, 06:05:35 AM
Hi there...

is it possible that this predicate has stopped working after the 4.0 upgrade?

I've been trying to use it with two different binders and it doesn't seem to work anymore...

Thanks in advance for your help,

Rhazor
Title: Re: Help on refining my search in binders
Post by: Piotr on June 20, 2013, 07:58:59 AM
Do you have the prices reloaded after upgrade?
Title: Re: Help on refining my search in binders
Post by: Rhazor on June 20, 2013, 08:54:06 AM
Quote from: Piotr on June 20, 2013, 07:58:59 AM
Do you have the prices reloaded after upgrade?

Nope, but gonna do it right away!!! I'll let you know if it works.

Thanks!

Edit: Your trick worked like a charm. Updated the prices and the bookmard came back to life!!!

Thanks for the solution, especially having been so fast!