Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Predicate expression syntax

22 views
Skip to first unread message

Luke

unread,
Apr 28, 2019, 3:40:14 AM4/28/19
to Cappuccino & Objective-J
I have columns bound to a "name" and "desc" in a table.

I've bound a SearchFieldCell to my ArrayController.  
The predicate I've coded there is:
name contains[cd] $value OR desc contains[cd] $value

It looks like this ought to work, but what happens is the matching only works against the "name" column, not the "desc" column.
I've tried parens around the two clauses and also using ||.instead of OR.  No dice.

Any ideas, or is just a bug in Cappuccino?




Keary Suska

unread,
Apr 28, 2019, 9:40:26 AM4/28/19
to objec...@googlegroups.com
I would log the created predicate, which might give you a good clue about what is not working.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
> To post to this group, send email to objec...@googlegroups.com.
> Visit this group at https://groups.google.com/group/objectivej.
> For more options, visit https://groups.google.com/d/optout.

daboe01

unread,
Apr 28, 2019, 9:43:23 AM4/28/19
to Cappuccino & Objective-J


Am Sonntag, 28. April 2019 15:40:26 UTC+2 schrieb Keary Suska:
I would log the created predicate, which might give you a good clue about what is not working.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

> On Apr 28, 2019, at 1:40 AM, Luke <luke...@gmail.com> wrote:
>
> I have columns bound to a "name" and "desc" in a table.
>
> I've bound a SearchFieldCell to my ArrayController.  
> The predicate I've coded there is:
> name contains[cd] $value OR desc contains[cd] $value
>
> It looks like this ought to work, but what happens is the matching only works against the "name" column, not the "desc" column.
> I've tried parens around the two clauses and also using ||.instead of OR.  No dice.
>
> Any ideas, or is just a bug in Cappuccino?
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to objec...@googlegroups.com.

Luke

unread,
Apr 28, 2019, 3:26:56 PM4/28/19
to Cappuccino & Objective-J
Thanks daboe01.

Looks like 1.1 might be soon in the offing (?), but I can grab master when this PR is merged.
Reply all
Reply to author
Forward
0 new messages