Re: CAML query: Can an <OR> contain more than 2 elements
From: gwailoh (mynick_at_gmail.com)
Date: 01/27/05
- Next message: billd: "problems branding SPS 2003..."
- Previous message: Mike Walsh: "Re: CAML query: equivalent of TSQL 'IN' keyowrd"
- In reply to: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Next in thread: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Reply: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 17:57:50 -0000
Mike,
is that 'I doubt it' to the subject
CAML query: Can an <OR> contain more than 2 elements
or the body
Must a CAML OR only contain 2 values?
"Mike Walsh" <englantilainen@hotmail.com> wrote in message
news:eqytFKJBFHA.1404@TK2MSFTNGP11.phx.gbl...
> > Must a CAML OR only contain 2 values?
>
> I doubt it. Look in the SharePoint Team Services SDK.
>
> You'll probably find some examples and/or the reason there.
>
> (Hopefully as this is the newsgroup for STS 1.0 you *are* using STS 1.0)
>
> Mike Walsh, Helsinki, Finland
> STS FAQ at http://www.collutions.com/Lists/FAQ
> Please reply to the newsgroup
>
> "Jim O'Neill" <gwailoh@gmail.com> wrote in message
> news:2aae28de.0501270501.7b1620ff@posting.google.com...
> > Hi,
> >
> > I am attepting to get upto speed with CAML, but I am having issues
> > when I attempt to have an OR with more than 2 criteria,
> >
> > i.e. in TSQL a OR b OR c,
> >
> > using
> > <Or>
> > <Contains><FieldRef Name='Keywords'/><Value
> > Type='Text'>c#</Value></Contains>
> > <Contains><FieldRef Name='Keywords'/><Value
> > Type='Text'>c++</Value></Contains>
> > <Contains><FieldRef Name='Keywords'/><Value
> > Type='Text'>foxpro</Value></Contains>
> > </Or>
> >
> > I get thrown an error, while below works
> >
> > <Or>
> > <Contains><FieldRef Name='Keywords'/><Value
> > Type='Text'>c#</Value></Contains>
> > <Contains><FieldRef Name='Keywords'/><Value
> > Type='Text'>c++</Value></Contains>
> > </Or>
> >
> > Must a CAML OR only contain 2 values?
>
>
- Next message: billd: "problems branding SPS 2003..."
- Previous message: Mike Walsh: "Re: CAML query: equivalent of TSQL 'IN' keyowrd"
- In reply to: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Next in thread: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Reply: Mike Walsh: "Re: CAML query: Can an <OR> contain more than 2 elements"
- Messages sorted by: [ date ] [ thread ]