Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Vince Yotsukura" <vyotsukura@quadel.com>
To: <caml-list@inria.fr>
Subject: A question about bitwise AND in a CAML SharePoint query
Date: Thu, 14 Jan 2010 12:35:04 -0500	[thread overview]
Message-ID: <FF67912C46B8F3488047B25940A4FAC4048AD204@burgundy.quadel.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Hello, 

 

I would like to subscribe to the CAML mailing list and ask the following
question: 

 

Is there a way to include a bitwise AND operator in a CAML query? I am
trying to retrieve items from a SharePoint document library and I want
to retrieve items which have particular bitwise values in an integer
field for the library. For example, I have an int field called DOCSTATUS
which holds various bitwise values and I want to write a CAML query on
DOCSTATUS that would be equivalent to the SQL query below: 

WHERE (DOCSTATUS & 8 = 0)
   AND 
(DOCSTATUS & 1 = 1)

 

Thank you very much. 

 

Vince Yotsukura 
Software Engineer 
Quadel Consulting Corporation 
1200 G Street NW, Suite 700 
Washington, DC 20005 
Main: (202) 789-2500
Direct: (202) 513-6532 
Fax: (202) 898-0632
www.quadel.com 

 


[-- Attachment #2: Type: text/html, Size: 8352 bytes --]

             reply	other threads:[~2010-01-14 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-14 17:35 Vince Yotsukura [this message]
2010-01-14 20:02 ` [Caml-list] " Richard Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FF67912C46B8F3488047B25940A4FAC4048AD204@burgundy.quadel.local \
    --to=vyotsukura@quadel.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox