0

With the following CAML query:

camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' + '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>100</RowLimit></View>');
  • What is the difference between using <Geg> and <Eq> in the above query?

  • Is this query assuming that there is a value in m list of 1 for the current ID? I am trying to understand what Value Type Number 1 means?

4
  • 1
    Hi @blachawk, could you please rephrase your 1st question ? For the second one, this query is looking for the first 100 elements that have the "ID" column with a value greater or equal then 1.
    – KhalilG
    Commented Mar 6, 2015 at 15:44
  • My bad - it's now updated. Thanks so far for the feedback!
    – klewis
    Commented Mar 6, 2015 at 15:47
  • Why the negative vote? this a good learning moment fo something that is not clearly explained in examples I have found online...
    – klewis
    Commented Mar 6, 2015 at 15:56
  • I don't know how it happened. I've fixed it.
    – KhalilG
    Commented Mar 6, 2015 at 15:58

1 Answer 1

0

Thanks @blachawk.

1- <Geq> means Greater than or equal and <eq> means equal.

2- this request is not assuming that there's an item with ID equal to 1. It's just looking for items which column ID has a value greater than or equal to 1, and it's looking for the first 100 elements that fulfill the last condition.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.