Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Yes / No field issue

$
0
0
Hi All,

I am facing an issue with "Yes / No Checkbox" field while fetching results from CAML Query.

I have created one sitecolumn with "Yes / No" checkbox type & added the same to a list, now I am using the below code in CAML Designer to fetch the selected checkbox items.

 <Where>
      <Eq>
         <FieldRef Name='Selected' />
         <Value Type='Integer'>1</Value>
      </Eq>
   </Where>

(OR)

   <Where>
      <Eq>
         <FieldRef Name='Selected' />
         <Value Type='Boolean'>True</Value>
      </Eq>
   </Where>

In the both cases I am failing to fetch the selected items.

Can any one of you help me on this issue?

Let me know if you have any queries.

Regards,
SPUser.

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>